Forum Replies Created
-
AuthorPosts
-
19 June 2020 at 17:32 in reply to: SOFA scene with imposed displacements and Von Mises stress computation in 2D #16677pvillardBlocked
Hi Rayan,
Thank you for your answer. I am not sure if I will use it but can you share it just in case?
Best,
Pierre
12 June 2020 at 14:17 in reply to: SOFA scene with imposed displacements and Von Mises stress computation in 2D #16615pvillardBlockedHi Noura,
Thank you very much for your help. I have missed these boolean data in
TriangularFEMForceField
. Now, I have a stress visualization within runSOFA.Do you know by any chance how I can export these data? I know I have to go through a
VTKExporter
and I guess from a field ofFEM
(the name of myTriangularFEMForceField
) but I didn’t figure out one that worksThank you in advance,
Pierre
3 June 2020 at 18:04 in reply to: SOFA scene with imposed displacements and Von Mises stress computation in 2D #16530pvillardBlockedHi Hugo,
Thank you very much for your (fast) answer.
1) Instead of trying to assign my 974 imposed displacements with 1 line (passing the indices with an obj file threw the attribute position), I wrote 974 lines as follow:
<AffineMovementConstraint indices="i" meshIndices = "i" translation="-x -y 0" drawConstrainedPoints="1"/>
where the vertex of indexi
has the displacement(x,y)
. I still have no warning and no error and the displayed vertices with the AffineMovementConstraint are the good ones. I have the same problem in the simulation as before.2) I managed to export the nodal forces with:
<VTKExporter name="vTKExporter" listening="true" pointsDataFields="MO.force" ...
. How can I get the stress instead?
Otherwise, is it possible to directly visualize Von-Mises stresses within runSofa?Thank you,
Pierre
pvillardBlockedHi Damien,
Adding numm and nnumms before the numbers of mass and spring did the trick.
For some reason, this Xsp file was working fine on my previous version of SOFA without adding the numm and nnumms keywords.
Thank you very much!
Pierre
pvillardBlockedHi Hugo,
Thank you very much. That is certainly a good news for us.
The (old) file we are using within “fileSprings” is as follow:Xsp 4.0
192 154
mass 1 2 -0.063426 -0.041312 0.016529 0.000000 0.000000 0.000000 1.000000 1.000000
mass 2 2 -0.060689 -0.042977 0.019700 0.000000 0.000000 0.000000 1.000000 1.000000
mass 3 2 -0.060672 -0.043119 0.020056 0.000000 0.000000 0.000000 1.000000 1.000000
mass 4 2 -0.060659 -0.029742 0.021890 0.000000 0.000000 0.000000 1.000000 1.000000
…
lspg 1 45 19 100.000000 0.100000 -1.000000
lspg 2 19 4 100.000000 0.100000 -1.000000
lspg 3 73 48 100.000000 0.100000 -1.000000
lspg 4 48 10 100.000000 0.100000 -1.000000
…Best,
PF
-
AuthorPosts