All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
euler_explicit_integrator.h
1 /* Copyright (C) 2004-2009 MBSim Development Team
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  *
17  * Contact: martin.o.foerg@googlemail.com
18  */
19 
20 #ifndef _EULER_EXPLICIT_INTEGRATOR_H_
21 #define _EULER_EXPLICIT_INTEGRATOR_H_
22 
23 #include "integrator.h"
24 
25 namespace MBSimIntegrator {
26 
29  public:
34 
39 
40  void preIntegrate(MBSim::DynamicSystemSolver& system);
41  void subIntegrate(MBSim::DynamicSystemSolver& system, double tStop);
42  void postIntegrate(MBSim::DynamicSystemSolver& system);
43 
44  /* INHERITED INTERFACE OF INTEGRATOR */
46  virtual void initializeUsingXML(xercesc::DOMElement *element);
47  /***************************************************/
48 
49  /* GETTER / SETTER */
50  void setStepSize(double dt_) {dt = dt_;}
51  /***************************************************/
52 
53  private:
57  double dt;
58 
59  double tPlot;
60  int iter, step, integrationSteps;
61  double s0, time;
62  int stepPlot;
63  std::ofstream integPlot;
64  };
65 
66 }
67 
68 #endif
Explicit Euler integrator.
Definition: euler_explicit_integrator.h:28
virtual void integrate(MBSim::DynamicSystemSolver &system)
start the integration
Definition: euler_explicit_integrator.cc:100
solver interface for modelling and simulation of dynamic systems
Definition: dynamic_system_solver.h:48
virtual void initializeUsingXML(xercesc::DOMElement *element)
initialize integrator
Definition: euler_explicit_integrator.cc:107
EulerExplicitIntegrator()
constructor
Definition: euler_explicit_integrator.cc:38
virtual ~EulerExplicitIntegrator()
destructor
Definition: euler_explicit_integrator.h:38
double dt
step size
Definition: euler_explicit_integrator.h:57
integrator-interface for dynamic systems
Definition: integrator.h:40
static DynamicSystemSolver * system
dynamic system
Definition: solver.h:65

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML