Noura replied to the topic Is there any method to apply inital stress state in SOFA? in the forum Using SOFA 2 weeks ago
Have you tried the
restScaleparameter in MechanicalObject.h ?
Data< SReal > restScale;
<MechanicalObject name="MO" src="@MO_loader" template="Vec3d" restScale="0.8" />
default value equals to 1.
Noura replied to the topic SOFA scene with imposed displacements and Von Mises stress computation in 2D in the forum Using SOFA 3 weeks, 5 days ago
I haven’t implemented it. I only had a look at the code to propose a quick solution. But I’ll try to dedicate some time to implement it (because I have first to update my current sofa version).
Noura replied to the topic SOFA scene with imposed displacements and Von Mises stress computation in 2D in the forum Using SOFA 4 weeks, 1 day ago
I have no clue how to export the stress values directly via the “VTKExporter” component. Maybe it is possible !
Also, I’m not sure if it is possible to get the stresses directly in the scene since that there is no data field called “stress” in the “TriangularFEMForceField” (FF).
Nevertheless, the stress values can be accessed and…[Read more]
Noura replied to the topic SOFA scene with imposed displacements and Von Mises stress computation in 2D in the forum Using SOFA 1 month ago
I think that you should be able to visualize the stresses using the following parameters from “TriangularFEMForceField.h”
<TriangularFEMForceField name="FEM" youngModulus="100000" poissonRatio="0.3" method="large" showStressValue="true" showStressVector="false"…
Me neither not an expert 😉 I usually use Paraview in the same way you described, but I thought that there might be some magic configurations I don’t know. If I learned something interesting, I’ll share it.
The setting using the TetrahedronSetGeometryAlgorithms seems not bad at all !
BTW, when you mentioned ParaView, Do you mean by selecting the volume representation from the drop box in the toolbar, or am I missing something? A brief explanation of setting steps would be helpful as well.
Any recommendations for a free software to render a tetrahedron mesh (vtk format) clearly with its elements?
I couldn’t manage to set nice rendering in Sofa. Neither in ParaView, nor in MeshLab. In the mean time, I’m giving a trial to tetview.
I join Thabita clarifying the current state of configuring Sofa since that we are trying it together.
As @taro has already mentioned, the compilation is fine right now. However, a run time error happens when executing runSofa.exe, and which is probably related to the
qwindows.dllwhich can not be located! I include the complete error…[Read more]
It is always an interesting topic.
In a simple simulation scenario, I applied a linear tensile force on a deformable object in the direction of its main axis. Using a Neo-Hookean behavior model, I noticed that the deformation is influenced by the number and size of elements (tetrahedrons).
However, it is possible to control the…[Read more]
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,…[Read more]
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…[Read more]
Noura replied to the topic Compilation error while setValue to d_force in linearFF in the forum Programming with SOFA 1 year, 1 month ago
Actually It should be simply :
Noura started the topic Compilation error while setValue to d_force in linearFF in the forum Programming with SOFA 1 year, 1 month ago
I’m creating a linear force field and facing some difficulties in setting values to its member data (for example in the
Firstly, I declare a parameter “initForce” in my component header file:
typedef typename DataTypes::Coord::value_type Real;
In the constructor of the component, I…[Read more]
You can apply a constant force field to a certain node in your mesh (let say on the node with index 5), you supply the force direction and value (for instance 7 N. in the positive direction of Y axis), I included the “arrowSizeCoef” parameter which is optional just to help visualizing the force direction.
Noura replied to the topic Using "FreeMotionAnimationLoop" is stopping "TetrahedronFEMForceField" in the forum Using SOFA 1 year, 7 months ago
Yes, that’s true. I forgot to include a ConstraintCorrection in the deformed object node. Now it works fine.
Thanks for the quick hint!
Noura started the topic Using "FreeMotionAnimationLoop" is stopping "TetrahedronFEMForceField" in the forum Using SOFA 1 year, 7 months ago
I noticed that using the
FreeMotionAnimationLoopwill stop the ‘TetrahedronFEMForceField’ component from working.
A quick example to illustrate this is the famous tutorial scene “TutorialForceFieldLiverFEM.scn” in (/src/examples/Tutorials/ForceFields)
It is sufficient to include
<FreeMotionAnimationLoop/>in the main scene node to notice…[Read more]
- Load More