Skip to content

Ross - #40

Merged
rlhatton merged 6 commits into
masterfrom
Ross
Aug 29, 2018
Merged

Ross#40
rlhatton merged 6 commits into
masterfrom
Ross

Conversation

@rlhatton

Copy link
Copy Markdown
Contributor

These changes are centered around regularizing and cleaning up the kinematics portion of our code, starting with the curvature-defined low Reynolds number swimmers.

Key elements include:

  1. Lifted actions and Adjoint actions on SE(2) are now available to any function in the code (and are defined in Utilities/kinematics. (Note that this is the first step in setting up the code to work on SO(3) and SE(3) systems.

  2. There is now a single file each for calculating local connection and metric tensors from curvature definitions. Previously, we were using duplicated code with slightly different preambles.

  3. The new local connection and metric tensor code takes in "geometry" and "physics" structures, so these can be defined once in a sysf_ file, and then passed into the connection and metric functions. This helps centralize "what do I need to change" when modifying a system to generate a new one, and facilitates single-file coding for the connection and metric calculations. The demo file sysf_serpenoid_lowRe.m has been modified to use these features.

  4. There is now code that calculates the local connection and metric tensor simultaneously. This is better than 50% faster than calculating them separately (but sys_calcsystem will need to be updated to make this functionality available to sysf_ files.

Ross Hatton added 6 commits August 28, 2018 20:31
…rics for low Re systems. Old functions for doing this (which were separately coded for curvature bases or general curvature functions) are now in a legacy_functions folder, and act as wrappers on the new improved code. There is also a unified calculation for connection and metric, which is 50% faster than calculating them separately; sys_calcsystem will need to be updated to make this code available to sysf_ files. Inertial metric calculations were moved to their own directory, separate from the low Re code.
…metry structure, that then chooses the appropriate kinematics code to be called to go from shape variables to location and jacobians of points on the body
…s; Also put torow (force a vector into a row) and toz (force a vector to be along the third axis) into the Utilities folder
@rlhatton
rlhatton merged commit dcd9bca into master Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant