OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
LF2.h
Go to the documentation of this file.
1 #ifndef LF2_H
2 #define LF2_H
3 
4 #include "Stepper.h"
5 #include "Physics/Physics.h"
6 
8 template <typename FieldFunction, typename ... Arguments>
9 class LF2 : public Stepper<FieldFunction, Arguments...> {
10 
11 public:
12 
13  LF2(const FieldFunction& fieldfunc) : Stepper<FieldFunction, Arguments ...>(fieldfunc) { }
14 
15 private:
17  const size_t& i,
18  const double& t,
19  const double dt,
20  Arguments& ... args) const;
21 
22 
23  void push_m(Vector_t& R, const Vector_t& P, const double& h) const;
24 
25  bool kick_m(PartBunchBase<double, 3>* bunch, const size_t& i,
26  const double& t, const double& h,
27  Arguments& ... args) const;
28 };
29 
30 #include "LF2.hpp"
31 
32 #endif
Definition: TSVMeta.h:24
bool doAdvance_m(PartBunchBase< double, 3 > *bunch, const size_t &i, const double &t, const double dt, Arguments &...args) const
Definition: LF2.hpp:4
bool kick_m(PartBunchBase< double, 3 > *bunch, const size_t &i, const double &t, const double &h, Arguments &...args) const
Definition: LF2.hpp:36
Leap-Frog 2nd order.
Definition: LF2.h:9
LF2(const FieldFunction &fieldfunc)
Definition: LF2.h:13
void push_m(Vector_t &R, const Vector_t &P, const double &h) const
Definition: LF2.hpp:25