-
Noura replied to the topic Is there any method to apply inital stress state in SOFA? in the forum Using SOFA 7 months ago
Hi nicklj,
Have you tried the
restScale
parameter in MechanicalObject.h ?
Data< SReal > restScale;
Example:
<MechanicalObject name="MO" src="@MO_loader" template="Vec3d" restScale="0.8" />
default value equals to 1.
Best,
Noura -
Noura replied to the topic SOFA scene with imposed displacements and Von Mises stress computation in 2D in the forum Using SOFA 7 months, 2 weeks ago
Hi @hugo,
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
-
Noura replied to the topic SOFA scene with imposed displacements and Von Mises stress computation in 2D in the forum Using SOFA 7 months, 2 weeks ago
Hi Pierre,
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 7 months, 2 weeks ago
Hello Pierre,
I think that you should be able to visualize the stresses using the following parameters from “TriangularFEMForceField.h”
Data<bool> showStressValue;
Data<bool> showStressVector;
Try this:
[Read more]
<TriangularFEMForceField name="FEM" youngModulus="100000" poissonRatio="0.3" method="large" showStressValue="true" showStressVector="false"… -
Noura replied to the topic Abdominal Organs in SOFA in the forum Getting Started 8 months, 1 week ago
Hi Nancy,
you may have a look at this open source database from the IRCAD institute.
Best,
Noura -
Noura replied to the topic Free software for volume mesh renderning? in the forum Getting Started 1 year, 1 month ago
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.
Thanks,
Noura
-
Noura replied to the topic Free software for volume mesh renderning? in the forum Getting Started 1 year, 1 month ago
Hi @Hugo,
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.
Thanks,
Noura
-
Noura started the topic Free software for volume mesh renderning? in the forum Getting Started 1 year, 1 month ago
Hi all,
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.
Thanks,
Noura
-
Noura replied to the topic What are the build options in SOFA Dashboard ? in the forum Building SOFA 1 year, 3 months ago
Hi Hugo,
Exactly, I was looking for this config file for the CI.
Thanks,
Noura
-
Noura started the topic What are the build options in SOFA Dashboard ? in the forum Building SOFA 1 year, 3 months ago
Hello,
On sofa build dashboard, could anyone tell which options are set in both configurations “ubuntu_gcc-5.4_options” and “ubuntu_clang-3.8_options”?
Thanks,
Noura
-
Noura replied to the topic Windows Dependency Pack for VS 2019 in the forum Building SOFA 1 year, 7 months ago
Hello all,
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.dll
which can not be located! I include the complete error…[Read more] -
Noura replied to the topic Validation of SOFA in the forum Announcements / Infos 1 year, 7 months ago
Hi all,
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]
-
Noura replied to the topic Consistency of units in Sofa in the forum Using SOFA 1 year, 7 months ago
Fine for me. Marked as resolved!
Noura -
Noura replied to the topic Consistency of units in Sofa in the forum Using SOFA 1 year, 8 months ago
Hi Hugo,
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]
-
Noura started the topic Consistency of units in Sofa in the forum Using SOFA 1 year, 8 months ago
Hello,
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, 8 months ago
Solved!
Actually It should be simply :l_forceField->d_force.setValue(initForce.getValue());
Noura
-
Noura started the topic Compilation error while setValue to d_force in linearFF in the forum Programming with SOFA 1 year, 8 months ago
Hello,
I’m creating a linear force field and facing some difficulties in setting values to its member data (for example in the
d_force
attribute).Firstly, I declare a parameter “initForce” in my component header file:
typedef typename DataTypes::Coord::value_type Real;
Data<Real> initForce;
In the constructor of the component, I…[Read more]
-
Noura replied to the topic Applying force to an arbitrary node in the forum Programming with SOFA 1 year, 8 months ago
Hello minj,
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.
[Read more]
<ConstantForceField… -
Noura replied to the topic Using "FreeMotionAnimationLoop" is stopping "TetrahedronFEMForceField" in the forum Using SOFA 2 years, 2 months ago
Hi Hugo,
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
-
Noura started the topic Using "FreeMotionAnimationLoop" is stopping "TetrahedronFEMForceField" in the forum Using SOFA 2 years, 2 months ago
Hello,
I noticed that using the
FreeMotionAnimationLoop
will 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