§ MockOdeSolver()
SurgSim::Math::MockOdeSolver::MockOdeSolver |
( |
OdeEquation * |
equation | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
equation | The ode equation to be solved |
§ assembleLinearSystem()
void SurgSim::Math::MockOdeSolver::assembleLinearSystem |
( |
double |
dt, |
|
|
const OdeState & |
state, |
|
|
const OdeState & |
newState, |
|
|
bool |
computeRHS |
|
) |
| |
|
inlineoverridevirtual |
Assemble the linear system (A.x=b) to be solved for the state and new states (useful for certain ode solver).
- Parameters
-
dt | The time step used in the system |
state,newState | The state and newState to be used to evaluate the system |
computeRHS | True to compute the RHS vector, False otherwise |
- Note
- The method should fill up the LHS matrix in m_systemMatrix and the RHS vector in m_b (if requested)
-
The method should take care of the boundary conditions properly on both the matrix and the vector.
-
The method should prepare the linear solver m_linearSolver to be used with the m_systemMatrix
Implements SurgSim::Math::OdeSolver.
§ solve()
void SurgSim::Math::MockOdeSolver::solve |
( |
double |
dt, |
|
|
const OdeState & |
currentState, |
|
|
OdeState * |
newState, |
|
|
bool |
computeCompliance = true |
|
) |
| |
|
inlineoverridevirtual |
Solves the equation.
- Parameters
-
| dt | The time step |
| currentState | State at time t |
[out] | newState | State at time t+dt |
| computeCompliance | True to explicitly compute the compliance matrix, False otherwise |
Implements SurgSim::Math::OdeSolver.
The documentation for this class was generated from the following file: