This allow MeshTrian to interact with the messaging system. More...
Namespaces | |
collision_test | |
component | |
core | |
defaulttype | |
framework | |
geometry | |
gl | |
Forward declaration. | |
gui | |
helper | |
linearalgebra | |
mapping_test | |
simpleapi | |
simulation | |
testing | |
topology | |
type | |
for std::pair | |
Classes | |
struct | AdvancedTimerTest |
struct | AffinePatch_sofa_test |
struct | CylinderTractionStruct |
Structure which contains the nodes and the pointers useful for the cylindertraction test. More... | |
struct | DataEngine_test |
Helper for writing DataEngine tests. More... | |
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. More... | |
struct | LinearElasticity_test |
struct | MultiMapping_test |
Base class for the MultiMapping tests, directly adapted from Mapping_test. More... | |
struct | PatchTestStruct |
Structure which contains the nodes and the pointers useful for the patch test. More... | |
class | TemplateAliasTest |
class | TestDataEngine |
Typedefs | |
typedef Types< Vec3Types > | DataTypes |
typedef component::statecontainer::MechanicalObject< defaulttype::Vec3Types > | MechanicalObject3 |
Functions | |
SOFA_EXPORT_DYNAMIC_LIBRARY void | initSofaComponentCompat () |
TYPED_TEST_SUITE (AffinePatch_sofa_test, DataTypes) | |
TYPED_TEST (AffinePatch_sofa_test, patchTest2D) | |
TYPED_TEST (AffinePatch_sofa_test, patchTest3D) | |
template<typename DataTypes > | |
CylinderTractionStruct< DataTypes > | createCylinderTractionScene (int resolutionCircumferential, int resolutionRadial, int resolutionHeight, int maxIter) |
TYPED_TEST_SUITE (LinearElasticity_test, DataTypes) | |
TYPED_TEST (LinearElasticity_test, testTractionTensorMass) | |
TYPED_TEST (LinearElasticity_test, testTractionCorotational) | |
template<class DataTypes > | |
PatchTestStruct< DataTypes > | createRegularGridScene (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) |
Create a scene with a regular grid and an affine constraint for patch test. More... | |
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) | |
template<class mat > | |
helper::OwnershipSPtr< mat > | convertSPtr (const linearalgebra::BaseMatrix *m) |
TEST_F (DefaultAnimationLoop_test, testOneStep) | |
Variables | |
const double | pressureArray [] = {0.6, 0.2, -0.2, -0.6} |
const size_t | sizePressureArray = sizeof(pressureArray)/sizeof(pressureArray[0]) |
const double | youngModulusArray [] = {1.0,2.0} |
const size_t | sizeYoungModulusArray = sizeof(youngModulusArray)/sizeof(youngModulusArray[0]) |
const double | poissonRatioArray [] = {0.0,0.3,0.49} |
const size_t | sizePoissonRatioArray = sizeof(poissonRatioArray)/sizeof(poissonRatioArray[0]) |
This allow MeshTrian to interact with the messaging system.
For SOFA_HELPER_API.
This register the TriangleLoader object to the logging system so that we can use msg_*(this)
For size_t For std::string
Helpers to apply Eigen matrix methods to the Mat sofa type
Utility to compute the sorted permutation of a container. See example at the end of the file Francois Faure, April 2012
typedef Types< Vec3Types > sofa::DataTypes |
helper::OwnershipSPtr<mat> sofa::convertSPtr | ( | const linearalgebra::BaseMatrix * | m | ) |
Converts a BaseMatrix to a eigen sparse matrix encapsulted in a OwnershipSPtr. It the conversion needs to create a temporary matrix, it will be automatically deleted by the OwnershipSPtr (with ownership). It the conversion did not create a temporary data, and points to an existing matrix, the OwnershipSPtr does not take the ownership and won't delete anything. @TODO move this somewhere else?
CylinderTractionStruct<DataTypes> sofa::createCylinderTractionScene | ( | int | resolutionCircumferential, |
int | resolutionRadial, | ||
int | resolutionHeight, | ||
int | maxIter | ||
) |
PatchTestStruct<DataTypes> sofa::createRegularGridScene | ( | 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 | ||
) |
Create a scene with a regular grid and an affine constraint for patch test.
SOFA_EXPORT_DYNAMIC_LIBRARY void sofa::initSofaCompat | ( | ) |
SOFA_EXPORT_DYNAMIC_LIBRARY void sofa::initSofaComponentCompat | ( | ) |
SOFA_EXPORT_DYNAMIC_LIBRARY void sofa::initSofaConfig | ( | ) |
sofa::TEST_F | ( | AdvancedTimerTest | , |
End | |||
) |
sofa::TEST_F | ( | AdvancedTimerTest | , |
IsEnabled | |||
) |
sofa::TEST_F | ( | AdvancedTimerTest | , |
SetOutputType | |||
) |
sofa::TEST_F | ( | DefaultAnimationLoop_test | , |
testOneStep | |||
) |
sofa::TEST_F | ( | TemplateAliasTest | , |
Register | |||
) |
sofa::TYPED_TEST | ( | AffinePatch_sofa_test | , |
patchTest2D | |||
) |
sofa::TYPED_TEST | ( | AffinePatch_sofa_test | , |
patchTest3D | |||
) |
sofa::TYPED_TEST | ( | LinearElasticity_test | , |
testTractionCorotational | |||
) |
sofa::TYPED_TEST | ( | LinearElasticity_test | , |
testTractionTensorMass | |||
) |
sofa::TYPED_TEST_SUITE | ( | AffinePatch_sofa_test | , |
DataTypes | |||
) |
sofa::TYPED_TEST_SUITE | ( | LinearElasticity_test | , |
DataTypes | |||
) |
const double sofa::poissonRatioArray[] = {0.0,0.3,0.49} |
const double sofa::pressureArray[] = {0.6, 0.2, -0.2, -0.6} |
const size_t sofa::sizePoissonRatioArray = sizeof(poissonRatioArray)/sizeof(poissonRatioArray[0]) |
const size_t sofa::sizePressureArray = sizeof(pressureArray)/sizeof(pressureArray[0]) |
const size_t sofa::sizeYoungModulusArray = sizeof(youngModulusArray)/sizeof(youngModulusArray[0]) |
const double sofa::youngModulusArray[] = {1.0,2.0} |