MBSim |
Project Page |
integrator-interface for dynamic systems More...
#include <integrator.h>
Public Member Functions | |
| Integrator () | |
| constructor | |
| virtual | ~Integrator () |
| destructor | |
| void | setStartTime (double tStart_) |
| void | setEndTime (double tEnd_) |
| void | setPlotStepSize (double dtPlot_) |
| void | setInitialState (const fmatvec::Vec &z0_) |
| void | setWarnLevel (int level) |
| void | setOutput (bool flag) |
| double | getStartTime () const |
| double | getEndTime () const |
| double | getPlotStepSize () const |
| const fmatvec::Vec & | getInitialState () const |
| int | getWarnLevel () const |
| bool | getOutput () const |
| void | execute (DynamicSystemSolver &system) |
| start solving the dynamic system | |
| virtual void | integrate (DynamicSystemSolver &system)=0 |
| start the integration | |
| void | debugInit () |
| virtual void | preIntegrate (DynamicSystemSolver &system) |
| virtual void | subIntegrate (DynamicSystemSolver &system, double tStop) |
| virtual void | postIntegrate (DynamicSystemSolver &system) |
| virtual void | initializeUsingXML (xercesc::DOMElement *element) |
| initialize integrator | |
| virtual xercesc::DOMElement * | writeXMLFile (xercesc::DOMNode *element) |
| void | writeXMLFile (const std::string &name) |
| void | writeXMLFile () |
| virtual std::string | getType () const |
Static Public Member Functions | |
| static Integrator * | readXMLFile (const std::string &filename) |
Protected Attributes | |
| double | tStart |
| start, end, plot time | |
| double | tEnd |
| double | dtPlot |
| fmatvec::Vec | z0 |
| initial state | |
| int | warnLevel |
| warn level | |
| bool | output |
| flag for ouput printing | |
| std::string | name |
| name of integrator | |
integrator-interface for dynamic systems
| void MBSim::Integrator::debugInit | ( | ) |
Each class implemeting the Integrator::integrate function should call this function first. This function does currently only some minor modification of the integrator data (like end time) dependent on environment variables. This is used mainly for debugging purposes like automatic valgrind runs with a very small tEnd time.
| void MBSim::Integrator::execute | ( | DynamicSystemSolver & | system | ) | [inline, virtual] |
| virtual std::string MBSim::Integrator::getType | ( | ) | const [inline, virtual] |
Reimplemented in MBSim::DOPRI5Integrator, MBSim::LSODARIntegrator, and MBSim::LSODEIntegrator.
| virtual void MBSim::Integrator::initializeUsingXML | ( | xercesc::DOMElement * | element | ) | [virtual] |
initialize integrator
| XML | description |
Implements MBSim::Solver.
Reimplemented in MBSim::AutoTimeSteppingSSCIntegrator, MBSim::TimeSteppingSSCIntegrator, MBSim::DOPRI5Integrator, MBSim::LSODARIntegrator, MBSim::RADAU5Integrator, MBSim::LSODEIntegrator, MBSim::RKSuiteIntegrator, MBSim::TimeSteppingD1MinusLinearIntegrator, MBSim::ThetaTimeSteppingIntegrator, MBSim::TimeSteppingIntegrator, MBSim::EulerExplicitIntegrator, and MBSim::ThetaTimeSteppingSSCIntegrator.
| virtual void MBSim::Integrator::integrate | ( | DynamicSystemSolver & | system | ) | [pure virtual] |
start the integration
| dynamic | system to be integrated Each class implemeting this function should call debugInit first. |
Implemented in MBSim::AutoTimeSteppingSSCIntegrator, MBSim::TimeSteppingSSCIntegrator, MBSim::DOPRI5Integrator, MBSim::LSODARIntegrator, MBSim::RADAU5Integrator, MBSim::LSODEIntegrator, MBSim::ODEXIntegrator, MBSim::DOP853Integrator, MBSim::LSODERIntegrator, MBSim::RKSuiteIntegrator, MBSim::TimeSteppingD1MinusLinearIntegrator, MBSim::ThetaTimeSteppingIntegrator, MBSim::TimeSteppingIntegrator, MBSim::EulerExplicitIntegrator, and MBSim::ThetaTimeSteppingSSCIntegrator.
1.8.0