Simulation unit : make sure your units are coherent #4441
Locked
hugtalbot
started this conversation in
Ideas / Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear SOFA community,
We often get the follow question "what are the unit used in SOFA? What are the unit of my simulation ?".
This aims at clarifying this.
Unit definition
Checking the units of your simulation is very good practice. The fact is that SOFA makes no assumption on the unit in a simulation. This means that you - as a user - are in charge of the choice of the units. However, these units must remain coherent in your scene file.
"you chose the units" : what does it mean?
Yes, as a user, you do choose the unit:
Let's take an example. Let's say that:
If you use a linear elastic model on a tetrahedral mesh (TetrahedronFEMForceField), how should we now define the Young's Modulus?
The unit of the Young's Modulus is : MASS / (TIME²⋅LENGTH)
If your object is a rubber, and its Young's modulus amounts : 3 MPa (mega-pascal) = 3 ·10⁶ Pa. But using the units of our example, the value you should set in your simulation file is :
youndModulus=3000
since it corresponds to 3 · 10³ kPaNote that the forces computed in your simulation would therefore be in mN!
Does this makes sense?
Keep it simple
In many countries, the International System of Units is often used. To keep things simple, you may want to use these units. Just, as always, make sure to use this convention everywhere in your scene file to remain coherent 👍
Beta Was this translation helpful? Give feedback.
All reactions