Skip to content
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

121 rigid body rod contact friction #124

Conversation

armantekinalp
Copy link
Contributor

Fixes #121 We implemented friction model between rod and cylinder that are in contact, together with example cases.

Here are the some of the results. rod_one is the Cosserat Rod, rod_two is the cylinder. We apply a force on rod_one and fix the position of cylinder. For the below case there is no friction between them.

rod_rigid_velocity

2D_xz_rod_cylinder_contact.mp4

In the second case we added friction and rod_one does not move.

rod_rigid_velocity

2D_xz_rod_cylinder_contact.mp4

Also we varied the the applied force on rod_one and plotted the energy vs applied external force. As it can be seen from the below graph after applied force is greater than some value, energy of rod_one starts to increase. In other words rod_one starts to move.

rod_energy_vs_force

@armantekinalp armantekinalp added the enhancement New feature or request label Jul 4, 2022
@armantekinalp armantekinalp added this to the Version 0.2.4 milestone Jul 4, 2022
@armantekinalp armantekinalp self-assigned this Jul 4, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 4, 2022

Codecov Report

Merging #124 (fadc859) into update-0.2.4 (a1c7d53) will decrease coverage by 0.37%.
The diff coverage is 8.33%.

@@               Coverage Diff                @@
##           update-0.2.4     #124      +/-   ##
================================================
- Coverage         86.87%   86.50%   -0.38%     
================================================
  Files                40       40              
  Lines              2567     2578      +11     
  Branches            345      346       +1     
================================================
  Hits               2230     2230              
- Misses              315      325      +10     
- Partials             22       23       +1     
Impacted Files Coverage Δ
elastica/joint.py 22.10% <8.33%> (-0.70%) ⬇️
elastica/callback_functions.py 81.42% <0.00%> (-2.40%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60bae63...fadc859. Read the comment docs.

@armantekinalp
Copy link
Contributor Author

@poratamir I am adding you to this PR, since you are interested in rod-cylinder contact.

@bhosale2 bhosale2 linked an issue Jul 4, 2022 that may be closed by this pull request
@poratamir
Copy link

Thank you!

Copy link
Collaborator

@bhosale2 bhosale2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes, @armantekinalp have a look and see if they make sense, I can help out in implementing these changes.

elastica/joint.py Outdated Show resolved Hide resolved
elastica/joint.py Outdated Show resolved Hide resolved
... k=1e4,
... nu=10,
... velocity_damping_coefficient=10,
... kinetic_friction_coefficient=10,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

show illustration range value in 0-1 range maybe?

elastica/joint.py Show resolved Hide resolved
@armantekinalp
Copy link
Contributor Author

Modified phase space.

rod_energy_vs_force

Copy link
Collaborator

@bhosale2 bhosale2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@bhosale2 bhosale2 merged commit 03fafd7 into GazzolaLab:update-0.2.4 Jul 4, 2022
@bhosale2 bhosale2 deleted the 121_rigid_body_rod_contact_friction branch July 4, 2022 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rigid Body - Rod contact friction
4 participants