-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix friction #24
Merged
Merged
Bugfix friction #24
Conversation
This file contains 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
This commit fixes the bug in kinetic friction module for both Numba and Numpy branch. Rolling (transverse) and axial kinetic friction forces uses the weight of rod elements. Previously weight of the element was not projected correctly in rolling and axial directions. This bug could only been seen in snake simulation, because snake is the only case where both friction directions appear for the same problem.
This commit adds an improvement for force calculations. Friction plane should be the last external forcing class that has to be evaluated. Previously user has to be carefully add friction plane class as a last external forcing class. Now in backhand Elastica sorts forcing classes and pushes the friction class at the end of forcing list.
This commit changes the b-spline implementation in code base. B-spline is used to generate muscle torques on continuum snake and flagella. Previously b-spline was forcing end control points to be zero, but with this commit we remove this constrain. Thus, for flagella we added zero control points to the ends to make sure it gives consistent results.
…b/PyElastica into bugfix-continuum_snake
We moved the function into the Slithering_Snake.ipynb so we can remove this file from the repository.
Bugfix continuum snake
Codecov Report
@@ Coverage Diff @@
## master #24 +/- ##
==========================================
+ Coverage 90.56% 90.57% +0.01%
==========================================
Files 58 58
Lines 3127 3131 +4
Branches 224 227 +3
==========================================
+ Hits 2832 2836 +4
Misses 272 272
Partials 23 23
Continue to review full report at Codecov.
|
This commit adds a new unit test for forcing wrapper. Forcing wrapper now needs to sort and push any friction forces to the last for evaluated forces list. New test is testing this functionality.
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.
Continuum Snake
example changed according to recent paper from our group Zhang et. al. Nature Comm. 2021. Simulation results are compared with the actual snake curvature profile.