SOFA plugin: SofaTest  master
Open source framework for multi-physics simuation
sofa Namespace Reference

Namespaces

 collision_test
 
 component
 
 core
 
 defaulttype
 
 framework
 
 geometry
 
 gl
 
 gui
 
 helper
 
 linearalgebra
 
 mapping_test
 
 PrimitiveCreationTest
 
 simpleapi
 
 simulation
 
 testing
 
 topology
 
 type
 

Classes

struct  AdvancedTimerTest
 
struct  AffinePatch_sofa_test
 
struct  CylinderTractionStruct
 Structure which contains the nodes and the pointers useful for the patch test.
 
struct  DataEngine_test
 Helper for writing DataEngine tests.
 
struct  DefaultAnimationLoop_test
 
struct  ForceField_test
 Helper for writing ForceField tests. The constructor creates a root node and adds it a State and a ForceField (of the paremeter type of this template class). Pointers to node, state and force are available. Deriving the ForceField test from this class makes it easy to write: just call function run_test with positions, velocities and the corresponding expected forces. This function automatically checks not only the forces (function addForce), but also the stiffness (methods addDForce and addKToMatrix), using finite differences.
 
struct  LinearElasticity_test
 
struct  MultiMapping_test
 Base class for the MultiMapping tests, directly adapted from Mapping_test.
 
struct  PatchTestStruct
 Structure which contains the nodes and the pointers useful for the patch test.
 
class  TemplateAliasTest
 
class  TestDataEngine
 
struct  Elasticity_test
 
struct  Mapping_test
 Base class for the Mapping tests, with helpers to automatically test applyJ, applyJT, applyDJT and getJs using finite differences. More...
 
class  BaseSofa_test
 
class  Sofa_test
 

Typedefs

typedef Types< Vec3TypesDataTypes
 
typedef component::statecontainer::MechanicalObject< defaulttype::Vec3TypesMechanicalObject3
 
typedef component::statecontainer::MechanicalObject< defaulttype::Rigid3TypesMechanicalObjectRigid3
 
typedef component::statecontainer::MechanicalObject< defaulttype::Vec3TypesMechanicalObject3
 
typedef component::solidmechanics::spring::RegularGridSpringForceField< defaulttype::Vec3TypesRegularGridSpringForceField3
 
typedef component::solidmechanics::spring::StiffSpringForceField< defaulttype::Vec3TypesStiffSpringForceField3
 
typedef component::linearsolver::iterative::CGLinearSolver< component::linearsolver::GraphScatteredMatrix, component::linearsolver::GraphScatteredVectorCGLinearSolver
 
typedef component::mapping::nonlinear::RigidMapping< defaulttype::Rigid3Types, defaulttype::Vec3TypesRigidMappingRigid3_to_3
 
typedef component::mapping::linear::SubsetMultiMapping< defaulttype::Vec3Types, defaulttype::Vec3TypesSubsetMultiMapping3_to_3
 
typedef component::mass::UniformMass< defaulttype::Rigid3TypesUniformMassRigid3
 
typedef component::mass::UniformMass< defaulttype::Vec3TypesUniformMass3
 
typedef component::constraint::projective::FixedConstraint< defaulttype::Rigid3TypesFixedConstraintRigid3
 
typedef component::constraint::projective::FixedConstraint< defaulttype::Vec3TypesFixedConstraint3
 

Functions

 TYPED_TEST_SUITE (AffinePatch_sofa_test, DataTypes)
 
 TYPED_TEST (AffinePatch_sofa_test, patchTest2D)
 
 TYPED_TEST (AffinePatch_sofa_test, patchTest3D)
 
CylinderTractionStruct< DataTypescreateCylinderTractionScene (int resolutionCircumferential, int resolutionRadial, int resolutionHeight, int maxIter)
 
 TYPED_TEST_SUITE (LinearElasticity_test, DataTypes)
 
 TYPED_TEST (LinearElasticity_test, testTractionTensorMass)
 
 TYPED_TEST (LinearElasticity_test, testTractionCorotational)
 
PatchTestStruct< DataTypescreateRegularGridScene (simulation::Node::SPtr root, typename DataTypes::Coord startPoint, typename DataTypes::Coord endPoint, int numX, int numY, int numZ, sofa::type::Vec< 6, SReal > entireBoxRoi, sofa::type::Vec< 6, SReal > inclusiveBox, sofa::type::Vec< 6, SReal > includedBox)
 
SOFA_EXPORT_DYNAMIC_LIBRARY void initSofaCompat ()
 
SOFA_EXPORT_DYNAMIC_LIBRARY void initSofaConfig ()
 
 TEST_F (TemplateAliasTest, Register)
 
 TEST_F (AdvancedTimerTest, IsEnabled)
 
 TEST_F (AdvancedTimerTest, SetOutputType)
 
 TEST_F (AdvancedTimerTest, End)
 
helper::OwnershipSPtr< mat > convertSPtr (const linearalgebra::BaseMatrix *m)
 
 TEST_F (DefaultAnimationLoop_test, testOneStep)
 

Variables

const double pressureArray []
 
const size_t sizePressureArray
 
const double youngModulusArray []
 
const size_t sizeYoungModulusArray
 
const double poissonRatioArray []
 
const size_t sizePoissonRatioArray
 
template class SOFA_SOFATEST_API Sofa_test< double >
 

Typedef Documentation

◆ CGLinearSolver

◆ FixedConstraint3

typedef component::constraint::projective::FixedConstraint<defaulttype::Vec3Types> sofa::FixedConstraint3

◆ FixedConstraintRigid3

typedef component::constraint::projective::FixedConstraint<defaulttype::Rigid3Types> sofa::FixedConstraintRigid3

◆ MechanicalObject3

◆ MechanicalObjectRigid3

◆ RegularGridSpringForceField3

◆ RigidMappingRigid3_to_3

◆ StiffSpringForceField3

◆ SubsetMultiMapping3_to_3

◆ UniformMass3

◆ UniformMassRigid3

Variable Documentation

◆ Sofa_test< double >

template class SOFA_SOFATEST_API sofa::Sofa_test< double >