#include <Elasticity_test.h>
Public Member Functions | |
PatchTestStruct< DataTypes > | createRegularGridScene (simulation::Node::SPtr root, Coord startPoint, 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) |
Create a scene with a regular grid and an affine constraint for patch test. More... | |
CylinderTractionStruct< DataTypes > | createCylinderTractionScene (int resolutionCircumferential, int resolutionRadial, int resolutionHeight, int maxIter) |
simulation::Node::SPtr | createGridScene (Coord startPoint, Coord endPoint, int numX, int numY, int numZ, SReal totalMass, SReal stiffnessValue, SReal dampingRatio) |
Create an assembly of a siff hexahedral grid with other objects. More... | |
simulation::Node::SPtr | createMassSpringSystem (simulation::Node::SPtr root, double stiffness, double mass, double restLength, VecCoord xFixedPoint, VecDeriv vFixedPoint, VecCoord xMass, VecDeriv vMass) |
Create a mass srping system. More... | |
![]() | |
NumericTest () | |
Real | vectorMaxDiff (const Container1 &c1, const Container2 &c2) |
Real | vectorMaxAbs (const Container &c) |
![]() | |
BaseTest () | |
~BaseTest () override | |
virtual void | doSetUp () |
virtual void | doTearDown () |
virtual void | onSetUp () |
virtual void | onTearDown () |
void | loadPlugins (const std::initializer_list< std::string > &pluginNames) |
![]() | |
BaseSofa_test () | |
~BaseSofa_test () override | |
void | clearSceneGraph () |
![]() | |
BaseSimulationTest () | |
bool | importPlugin (const std::string &name)=delete |
Additional Inherited Members | |
![]() | |
sofa::testing::MessageAsTestFailure | m_fatal |
sofa::testing::MessageAsTestFailure | m_error |
![]() | |
static int | seed |
![]() | |
static Real | matrixMaxDiff (const Matrix1 &m1, const Matrix2 &m2) |
static Real | matrixMaxDiff (const sofa::type::Mat< M, N, Real > &m1, const Matrix2 &m2) |
static Real | epsilon () |
static Real | infinity () |
static bool | isSmall (Real r, Real ratio=1.) |
static Real | vectorMaxDiff (const sofa::type::Vec< N, Real > &m1, const Vector2 &m2) |
static Real | vectorMaxDiff (const sofa::type::Vec< N, Real > &m1, const sofa::type::Vec< N, Real > &m2) |
static Real | matrixMaxDiff (const Matrix1 &m1, const Matrix2 &m2) |
static Real | matrixMaxDiff (const sofa::type::Mat< M, N, Real > &m1, const Matrix2 &m2) |
![]() | |
static float | norm (float a) |
static double | norm (double a) |
static Real | norm (T a) |
CylinderTractionStruct< DataTypes > sofa::Elasticity_test< DataTypes >::createCylinderTractionScene | ( | int | resolutionCircumferential, |
int | resolutionRadial, | ||
int | resolutionHeight, | ||
int | maxIter | ||
) |
simulation::Node::SPtr sofa::Elasticity_test< DT >::createGridScene | ( | Coord | startPoint, |
Coord | endPoint, | ||
int | numX, | ||
int | numY, | ||
int | numZ, | ||
SReal | totalMass, | ||
SReal | stiffnessValue, | ||
SReal | dampingRatio | ||
) |
Create an assembly of a siff hexahedral grid with other objects.
simulation::Node::SPtr sofa::Elasticity_test< DataTypes >::createMassSpringSystem | ( | simulation::Node::SPtr | root, |
double | stiffness, | ||
double | mass, | ||
double | restLength, | ||
VecCoord | xFixedPoint, | ||
VecDeriv | vFixedPoint, | ||
VecCoord | xMass, | ||
VecDeriv | vMass | ||
) |
Create a mass srping system.
PatchTestStruct< DataTypes > sofa::Elasticity_test< DataTypes >::createRegularGridScene | ( | simulation::Node::SPtr | root, |
Coord | startPoint, | ||
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 | ||
) |
Create a scene with a regular grid and an affine constraint for patch test.