SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::component::odesolver::testing Namespace Reference

Classes

class  GetVectorVisitor
 
class  GetAssembledSizeVisitor
 
struct  ODESolverSpringTest
 

Functions

Eigen::VectorXd getVector (simulation::Node::SPtr root, core::ConstVecId id, bool indep=true)
 
simulation::Node::SPtr createMassSpringSystem (simulation::Node::SPtr root, const std::string &stiffness, const std::string &mass, const std::string &restLength, const std::string &xFixedPoint, const std::string &vFixedPoint, const std::string &xMass, const std::string &vMass)
 Create a mass spring system. More...
 
template<typename DataTypes >
simulation::Node::SPtr createMassSpringSystem (simulation::Node::SPtr root, double stiffness, double mass, double restLength, typename DataTypes::VecCoord xFixedPoint, typename DataTypes::VecDeriv vFixedPoint, typename DataTypes::VecCoord xMass, typename DataTypes::VecDeriv vMass)
 

Function Documentation

◆ createMassSpringSystem() [1/2]

simulation::Node::SPtr sofa::component::odesolver::testing::createMassSpringSystem ( simulation::Node::SPtr  root,
const std::string &  stiffness,
const std::string &  mass,
const std::string &  restLength,
const std::string &  xFixedPoint,
const std::string &  vFixedPoint,
const std::string &  xMass,
const std::string &  vMass 
)
inline

Create a mass spring system.

◆ createMassSpringSystem() [2/2]

template<typename DataTypes >
simulation::Node::SPtr sofa::component::odesolver::testing::createMassSpringSystem ( simulation::Node::SPtr  root,
double  stiffness,
double  mass,
double  restLength,
typename DataTypes::VecCoord  xFixedPoint,
typename DataTypes::VecDeriv  vFixedPoint,
typename DataTypes::VecCoord  xMass,
typename DataTypes::VecDeriv  vMass 
)
inline

◆ getVector()

Eigen::VectorXd sofa::component::odesolver::testing::getVector ( simulation::Node::SPtr  root,
core::ConstVecId  id,
bool  indep = true 
)
inline