Repository navigation
Conversation
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
… with geometry and physics structures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.
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.
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.
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.