2 December 2020 at 3 h 59 min #17824
I posted before about some mapping issues and wanted to make sure I’m understanding the SOFA mapping GUI correctly.
When just the “Mapping” checkbox is on, my understanding is that the yellow nodes/dots correspond to the corners of each mesh element.
Then, the green lines connecting the yellow nodes appear when there are 2 connected meshes (e.g. a body and inner cavity), and represent the correspondence between the nodes of each mesh. In the case of a body mesh and a pressurized cavity, the green lines will represent which body mesh nodes experience pressure when the cavity is pressurized.
Can anyone confirm whether this is correct?
(I’m asking because I have a pneunet which seems to have good mapping/correspondences, but bends opposite to the expected bending direction for some reason)18 December 2020 at 22 h 29 min #18054
It is indeed.
You have the cavity mapped onto a 3D volumetric mesh. The pressure force (if some) applied on your cavity will therefore be interpolated / spread on the connected points on the body mesh as shown by the Mapping lines.
Are you normal well oriented?
Hugo4 January 2021 at 0 h 09 min #18100
Apologies for the delayed response.
That makes sense, thank you. Unfortunately for some reason I cannot view the normals (I see SEGFAULT errors and SOFA crashes). What should well-oriented normals look like?14 January 2021 at 8 h 52 min #18203
Strange that it crashes when viewing the normals. Your mesh must have partial information. Could you try to add a TopologyModifier (e.g. TetrahedronSetTopologyModifier if you use a tetrahedral topology) with your topology description?
If it does not work, could you share more with us? files/scene
Hugo15 January 2021 at 4 h 44 min #18231
I added TetrahedronSetTopologyModifier, though SOFA still crashes with the same SEGFAULT errors when I try to view the normals using the SOFA GUI.
The mesh files I’m using are here (the pneunet files are the ones I’m trying to view normals of): drive link
Here is how my scene is organized:
<root node> <FreeMotionAnimationLoop /> <GenericConstraintSolver /> <DefaultPipeline /> <BruteForceDetection /> <MinProximityIntersection /> <DefaultContactManager /> <pneunet node> <EulerImplicitSolver /> <SparseLDLSolver /> <MeshVTKLoader /> <TetrahedronSetTopologyContainer /> <TetrahedronSetTopologyModifier /> <TetrahedronSetGeometryAlgorithms /> <MechanicalObject /> <UniformMass /> <TetrahedronFEMForceField /> <BoxROI> <stiffLayer node> <TetrahedronSetTopologyContainer /> <TetrahedronSetTopologyModifier /> <TetrahedronSetGeometryAlgorithms /> <TetrahedronFEMForceField /> </node> <LinearSolverConstraintCorrection /> <cavity node> <MeshSTLLoader /> <Mesh /> <MechanicalObject /> <SurfacePressureConstraint /> <BarycentricMapping /> </node> <pneunet collision node> <MeshSTLLoader /> <Mesh /> <MechanicalObject /> <TriangleCollisionModel /> <Line /> <Point /> <BarycentricMapping /> </node> </node> </node>
Let me know if any additional info would help; I can definitely share the full scene file but I’d have to clean it up and simplify it (e.g. not use absolute file paths) first1 February 2021 at 11 h 20 min #18459
You shared the structure of the scene but not the file itself.
Could you share your full scene file? The crashing log would be useful as well.
Could you explain as well the purpose of the stiffLayer node ?
Hugo1 February 2021 at 16 h 10 min #18467
The scene file and object files are here: https://github.com/thomaswxu/SOFA
I’m not sure how to save the crash log; is that saved by adding a “printLog” argument to one of the SOFA components?
The purpose of the stiffLayer node is to make the bottom layer of the pneunet object have a higher stiffness/elastic modulus. (It mimics a real-life pneunet prototype which has a paper layer on the bottom.)
Please feel free to contact me if you experience any issues running the scene!11 February 2021 at 17 h 59 min #18575
Could you please create a simplified scene (without plugins if possible) that I could run and test?
I found some scene bu none of them are working.
Hugo11 February 2021 at 19 h 28 min #18590
Apologies for the issues with the scenes.
I’ve uploaded a simplified version of the scene to the same GitHub repo linked above, could you please try running that?
It should be self-contained and shouldn’t require extra plugins outside of default SOFA, though it does assume the same file/folder layout as in the GitHub repo. Please feel free to contact me if you experience any other issues getting the scene to run.
- You must be logged in to reply to this topic.