Comments (12)
Hi Daphne,
Thanks for reaching out. Could you please be more specific which example (Fig?) are you referring in Topology, Geometry, and Mechanics of Strongly Stretched and Twisted Filaments: Solenoids, Plectonemes, and Artificial Muscle Fibers
paper.
from pyelastica.
Hi Armantekinalp,
thanks a lot for your prompt reply.
yea, exactly this paper. but i'm not doing HelicalBuckling simulation, just three rods attached together, once one of them gets stain and elongated, rest of them would be elongated proportionally.
i have drawn a draft.
Thanks a lot for your helping.
from pyelastica.
Hi @daphne198693,
First, in PRL paper we applied two end boundary condition on the rod. So it is not a relevant to the problem you are trying to solve.
Second, for your experiment you should constrain relative position and orientation of the rods.
For example let's take two rods. You want to constrain distance between the surfaces of these two rods. In other words you should apply a restoring force on both rods like
F = k (x1 - x2)
where k is spring constant, x1 and x2 are the surface positions of rod1 and rod2 respectively. Next step is to constrain their relative orientation. Similar to constraining relative position, you should apply restoring torques now. I suggest you to look at the examples in examples/JointCases/
, especially fixed_joint.py
and the connection functions we used.
Currently we are working on a a general framework that can help your problem. I will let you know when we release it.
Let me know if you have any other questions.
from pyelastica.
Hi Armantekinalp,
Thanks very much for your so helpful suggestion and so detailed guide.
That's amazing news that you will release more general frameword, hope it will not long. :)
now I'm exactly modeling start with using one rod whose two ends with fixed joints to make constrain with others rods, and try to restore torques with UniformTorques. If there are some example of adding different types external force that will very useful.
Again, thank you a lot for your time and help.
from pyelastica.
BTW, could Pyelastica support polymer foam this kind of material simulation, can be compressed or elongated with high percentage?
like Young's Elastic Modulus range is from how much?
i have tried quite a lot combinations, seems not get good result. if you could give some suggestion it will be grateful :)
from pyelastica.
Hi Armantekinalp,
Thanks very much for your so helpful suggestion and so detailed guide.
That's amazing news that you will release more general frameword, hope it will not long. :)
now I'm exactly modeling start with using one rod whose two ends with fixed joints to make constrain with others rods, and try to restore torques with UniformTorques. If there are some example of adding different types external force that will very useful.
Again, thank you a lot for your time and help.
So you want to be careful here. fixed_point.py
is an example to join two rods not by side by side but at the rod ends. You can see that if you run the scripts and check the videos. In your case, you want to attach two rods side by side so you need to write your own JointClass
for that. However the high-level idea is the same, i.e. you fix relative position and orientation of rods by applying forces and torques.
'UniformTorques' class applies user defined torque vector on all elements of the rod. I don't think you can use it for constraining relative orientation of two rods. Instead I suggest writing your own JointClass
.
from pyelastica.
BTW, could Pyelastica support polymer foam this kind of material simulation, can be compressed or elongated with high percentage?
like Young's Elastic Modulus range is from how much?
i have tried quite a lot combinations, seems not get good result. if you could give some suggestion it will be grateful :)
By default PyElastica uses a linear elastic model and rods are treated as incompressible. Do you have a constitutive model for your polymer foam? Is it linear elastic?
from pyelastica.
BTW, could Pyelastica support polymer foam this kind of material simulation, can be compressed or elongated with high percentage?
like Young's Elastic Modulus range is from how much?
i have tried quite a lot combinations, seems not get good result. if you could give some suggestion it will be grateful :)By default PyElastica uses a linear elastic model and rods are treated as incompressible. Do you have a constitutive model for your polymer foam? Is it linear elastic?
Thanks for your prompt reply. :)
Yea, it's linear elastic. Actually, we focus on modeling some kind of soft robot, and i do not have a constitutive model for the polymer foam yet, but whose character is similar to spring.
from pyelastica.
Hi Armantekinalp,
as you mentioned Pyelastica is incompressible, but i tried different combinations of rob parameters, i did not find the way to make the single rod elongate. do you have any suggestion?
thank you a lot
from pyelastica.
Can you be more specific? For example what are you boundary conditions, external forces, rod parameters?
from pyelastica.
Thank you @armantekinalp for your so patient and helpful support.
we are keeping attention on your latest release.
thank you very much
from pyelastica.
An example for connecting two parallel rods can be find here . This example can be extended for any number of rods.
I am closing this issue, if there are any questions please open it again.
from pyelastica.
Related Issues (20)
- Reproducing snake diffraction results from your Nat Comm Paper HOT 7
- Failure for Helix under Gravity Case HOT 2
- Can PyElastica support GPU acceleration? HOT 3
- Do PyElastica support to simulate a rod containing two segments? HOT 3
- Question about base length HOT 8
- Replicating side-winding results from your Nat-comm snake paper HOT 29
- Instant controler and simulation HOT 6
- Small scale rod simulation HOT 11
- Updating muscle forces mid-simulation - how does it work? HOT 1
- Small-scale simulation problem 2 HOT 1
- OneEndFixedBC didn't work for applying a external torque HOT 4
- Adding force and torque at same time HOT 5
- How to using PyElastica data to visualize in 3D models? HOT 1
- `FileNotFoundError` `python continuum_snake.py` HOT 1
- Bug and fix in 2_Slithering_Snake.ipynb HOT 1
- Task 1: Utilizing Python to clean and convert data from Elastica into a format recognizable by Blender. HOT 1
- Avoid having randomized unittest HOT 17
- [GSOC project 3] Binding PyElastica with Elastica++ HOT 1
- GSoC interest in Optimizing backend kernels in PyElastica HOT 1
- Examples not running due to modules not being found HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyelastica.