-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SofaSparseSolver] Clean examples scenes of sparse linear solvers #2422
Changes from 7 commits
2d95f71
93d72d7
ad203fa
3a55058
7335df3
74e1b6b
c14d351
1585941
569a7a1
aa18c34
bea7411
7448fc3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Node name="root" dt="0.02" gravity="0 -10 0"> | ||
<RequiredPlugin pluginName="SofaSparseSolver"/> | ||
<RequiredPlugin pluginName='SofaBoundaryCondition'/> | ||
<RequiredPlugin pluginName='SofaImplicitOdeSolver'/> | ||
<RequiredPlugin pluginName='SofaMiscCollision'/> | ||
<RequiredPlugin pluginName='SofaSimpleFem'/> | ||
|
||
<VisualStyle displayFlags="showBehaviorModels showForceFields" /> | ||
<DefaultPipeline depth="6" verbose="0" draw="0" /> | ||
<BruteForceBroadPhase/> | ||
<BVHNarrowPhase/> | ||
<MinProximityIntersection name="Proximity" alarmDistance="0.5" contactDistance="0.3" /> | ||
<DefaultContactManager name="Response" response="default" /> | ||
<DefaultCollisionGroupManager name="Group" /> | ||
<Node name="M1"> | ||
<EulerImplicitSolver name="cg_odesolver" printLog="false" rayleighStiffness="0.1" rayleighMass="0.1" /> | ||
<PrecomputedLinearSolver/> | ||
<MechanicalObject /> | ||
<UniformMass vertexMass="1" /> | ||
<RegularGridTopology nx="4" ny="4" nz="20" xmin="-9" xmax="-6" ymin="0" ymax="3" zmin="0" zmax="19" /> | ||
<FixedConstraint indices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" /> | ||
<HexahedronFEMForceField name="FEM" youngModulus="400000" poissonRatio="0.3" method="large" /> | ||
</Node> | ||
</Node> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<Node name="root" dt="0.02" gravity="0 -10 0"> | ||
<RequiredPlugin pluginName="SofaSparseSolver"/> | ||
<RequiredPlugin pluginName='SofaBoundaryCondition'/> | ||
<RequiredPlugin pluginName='SofaImplicitOdeSolver'/> | ||
<RequiredPlugin pluginName='SofaMiscCollision'/> | ||
<RequiredPlugin pluginName='SofaSimpleFem'/> | ||
|
||
<VisualStyle displayFlags="showBehaviorModels showForceFields" /> | ||
<CollisionPipeline depth="6" verbose="0" draw="0" /> | ||
<DefaultPipeline depth="6" verbose="0" draw="0" /> | ||
<BruteForceBroadPhase/> | ||
<BVHNarrowPhase/> | ||
<MinProximityIntersection name="Proximity" alarmDistance="0.5" contactDistance="0.3" /> | ||
<CollisionResponse name="Response" response="default" /> | ||
<CollisionGroup name="Group" /> | ||
<DefaultContactManager name="Response" response="default" /> | ||
<DefaultCollisionGroupManager name="Group" /> | ||
<Node name="M1"> | ||
<EulerImplicit name="cg_odesolver" printLog="false" rayleighStiffness="0.1" rayleighMass="0.1" /> | ||
<SparseLUSolver printLog="1" verbose="0" /> | ||
<EulerImplicitSolver name="cg_odesolver" printLog="false" rayleighStiffness="0.1" rayleighMass="0.1" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well I do not like seeing these rayleigh damping, especially in example scenes, but it's not the purpose of the PR ^^ |
||
<SVDLinearSolver template="CompressedRowSparseMatrixMat3x3d"/> | ||
<MechanicalObject /> | ||
<UniformMass vertexMass="1" /> | ||
<RegularGridTopology nx="4" ny="4" nz="20" xmin="-9" xmax="-6" ymin="0" ymax="3" zmin="0" zmax="19" /> | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
namespace sofa::component::linearsolver | ||
{ | ||
|
||
//defaut structure for a LDL factorization | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice copy-paste .. |
||
//defaut structure for a LU factorization | ||
template<class Real> | ||
class SparseLUInvertData : public MatrixInvertData { | ||
public : | ||
|
@@ -81,6 +81,10 @@ protected : | |
|
||
}; | ||
|
||
#if !defined(SOFA_COMPONENT_LINEARSOLVER_SPARSELUSOLVER_CPP) | ||
extern template class SOFA_SOFASPARSESOLVER_API SparseLUSolver< CompressedRowSparseMatrix< double>,FullVector<double> >; | ||
#endif | ||
|
||
} // namespace sofa::component::linearsolver | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well .. SVD you said? 😂