28 May 2019 at 11 h 57 min #13541
my question is, as other people asked before, about units in SOFA. I read the discussion on a previous topic, but I’m still not sure that I did it the correct way after getting some confusing results in my simulation.
Let’s assume that my scene contains a soft-body cuboid with dimensions of 40mm*30mm*5mm, and and Young’s modulus of 1.5 MPa.
I would like to apply a constant force of 60N. on a certain point (and let’s say in Y direction).
I set Young’s modulus as
Should I set the force in Newton directly like that
<ConstantForceField indices="0" totalForce="0 60 0"/>
or should I give the Young’s modulus in different units?
Thanks in advance,
Noura28 May 2019 at 15 h 36 min #13544
Good to ask the question, since as you know it is an important point to understand.
If the file mesh you load has values between 0 and 40, then your file is in mm. Your Young’s modulus should be set in MPa, therefore
Your dimension are in mm, your stress in MPa. Since MPa = N / mm^2 you can set your force in Newton.
Hugo28 May 2019 at 17 h 53 min #13550
I see. Thanks!
This means that I have to set youngModulus in MPa. and the force in Newton.
You also mentioned:
If the file mesh you load has values between 0 and 40
Non, they are not! The shape is not necessarily translated to the origin (0,0,0). The bounding box of the cuboid could be for instance [200 100 50 , 240 130 55]. Still, the dimensions remain 40*30*5 mm. Right? Should I care about the coordinates as well?
Noura4 June 2019 at 15 h 24 min #13563
You understood it well, you have to set youngModulus in MPa. and the force in Newton.
Regarding the file, indeed, whatever the translation, the dimension are in mm.
I will therefore close the topic if this is fine for you.
Hugo5 June 2019 at 9 h 48 min #13575
Fine for me. Marked as resolved!
Noura13 July 2019 at 13 h 46 min #13947
I’m not sure if it is OK to ask my question here, but as it is directly related, I’am asking it here.
In reply to Noura, you have mentioned that “If the file mesh you load has values between 0 and 40, then your file is in mm.” This confused me. So why 40? What if the dimension of the loaded mesh be around 70?
I have another question here, is applying a constant force of 60 Newton to a node of a soft tissue realistic and reasonable?
Thanks for your guidance,
Zahra14 July 2019 at 22 h 03 min #13951
What is the range of the values within your mesh file?
What is the object you are aiming at modeling?
Hugo18 July 2019 at 13 h 38 min #13964
The object I’m currently working with is a liver. The range of the values of the current mesh file is 8.5*5.1*2.3
Zahra18 July 2019 at 14 h 00 min #13965
These are inches if you consider the size of a human liver.
You therefore need to scale it in meters if you want to use the International Unit System (e.g. Newton for forces)
Hugo18 July 2019 at 14 h 51 min #13967
You must be logged in to reply to this topic.