From 05f7969134b450cd692b820df819f77a8b7f9388 Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Thu, 19 Nov 2026 13:48:52 +0100 Subject: [PATCH] [FEM] Show edges in VonMisesStress --- .../fem/elastic/VonMisesStress.h | 5 ++ .../fem/elastic/VonMisesStress.inl | 20 +++++- .../topology/container/grid/GridTopology.cpp | 63 +++++++++++-------- .../topology/container/grid/GridTopology.h | 2 + .../Core/src/sofa/core/visual/DrawMesh.h | 4 +- .../CantileverBeam_ElementFEMForceField.xml | 3 +- .../HexahedronCorotationalFEMForceField.scn | 2 +- .../HexahedronCorotationalFEMForceField.scn | 2 +- .../HexahedronCorotationalFEMForceField.scn | 2 +- .../HexahedronCorotationalFEMForceField.scn | 2 +- ...xahedronLinearSmallStrainFEMForceField.scn | 2 +- ...xahedronLinearSmallStrainFEMForceField.scn | 2 +- ...xahedronLinearSmallStrainFEMForceField.scn | 2 +- ...xahedronLinearSmallStrainFEMForceField.scn | 2 +- .../HyperelasticityFEMForceField.scn | 2 +- .../HyperelasticityFEMForceField.scn | 2 +- .../HyperelasticityFEMForceField.scn | 2 +- .../HyperelasticityFEMForceField.scn | 2 +- .../TetrahedronCorotationalFEMForceField.scn | 2 +- .../TetrahedronCorotationalFEMForceField.scn | 2 +- .../TetrahedronCorotationalFEMForceField.scn | 2 +- .../TetrahedronCorotationalFEMForceField.scn | 2 +- ...rahedronLinearSmallStrainFEMForceField.scn | 2 +- ...rahedronLinearSmallStrainFEMForceField.scn | 2 +- ...rahedronLinearSmallStrainFEMForceField.scn | 2 +- ...rahedronLinearSmallStrainFEMForceField.scn | 2 +- .../HyperelasticityFEMForceField.scn | 2 +- .../HyperelasticityFEMForceField.scn | 2 +- .../HyperelasticityFEMForceField.scn | 2 +- .../HyperelasticityFEMForceField.scn | 2 +- 30 files changed, 92 insertions(+), 53 deletions(-) diff --git a/Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/VonMisesStress.h b/Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/VonMisesStress.h index 745439d4927..db6e3b93505 100644 --- a/Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/VonMisesStress.h +++ b/Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/VonMisesStress.h @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -87,6 +88,9 @@ class VonMisesStress : public core::behavior::TopologyAccessor, public core::beh Data d_colorMap; Data d_lighting; Data>> d_elementSpace; + Data d_showEdges; + Data d_edgeColor; + Data d_lineWidth; sofa::SingleLink, sofa::BaseLink::FLAG_STOREPATH | sofa::BaseLink::FLAG_STRONGLINK> l_stressEvaluator; @@ -134,6 +138,7 @@ class VonMisesStress : public core::behavior::TopologyAccessor, public core::beh static Real_t vonMisesStress(const StressVoigtVector& deviatoricStress); core::visual::DrawElementColoredMesh m_renderer; + core::visual::DrawElementMesh m_edgeRenderer; }; } // namespace sofa::component::solidmechanics::fem::elastic diff --git a/Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/VonMisesStress.inl b/Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/VonMisesStress.inl index 1e87874742a..42bd925d1e7 100644 --- a/Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/VonMisesStress.inl +++ b/Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/VonMisesStress.inl @@ -37,12 +37,21 @@ VonMisesStress::VonMisesStress() , d_colorMap(initData(&d_colorMap, sofa::helper::ColorMap(), "colorMap", "Color map")) , d_lighting(initData(&d_lighting, true, "lighting", "If true, light is simulated on the mesh. Otherwise, no lighting effect.")) , d_elementSpace(initData(&d_elementSpace, type::ClampedScalar>(static_cast>(0.125)), "elementSpace", "When rendering, the space between elements")) + , d_showEdges(initData(&d_showEdges, false, "showEdges", "If true, the mesh also show the edges of the elements. Warning: for quads and hexas, topology may have computed edges based on triangles.")) + , d_edgeColor(initData(&d_edgeColor, type::RGBAColor::black(), "edgeColor", "Color of the edges of the elements")) + , d_lineWidth(initData(&d_lineWidth, 1.0f, "lineWidth", "Width of the edges of the elements")) , l_stressEvaluator(initLink("stressEvaluator", "The component in charge of evaluating the Cauchy stress.")) { // This component must receive events f_listening.setValue(true); - d_elementSpace.setGroup("Visualization"); + static std::string visualizationGroup { "Visualization" }; + d_colorMap.setGroup(visualizationGroup); + d_lighting.setGroup(visualizationGroup); + d_elementSpace.setGroup(visualizationGroup); + d_showEdges.setGroup(visualizationGroup); + d_edgeColor.setGroup(visualizationGroup); + d_lineWidth.setGroup(visualizationGroup); } template @@ -360,6 +369,15 @@ void VonMisesStress::draw(const core::visual::VisualPara m_renderer.elementSpace = d_elementSpace.getValue(); m_renderer.drawAllElements(vparams->drawTool(), positions.ref(), this->l_topology.get(), nodesColors); + + if (d_showEdges.getValue()) + { + m_edgeRenderer.elementSpace = 0; + m_edgeRenderer.lineWidth = d_lineWidth.getValue(); + const auto& edgeColor = d_edgeColor.getValue(); + std::array edgesColors{ {edgeColor, edgeColor}}; + m_edgeRenderer.drawAllElements(vparams->drawTool(), positions.ref(), this->l_topology.get(), edgesColors); + } } template diff --git a/Sofa/Component/Topology/Container/Grid/src/sofa/component/topology/container/grid/GridTopology.cpp b/Sofa/Component/Topology/Container/Grid/src/sofa/component/topology/container/grid/GridTopology.cpp index 1c0593ee961..f04334ed3a3 100644 --- a/Sofa/Component/Topology/Container/Grid/src/sofa/component/topology/container/grid/GridTopology.cpp +++ b/Sofa/Component/Topology/Container/Grid/src/sofa/component/topology/container/grid/GridTopology.cpp @@ -79,35 +79,48 @@ Size GridTopology::getNbHexahedra() return (n[0] - 1) * (n[1] - 1) * (n[2] - 1); } - void GridTopology::GridUpdate::updateEdges() { - SeqEdges& edges = *m_topology->d_seqEdges.beginWriteOnly(); + auto edges = sofa::helper::getWriteOnlyAccessor(m_topology->d_seqEdges); edges.clear(); - const SeqTriangles& triangles = m_topology->d_seqTriangles.getValue(); - if (triangles.empty()) // if has triangles will create edges using triangles, otherwise will use the quads from the grid - { - const type::Vec3i& n = m_topology->d_n.getValue(); - edges.reserve((n[0] - 1)*n[1] * n[2] + - n[0] * (n[1] - 1)*n[2] + - n[0] * n[1] * (n[2] - 1)); - // lines along X - for (int z = 0; zpoint(x, y, z), m_topology->point(x + 1, y, z))); - // lines along Y - for (int z = 0; zpoint(x, y, z), m_topology->point(x, y + 1, z))); - // lines along Z - for (int z = 0; zpoint(x, y, z), m_topology->point(x, y, z + 1))); - } + + auto triangles = sofa::helper::getReadAccessor(m_topology->d_seqTriangles); + + if (triangles.empty()) + updateEdgesFromGrid(); else + updateEdgesFromTriangles(); +} + +void GridTopology::GridUpdate::updateEdgesFromGrid() +{ + auto edges = sofa::helper::getWriteOnlyAccessor(m_topology->d_seqEdges); + + const type::Vec3i& n = m_topology->d_n.getValue(); + edges.reserve((n[0] - 1)*n[1] * n[2] + + n[0] * (n[1] - 1)*n[2] + + n[0] * n[1] * (n[2] - 1)); + // lines along X + for (int z = 0; zpoint(x, y, z), m_topology->point(x + 1, y, z))); + // lines along Y + for (int z = 0; zpoint(x, y, z), m_topology->point(x, y + 1, z))); + // lines along Z + for (int z = 0; zpoint(x, y, z), m_topology->point(x, y, z + 1))); +} + +void GridTopology::GridUpdate::updateEdgesFromTriangles() +{ + SeqEdges& edges = *m_topology->d_seqEdges.beginWriteOnly(); + const SeqTriangles& triangles = m_topology->d_seqTriangles.getValue(); { // Similar algo as createEdgeSetArray in TriangleSetTopologyContainer // create a temporary map to find redundant edges diff --git a/Sofa/Component/Topology/Container/Grid/src/sofa/component/topology/container/grid/GridTopology.h b/Sofa/Component/Topology/Container/Grid/src/sofa/component/topology/container/grid/GridTopology.h index 6f8cbd4f4d1..0ab7e32b384 100644 --- a/Sofa/Component/Topology/Container/Grid/src/sofa/component/topology/container/grid/GridTopology.h +++ b/Sofa/Component/Topology/Container/Grid/src/sofa/component/topology/container/grid/GridTopology.h @@ -70,6 +70,8 @@ using MeshTopology::getHexahedron; void doUpdate() override; protected: void updateEdges(); + void updateEdgesFromGrid(); + void updateEdgesFromTriangles(); void updateQuads(); void updateTriangles(); void updateHexas(); diff --git a/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h b/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h index 48f1d70674b..746dc790de5 100644 --- a/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h +++ b/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h @@ -150,6 +150,8 @@ struct SOFA_CORE_API DrawElementMesh sofa::type::RGBAColor::silver() }; + float lineWidth = 2.0f; + private: template void doDraw( @@ -186,7 +188,7 @@ struct SOFA_CORE_API DrawElementMesh for (std::size_t j = 0; j < NumberColors; ++j) { - drawTool->drawLines(renderedPoints[j], 2.f, colors[j]); + drawTool->drawLines(renderedPoints[j], lineWidth, colors[j]); } } }; diff --git a/examples/Validation/cantilever_beam/CantileverBeam_ElementFEMForceField.xml b/examples/Validation/cantilever_beam/CantileverBeam_ElementFEMForceField.xml index b1ccc12c142..63c55155b73 100644 --- a/examples/Validation/cantilever_beam/CantileverBeam_ElementFEMForceField.xml +++ b/examples/Validation/cantilever_beam/CantileverBeam_ElementFEMForceField.xml @@ -24,11 +24,10 @@ - - + diff --git a/examples/Validation/cantilever_beam/hexahedron/corotational/parallel/assembled/HexahedronCorotationalFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/corotational/parallel/assembled/HexahedronCorotationalFEMForceField.scn index 3a7b630ca3b..f6121cf0964 100644 --- a/examples/Validation/cantilever_beam/hexahedron/corotational/parallel/assembled/HexahedronCorotationalFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/corotational/parallel/assembled/HexahedronCorotationalFEMForceField.scn @@ -10,6 +10,6 @@ youngModulus="2e6" poissonRatio="0.45" topology="@grid" computeForceStrategy="parallel" computeForceDerivStrategy="parallel"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/corotational/parallel/matrixfree/HexahedronCorotationalFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/corotational/parallel/matrixfree/HexahedronCorotationalFEMForceField.scn index 8731799fb73..235998ef44b 100644 --- a/examples/Validation/cantilever_beam/hexahedron/corotational/parallel/matrixfree/HexahedronCorotationalFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/corotational/parallel/matrixfree/HexahedronCorotationalFEMForceField.scn @@ -8,6 +8,6 @@ youngModulus="2e6" poissonRatio="0.45" topology="@grid" computeForceStrategy="parallel" computeForceDerivStrategy="parallel"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/corotational/sequential/assembled/HexahedronCorotationalFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/corotational/sequential/assembled/HexahedronCorotationalFEMForceField.scn index f7d5c6f8d83..fbde03654bb 100644 --- a/examples/Validation/cantilever_beam/hexahedron/corotational/sequential/assembled/HexahedronCorotationalFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/corotational/sequential/assembled/HexahedronCorotationalFEMForceField.scn @@ -10,5 +10,5 @@ youngModulus="2e6" poissonRatio="0.45" topology="@grid" computeForceStrategy="sequenced" computeForceDerivStrategy="sequenced"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/corotational/sequential/matrixfree/HexahedronCorotationalFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/corotational/sequential/matrixfree/HexahedronCorotationalFEMForceField.scn index bc120d144d3..dccee48a907 100644 --- a/examples/Validation/cantilever_beam/hexahedron/corotational/sequential/matrixfree/HexahedronCorotationalFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/corotational/sequential/matrixfree/HexahedronCorotationalFEMForceField.scn @@ -8,6 +8,6 @@ youngModulus="2e6" poissonRatio="0.45" topology="@grid" computeForceStrategy="sequenced" computeForceDerivStrategy="sequenced"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/linear/parallel/assembled/HexahedronLinearSmallStrainFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/linear/parallel/assembled/HexahedronLinearSmallStrainFEMForceField.scn index 4a4fbaee60d..1d47557235c 100644 --- a/examples/Validation/cantilever_beam/hexahedron/linear/parallel/assembled/HexahedronLinearSmallStrainFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/linear/parallel/assembled/HexahedronLinearSmallStrainFEMForceField.scn @@ -10,6 +10,6 @@ youngModulus="2e6" poissonRatio="0.45" topology="@grid" computeForceStrategy="parallel" computeForceDerivStrategy="parallel"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/linear/parallel/matrixfree/HexahedronLinearSmallStrainFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/linear/parallel/matrixfree/HexahedronLinearSmallStrainFEMForceField.scn index 4b5c15e1325..25cef7f77dd 100644 --- a/examples/Validation/cantilever_beam/hexahedron/linear/parallel/matrixfree/HexahedronLinearSmallStrainFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/linear/parallel/matrixfree/HexahedronLinearSmallStrainFEMForceField.scn @@ -8,6 +8,6 @@ youngModulus="2e6" poissonRatio="0.45" topology="@grid" computeForceStrategy="parallel" computeForceDerivStrategy="parallel"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/linear/sequential/assembled/HexahedronLinearSmallStrainFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/linear/sequential/assembled/HexahedronLinearSmallStrainFEMForceField.scn index 9d1e06a8a9b..60f3b27eec1 100644 --- a/examples/Validation/cantilever_beam/hexahedron/linear/sequential/assembled/HexahedronLinearSmallStrainFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/linear/sequential/assembled/HexahedronLinearSmallStrainFEMForceField.scn @@ -10,6 +10,6 @@ youngModulus="2e6" poissonRatio="0.45" topology="@grid" computeForceStrategy="sequenced" computeForceDerivStrategy="sequenced"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/linear/sequential/matrixfree/HexahedronLinearSmallStrainFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/linear/sequential/matrixfree/HexahedronLinearSmallStrainFEMForceField.scn index 4ad3a890b05..00449e8b505 100644 --- a/examples/Validation/cantilever_beam/hexahedron/linear/sequential/matrixfree/HexahedronLinearSmallStrainFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/linear/sequential/matrixfree/HexahedronLinearSmallStrainFEMForceField.scn @@ -8,6 +8,6 @@ youngModulus="2e6" poissonRatio="0.45" topology="@grid" computeForceStrategy="sequenced" computeForceDerivStrategy="sequenced"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/svk/parallel/assembled/HyperelasticityFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/svk/parallel/assembled/HyperelasticityFEMForceField.scn index c3c42c9282e..7c21ccee809 100644 --- a/examples/Validation/cantilever_beam/hexahedron/svk/parallel/assembled/HyperelasticityFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/svk/parallel/assembled/HyperelasticityFEMForceField.scn @@ -10,5 +10,5 @@ + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/svk/parallel/matrixfree/HyperelasticityFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/svk/parallel/matrixfree/HyperelasticityFEMForceField.scn index 15d033377d5..115ee7d8f2a 100644 --- a/examples/Validation/cantilever_beam/hexahedron/svk/parallel/matrixfree/HyperelasticityFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/svk/parallel/matrixfree/HyperelasticityFEMForceField.scn @@ -8,6 +8,6 @@ + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/svk/sequential/assembled/HyperelasticityFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/svk/sequential/assembled/HyperelasticityFEMForceField.scn index 05a5f17f283..c2b3ffef60d 100644 --- a/examples/Validation/cantilever_beam/hexahedron/svk/sequential/assembled/HyperelasticityFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/svk/sequential/assembled/HyperelasticityFEMForceField.scn @@ -10,6 +10,6 @@ + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/hexahedron/svk/sequential/matrixfree/HyperelasticityFEMForceField.scn b/examples/Validation/cantilever_beam/hexahedron/svk/sequential/matrixfree/HyperelasticityFEMForceField.scn index 605d7a5dc8e..3bc8c0a2a80 100644 --- a/examples/Validation/cantilever_beam/hexahedron/svk/sequential/matrixfree/HyperelasticityFEMForceField.scn +++ b/examples/Validation/cantilever_beam/hexahedron/svk/sequential/matrixfree/HyperelasticityFEMForceField.scn @@ -8,6 +8,6 @@ + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/corotational/parallel/assembled/TetrahedronCorotationalFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/corotational/parallel/assembled/TetrahedronCorotationalFEMForceField.scn index 278f3c60c1e..b7b3c0fb027 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/corotational/parallel/assembled/TetrahedronCorotationalFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/corotational/parallel/assembled/TetrahedronCorotationalFEMForceField.scn @@ -16,7 +16,7 @@ youngModulus="2e6" poissonRatio="0.45" topology="@Tetra_topo" computeForceStrategy="parallel" computeForceDerivStrategy="parallel"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/corotational/parallel/matrixfree/TetrahedronCorotationalFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/corotational/parallel/matrixfree/TetrahedronCorotationalFEMForceField.scn index a7e51c738ed..96f6cdfffc6 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/corotational/parallel/matrixfree/TetrahedronCorotationalFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/corotational/parallel/matrixfree/TetrahedronCorotationalFEMForceField.scn @@ -14,7 +14,7 @@ youngModulus="2e6" poissonRatio="0.45" topology="@Tetra_topo" computeForceStrategy="parallel" computeForceDerivStrategy="parallel"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/corotational/sequential/assembled/TetrahedronCorotationalFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/corotational/sequential/assembled/TetrahedronCorotationalFEMForceField.scn index b2c816ee298..8a98bc1abbd 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/corotational/sequential/assembled/TetrahedronCorotationalFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/corotational/sequential/assembled/TetrahedronCorotationalFEMForceField.scn @@ -16,7 +16,7 @@ youngModulus="2e6" poissonRatio="0.45" topology="@Tetra_topo" computeForceStrategy="sequenced" computeForceDerivStrategy="sequenced"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/corotational/sequential/matrixfree/TetrahedronCorotationalFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/corotational/sequential/matrixfree/TetrahedronCorotationalFEMForceField.scn index 5844e4ae49f..bbe8e209e53 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/corotational/sequential/matrixfree/TetrahedronCorotationalFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/corotational/sequential/matrixfree/TetrahedronCorotationalFEMForceField.scn @@ -14,7 +14,7 @@ youngModulus="2e6" poissonRatio="0.45" topology="@Tetra_topo" computeForceStrategy="sequenced" computeForceDerivStrategy="sequenced"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/linear/parallel/assembled/TetrahedronLinearSmallStrainFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/linear/parallel/assembled/TetrahedronLinearSmallStrainFEMForceField.scn index ae623d99b67..62195675712 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/linear/parallel/assembled/TetrahedronLinearSmallStrainFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/linear/parallel/assembled/TetrahedronLinearSmallStrainFEMForceField.scn @@ -16,7 +16,7 @@ youngModulus="2e6" poissonRatio="0.45" topology="@Tetra_topo" computeForceStrategy="parallel" computeForceDerivStrategy="parallel"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/linear/parallel/matrixfree/TetrahedronLinearSmallStrainFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/linear/parallel/matrixfree/TetrahedronLinearSmallStrainFEMForceField.scn index 957c9fed029..806d615f810 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/linear/parallel/matrixfree/TetrahedronLinearSmallStrainFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/linear/parallel/matrixfree/TetrahedronLinearSmallStrainFEMForceField.scn @@ -14,7 +14,7 @@ youngModulus="2e6" poissonRatio="0.45" topology="@Tetra_topo" computeForceStrategy="parallel" computeForceDerivStrategy="parallel"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/linear/sequential/assembled/TetrahedronLinearSmallStrainFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/linear/sequential/assembled/TetrahedronLinearSmallStrainFEMForceField.scn index cdcdda121f4..73e0937db7a 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/linear/sequential/assembled/TetrahedronLinearSmallStrainFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/linear/sequential/assembled/TetrahedronLinearSmallStrainFEMForceField.scn @@ -16,7 +16,7 @@ youngModulus="2e6" poissonRatio="0.45" topology="@Tetra_topo" computeForceStrategy="sequenced" computeForceDerivStrategy="sequenced"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/linear/sequential/matrixfree/TetrahedronLinearSmallStrainFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/linear/sequential/matrixfree/TetrahedronLinearSmallStrainFEMForceField.scn index 075709cf70f..01662b1a9b4 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/linear/sequential/matrixfree/TetrahedronLinearSmallStrainFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/linear/sequential/matrixfree/TetrahedronLinearSmallStrainFEMForceField.scn @@ -14,7 +14,7 @@ youngModulus="2e6" poissonRatio="0.45" topology="@Tetra_topo" computeForceStrategy="sequenced" computeForceDerivStrategy="sequenced"/> + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/svk/parallel/assembled/HyperelasticityFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/svk/parallel/assembled/HyperelasticityFEMForceField.scn index da1a835e7c7..5ae76489dad 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/svk/parallel/assembled/HyperelasticityFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/svk/parallel/assembled/HyperelasticityFEMForceField.scn @@ -16,7 +16,7 @@ + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/svk/parallel/matrixfree/HyperelasticityFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/svk/parallel/matrixfree/HyperelasticityFEMForceField.scn index de09dd05590..ab8c854d139 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/svk/parallel/matrixfree/HyperelasticityFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/svk/parallel/matrixfree/HyperelasticityFEMForceField.scn @@ -14,7 +14,7 @@ + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/svk/sequential/assembled/HyperelasticityFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/svk/sequential/assembled/HyperelasticityFEMForceField.scn index ba9a86c134a..3252ecb9d01 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/svk/sequential/assembled/HyperelasticityFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/svk/sequential/assembled/HyperelasticityFEMForceField.scn @@ -16,7 +16,7 @@ + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/> diff --git a/examples/Validation/cantilever_beam/tetrahedron/svk/sequential/matrixfree/HyperelasticityFEMForceField.scn b/examples/Validation/cantilever_beam/tetrahedron/svk/sequential/matrixfree/HyperelasticityFEMForceField.scn index 6b768ed067d..c5db970ecef 100644 --- a/examples/Validation/cantilever_beam/tetrahedron/svk/sequential/matrixfree/HyperelasticityFEMForceField.scn +++ b/examples/Validation/cantilever_beam/tetrahedron/svk/sequential/matrixfree/HyperelasticityFEMForceField.scn @@ -14,7 +14,7 @@ + colorMap="green yellow orange red purple #221C35" showEdges="true" elementSpace="0"/>