DOI: 10.5061/dryad.w6m905r0k
title: Data for optimizing energetics of lateral undulatory locomotion unveiling morphological adaptations in different environments

description: Ongoing efforts seek to unravel theories that can make simple,
 quantitative, and reasonably accurate predictions of the morphological
 adaptive changes that arise with the size variation. Yet, relatively scant
 attention has been directed towards lateral undulatory locomotion. In the
 current study, we explore: i) the constraints imposed by the variation of
 length and mass in viscous and dry friction environments on the cost of
 transport (COT) of lateral undulatory locomotion, and ii) the role of the
 body, environment, and input oscillations in such an intricate interplay.
 In a dry friction environment, minimum COT correlates with stiffer and
 longer bodies, higher frictional anisotropy, and angular amplitudes
 greater than 10o. Conversely, a viscous environment favors flexible long
 bodies, higher frictional anisotropy, and angular amplitudes lower than
 30o. In both environments, optimizing mass and maintaining low angular
 frequencies minimizes COT. Our conclusions are applicable only in the low
 Reynolds number regime, and it is essential to consider the
 interdependence of parameters when applying the generalized results. Our
 findings highlight musculoskeletal and biomechanical adaptations that
 animals may use to mitigate the consequences of size variation and to meet
 the energetic demands of lateral undulatory locomotion. These insights
 enhance foundational biomechanics knowledge while offering practical
 applications in robotics and ecology.
description: The data is collected through the mathematical model
 simulations. 
description: # Data for optimizing energetics of lateral undulatory locomotion
 unveiling morphological adaptations in different environments DOI link to
 this data set is
 [https://doi.org/10.5061/dryad.w6m905r0k](https://doi.org/10.5061/dryad.w6m905r0k) ## Description There are two main files, "Generating Figures 4_6_8.nb" and "Generating Figures 5_7_9.nb". These files are mathematica notebooks created using Mathematica 14.0. Use Mathematica to open them. These two notebooks uses the rest of the data files to generate the figures. ".mx" files contains the data of the calculated cost of transport (J/(kg m)) and forward speed (m/s). The same data has been provided in .CSV format placed in "Data CSV Files" folder. Run this line first SetDirectory[NotebookDirectory[]]; to set the notebook directory as the working directory. The line is already included in the notebook files. Data files are read and stored in the constant cotfig, followed by the figure number and subplot identifier (e.g., 'a', 'b', etc.). The cotfig value remains the same for all entries. forward speeds are stored in the constant "vx". files "figure4a.mx", "figure4b.mx", "figure4c.mx", "figure4d.mx", "figure6a.mx","figure6b.mx", "figure6c.mx", "figure6d.mx", "figure8a.mx", "figure8b.mx", "figure8c.mx", and "figure8d.mx" contains the calculated cost of transport (COT) of the respective figures. Similarly for .CSV files. "Generating Figures 4_6_8.nb" file is a mathematica notebook that uses the data and parameters to generate the figures 4 6 and 8 of the manuscript. "vxfig5a.mx", "vxfig5b.mx", "vxfig5d.mx", "vxfig6b.mx", "vxfig7d.mx", "vxfig9b.mx", "vxfig9d.mx" contains data of velocities. Similarly for .CSV files. This data is used to generate figures 5, 7 and 9. "Generating Figures 5_7_9.nb" contains the code to generate the figures 5 7 and 9 of the manuscript.