|
opensurgsim
|
State class for static resolution It contains 3 nodes with 3 dofs each, with positions (0 0 0) (1 0 0) (2 0 0) and null velocities/accelerations. More...
#include <MockObject.h>
Additional Inherited Members | |
Public Member Functions inherited from SurgSim::Math::OdeState | |
| OdeState () | |
| Default constructor. | |
| virtual | ~OdeState () |
| Destructor. | |
| bool | operator== (const OdeState &state) const |
| Comparison operator (equality test) More... | |
| bool | operator!= (const OdeState &state) const |
| Comparison operator (difference test) More... | |
| virtual void | reset () |
| Resets the state. More... | |
| virtual void | setNumDof (size_t numDofPerNode, size_t numNodes) |
| Allocates the state for a given number of degrees of freedom. More... | |
| size_t | getNumDof () const |
| Retrieves the number of degrees of freedom. More... | |
| size_t | getNumNodes () const |
| Retrieves the number of nodes. More... | |
| SurgSim::Math::Vector & | getPositions () |
| Retrieves all degrees of freedom's position (non-const version) More... | |
| const SurgSim::Math::Vector & | getPositions () const |
| Retrieves all degrees of freedom's position (const version) More... | |
| const SurgSim::Math::Vector3d | getPosition (size_t nodeId) const |
| Retrieves the position of a given node (const version) More... | |
| SurgSim::Math::Vector & | getVelocities () |
| Retrieves all degrees of freedom's velocity (non-const version) More... | |
| const SurgSim::Math::Vector & | getVelocities () const |
| Retrieves all degrees of freedom's velocity (const version) More... | |
| const SurgSim::Math::Vector3d | getVelocity (size_t nodeId) const |
| Retrieves the velocity of a given node (const version) More... | |
| void | addBoundaryCondition (size_t nodeId) |
| Adds boundary conditions for a given node (fixes all the dof for this node) More... | |
| void | addBoundaryCondition (size_t nodeId, size_t nodeDofId) |
| Adds a boundary condition on a given dof of a given node (only 1 dof is fixed) More... | |
| size_t | getNumBoundaryConditions () const |
| Retrieves the number of boundary conditions. More... | |
| const std::vector< size_t > & | getBoundaryConditions () const |
| Retrieves all boundary conditions. More... | |
| bool | isBoundaryCondition (size_t dof) const |
| Queries if a specific dof is a boundary condition or not. More... | |
| Vector * | applyBoundaryConditionsToVector (Vector *vector) const |
| Apply boundary conditions to a given vector. More... | |
| void | applyBoundaryConditionsToMatrix (Matrix *matrix, bool hasCompliance=true) const |
| Apply boundary conditions to a given matrix. More... | |
| void | applyBoundaryConditionsToMatrix (SparseMatrix *matrix, bool hasCompliance=true) const |
| Apply boundary conditions to a given matrix. More... | |
| void | addBoundaryConditionStaticDof (size_t nodeId, double value) |
| Adds a boundary condition on the static dof of a given node (we consider here that each node has a single static dof) More... | |
| size_t | getNumBoundaryConditionsStaticDof () const |
| const std::vector< std::pair< size_t, double > > & | getBoundaryConditionsStaticDof () const |
| void | setBoundaryConditionsStaticDof (const std::vector< std::pair< size_t, double >> &staticDof) |
| Set all boundary conditions on static dofs. More... | |
| void | changeBoundaryConditionStaticDof (size_t nodeId, double value) |
| Set the value of an existing boundary condition on a static dof. More... | |
| virtual bool | isValid () const |
| Check if this state is numerically valid. More... | |
| OdeState | interpolate (const OdeState &other, double t) const |
| Returns the linear interpolated ODE state between this and other at parameter t. More... | |
State class for static resolution It contains 3 nodes with 3 dofs each, with positions (0 0 0) (1 0 0) (2 0 0) and null velocities/accelerations.
1.8.12