Engine
midpoint_method.h
1 #ifndef MIDPOINT_METHOD_H
2 #define MIDPOINT_METHOD_H
3 #include "time_integrator.h"
4 #include "backward_euler.h"
5 #include "explicit_euler.h"
10 {
11  public:
16 
23  MidpointMethod(GLfloat dt, GLfloat threshold,GLuint max_iter);
24 
25  private:
26  BackwardEuler m_backward_euler;
27 
34  void Solve(
35  const NetForceAccumulator& net_force_accumulator,
36  const std::vector<std::shared_ptr<PhysicsEntity>> &entity_ptrs,
37  const std::shared_ptr<PhysicsEntity> entity_ptr);
38 
39 };
40 #endif
MidpointMethod()
Definition: midpoint_method.cpp:3
Implementation of Midpoint method for solving Newton&#39;s Laws.
Definition: midpoint_method.h:9
Implementation of Backward Euler method for solving Newton&#39;s Laws.
Definition: backward_euler.h:8
An abstact base class for all grid based numerical ODE solvers for Newton&#39;s laws. ...
Definition: time_integrator.h:11
Definition: net_force_accumulator.h:14