mbsim  4.0.0
MBSim Kernel
MBSim::ImplicitEulerIntegrator Class Reference

Implicit Euler integrator. More...

#include <implicit_euler_integrator.h>

Inheritance diagram for MBSim::ImplicitEulerIntegrator:
[legend]

Classes

class  Residuum
 
class  ResiduumFull
 
class  ResiduumReduced
 

Public Member Functions

 ~ImplicitEulerIntegrator () override=default
 destructor
 
void preIntegrate () override
 
void subIntegrate (double tStop) override
 
void postIntegrate () override
 
void integrate () override
 start the integration of the system set by setSystem. Each class implemeting this function should call debugInit first. More...
 
void initializeUsingXML (xercesc::DOMElement *element) override
 
void setStepSize (double dt_)
 
void setReducedForm (bool reduced_)
 
virtual void integrate ()=0
 start the integration of the system set by setSystem. Each class implemeting this function should call debugInit first. More...
 
void integrate (MBSim::DynamicSystemSolver &sys)
 Convinent function: call setSystem(&sys) and integrate()
 
- Public Member Functions inherited from MBSim::Integrator
 Integrator ()
 constructor
 
 ~Integrator () override=default
 destructor
 
void setStartTime (double tStart_)
 
void setEndTime (double tEnd_)
 
void setPlotStepSize (double dtPlot_)
 
void setInitialState (const fmatvec::Vec &z0_)
 
double getStartTime () const
 
double getEndTime () const
 
double getPlotStepSize () const
 
const fmatvec::Vec & getInitialState () const override
 
void execute () override
 start solving the dynamic system set by setSystem. More...
 
virtual void integrate ()=0
 start the integration of the system set by setSystem. Each class implemeting this function should call debugInit first. More...
 
void integrate (MBSim::DynamicSystemSolver &sys)
 Convinent function: call setSystem(&sys) and integrate()
 
void debugInit ()
 
virtual void preIntegrate ()
 
virtual void subIntegrate (double tStop)
 
virtual void postIntegrate ()
 
void initializeUsingXML (xercesc::DOMElement *element) override
 initialize integrator More...
 
- Public Member Functions inherited from MBSim::Solver
 Solver ()
 constructor
 
 ~Solver () override=default
 destructor
 
void throwError (const std::string &msg) const
 
virtual void execute ()=0
 start solving the dynamic system set by setSystem. More...
 
virtual void postprocessing ()
 
virtual void initializeUsingXML (xercesc::DOMElement *element)
 
virtual const fmatvec::Vec & getInitialState () const =0
 
void setSystem (DynamicSystemSolver *s)
 
MBSim::DynamicSystemSolvergetSystem ()
 
const MBXMLUtils::DOMEvalExceptiongetDOMEvalError () const
 

Private Attributes

double dt {1e-3}
 step size
 
bool reduced {false}
 
double tPlot
 
int iter
 
int step
 
int integrationSteps
 
double s0
 
double time
 
int stepPlot
 
Residuumres {nullptr}
 

Additional Inherited Members

- Protected Attributes inherited from MBSim::Integrator
double tStart {0.}
 start, end, plot time
 
double tEnd {1.}
 
double dtPlot {1e-4}
 
fmatvec::Vec z0
 initial state
 
std::string name
 name of integrator
 
- Protected Attributes inherited from MBSim::Solver
MBSim::DynamicSystemSolversystem
 dynamic system
 
MBXMLUtils::DOMEvalException domEvalError
 Special XML helper variable.
 

Detailed Description

Implicit Euler integrator.

Member Function Documentation

◆ initializeUsingXML()

void MBSim::ImplicitEulerIntegrator::initializeUsingXML ( xercesc::DOMElement *  element)
overridevirtual

Reimplemented from MBSim::Solver.

◆ integrate() [1/2]

void MBSim::ImplicitEulerIntegrator::integrate ( )
overridevirtual

start the integration of the system set by setSystem. Each class implemeting this function should call debugInit first.

Implements MBSim::Integrator.

◆ integrate() [2/2]

virtual void MBSim::Integrator::integrate ( )
virtual

start the integration of the system set by setSystem. Each class implemeting this function should call debugInit first.

Implements MBSim::Integrator.

◆ postIntegrate()

void MBSim::ImplicitEulerIntegrator::postIntegrate ( )
overridevirtual

Reimplemented from MBSim::Integrator.

◆ preIntegrate()

void MBSim::ImplicitEulerIntegrator::preIntegrate ( )
overridevirtual

Reimplemented from MBSim::Integrator.

◆ subIntegrate()

void MBSim::ImplicitEulerIntegrator::subIntegrate ( double  tStop)
overridevirtual

Reimplemented from MBSim::Integrator.

Member Data Documentation

◆ reduced

bool MBSim::ImplicitEulerIntegrator::reduced {false}
private

reduced form


The documentation for this class was generated from the following files: