Skip to content

Commit

Permalink
rename component into scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Nov 22, 2024
1 parent 1ae8405 commit 1c92d51
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <sofa/helper/map.h>
#include <sofa/helper/AdvancedTimer.h>
#include <sofa/helper/ScopedAdvancedTimer.h>

#include <cmath>

namespace sofa::component::linearsolver::iterative
Expand Down
2 changes: 1 addition & 1 deletion applications/plugins/SofaCUDA/examples/raptor-cpu.scn
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- <MeshOBJLoader name="surface" filename="mesh/raptor8k1.obj" />-->
<EulerImplicitSolver rayleighMass="0.01" rayleighStiffness="0.01" />
<CGLinearSolver iterations="25" tolerance="1e-6" threshold="1e-20"/>
<!-- <ShewchukPCGLinearSolver iterations="25" tolerance="1e-3" preconditioner="@precond" />
<!-- <PCGLinearSolver iterations="25" tolerance="1e-3" preconditioner="@precond" />
<JacobiPreconditioner template="CudaDiagonalMatrixf" name="precond" /> -->
<MeshTopology src="@volume" />
<MechanicalObject template="Vec3" />
Expand Down
2 changes: 1 addition & 1 deletion applications/plugins/SofaCUDA/examples/raptor-cuda.scn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!-- <MeshOBJLoader name="surface" filename="mesh/raptor8k1.obj" />-->
<EulerImplicitSolver rayleighStiffness="0.1" rayleighMass="0.1" />
<CGLinearSolver iterations="25" tolerance="1e-6" threshold="1e-20"/>
<!-- <ShewchukPCGLinearSolver iterations="25" tolerance="1e-3" preconditioner="@precond" />
<!-- <PCGLinearSolver iterations="25" tolerance="1e-3" preconditioner="@precond" />
<JacobiPreconditioner template="CudaDiagonalMatrixf" name="precond" /> -->
<MeshTopology src="@volume" />
<MechanicalObject template="CudaVec3f" />
Expand Down
4 changes: 2 additions & 2 deletions applications/plugins/SofaCUDA/examples/raptor.scn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Node name="root" dt="0.04" showBehaviorModels="0" showCollisionModels="0" showMappings="0" showForceFields="1">
<RequiredPlugin name="Sofa.Component.Engine.Transform"/> <!-- Needed to use components [IndexValueMapper] -->
<RequiredPlugin name="Sofa.Component.IO.Mesh"/> <!-- Needed to use components [MeshVTKLoader] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [ShewchukPCGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [PCGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Preconditioner"/> <!-- Needed to use components [JacobiPreconditioner] -->
<RequiredPlugin name="Sofa.Component.Mapping.Linear"/> <!-- Needed to use components [IdentityMapping] -->
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
Expand All @@ -16,7 +16,7 @@
<!-- <MeshOBJLoader name="surface" filename="mesh/raptor8k1.obj" />-->
<EulerImplicitSolver rayleighStiffness="0.1" rayleighMass="0.1" />
<!-- <CGLinearSolver iterations="30" tolerance="1e-10" threshold="1e-10"/>-->
<ShewchukPCGLinearSolver iterations="30" tolerance="1e-10" preconditioner="@precond" />
<PCGLinearSolver iterations="30" tolerance="1e-10" preconditioner="@precond" />
<JacobiPreconditioner template="CudaDiagonalMatrixf" name="precond" />
<MeshTopology src="@volume" />
<MechanicalObject template="CudaVec3f" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver iterations="1000" />
<PCGLinearSolver iterations="1000" />
<HexahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.3" method="large" />

</Node>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<PCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<AsyncSparseLDLSolver name="preconditioner"/>
<HexahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.45" method="large" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<PCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<BlockJacobiPreconditioner name="preconditioner"/>
<HexahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.3" method="large" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<PCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<JacobiPreconditioner name="preconditioner"/>
<HexahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.3" method="large" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver name="PCG" iterations="1000" use_precond="false"/>
<PCGLinearSolver name="PCG" iterations="1000" use_precond="false"/>
<HexahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.3" method="large" />

</Node>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<PCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<PrecomputedWarpPreconditioner name="preconditioner" linearSolver="@initSolver" printLog="true"/>
<SparseLDLSolver name="initSolver" template="CompressedRowSparseMatrix" />
<TetrahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.3" method="large" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<PCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<SSORPreconditioner name="preconditioner"/>
<HexahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.3" method="large" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<PCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner"/>
<WarpPreconditioner name="preconditioner" linearSolver="@initSolver" printLog="true"/>
<SparseLDLSolver name="initSolver" template="CompressedRowSparseMatrixMat3x3" />
<HexahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.3" method="large" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include href="../FEMBAR-common.xml"/>

<ShewchukPCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner" update_step="1"/>
<PCGLinearSolver name="PCG" iterations="1000" preconditioner="@preconditioner" update_step="1"/>
<WarpPreconditioner name="preconditioner" linearSolver="@factorization" update_step="15"/>
<AsyncSparseLDLSolver name="factorization" template="CompressedRowSparseMatrixMat3x3"/>
<HexahedronFEMForceField name="FEM" youngModulus="4000" poissonRatio="0.3" method="large" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<RequiredPlugin name="Sofa.Component.Engine.Select"/> <!-- Needed to use components [BoxROI] -->
<RequiredPlugin name="Sofa.Component.Engine.Transform"/> <!-- Needed to use components [IndexValueMapper] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Direct"/> <!-- Needed to use components [SparseLDLSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [ShewchukPCGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [PCGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.Mapping.Linear"/> <!-- Needed to use components [BarycentricMapping IdentityMapping] -->
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [UniformMass] -->
<RequiredPlugin name="Sofa.Component.MechanicalLoad"/> <!-- Needed to use components [ConstantForceField] -->
Expand Down Expand Up @@ -39,7 +39,7 @@

<Node name="FEM">
<EulerImplicitSolver rayleighMass="0.1" rayleighStiffness="0.1" _velocityDamping="0.5"/>
<ShewchukPCGLinearSolver preconditioner="@precond" update_step="15"/>
<PCGLinearSolver preconditioner="@precond" update_step="15"/>
<SparseLDLSolver name="precond" template="CompressedRowSparseMatrixMat3x3"/>

<TetrahedronSetTopologyContainer name="Container" position="@../Topology/HexaTop.position" tetrahedra="@../Topology/Container.tetrahedra"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<RequiredPlugin name="Sofa.Component.Constraint.Projective"/> <!-- Needed to use components [FixedProjectiveConstraint] -->
<RequiredPlugin name="Sofa.Component.IO.Mesh"/> <!-- Needed to use components [MeshGmshLoader] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Direct"/> <!-- Needed to use components [AsyncSparseLDLSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [ShewchukPCGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [PCGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.Mapping.Linear"/> <!-- Needed to use components [IdentityMapping] -->
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [DiagonalMass] -->
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
Expand All @@ -20,7 +20,7 @@

<Node name="SquareGravity">
<EulerImplicitSolver name="cg_odesolver" printLog="false" rayleighStiffness="0.1" rayleighMass="0.1" />
<ShewchukPCGLinearSolver preconditioner="@preconditioner"/>
<PCGLinearSolver preconditioner="@preconditioner"/>
<AsyncSparseLDLSolver name="preconditioner" template="CompressedRowSparseMatrixMat3x3"/>
<MeshGmshLoader name="loader" filename="mesh/square3.msh" createSubelements="true"/>
<MechanicalObject src="@loader" scale="10" />
Expand Down
4 changes: 2 additions & 2 deletions examples/Demos/fallingBeamLagrangianCollision.scn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<RequiredPlugin name="Sofa.Component.Constraint.Lagrangian.Correction"/> <!-- Needed to use components [LinearSolverConstraintCorrection] -->
<RequiredPlugin name="Sofa.Component.Constraint.Lagrangian.Solver"/> <!-- Needed to use components [GenericConstraintSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Direct"/> <!-- Needed to use components [SparseLDLSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [ShewchukPCGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [PCGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.Mapping.Linear"/> <!-- Needed to use components [IdentityMapping] -->
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [UniformMass] -->
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
Expand Down Expand Up @@ -44,7 +44,7 @@

<Node name="FEM">
<EulerImplicitSolver firstOrder="false" rayleighMass="0.1" rayleighStiffness="0.1"/>
<ShewchukPCGLinearSolver preconditioner="@precond"/>
<PCGLinearSolver preconditioner="@precond"/>
<SparseLDLSolver name="precond" template="CompressedRowSparseMatrixMat3x3" parallelInverseProduct="true" />

<TetrahedronSetTopologyContainer name="Container" position="@../BEAMVOLUME/HexaTop.position"
Expand Down

0 comments on commit 1c92d51

Please sign in to comment.