OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
4-th order Runnge-Kutta stepper More...
#include <RK4.h>
Public Member Functions | |
RK4 (const FieldFunction &fieldfunc) | |
![]() | |
Stepper (const FieldFunction &fieldfunc) | |
virtual bool | advance (PartBunchBase< double, 3 > *bunch, const size_t &i, const double &t, const double dt, Arguments &... args) const |
virtual | ~Stepper () |
Private Member Functions | |
bool | doAdvance_m (PartBunchBase< double, 3 > *bunch, const size_t &i, const double &t, const double dt, Arguments &... args) const |
bool | derivate_m (PartBunchBase< double, 3 > *bunch, double *y, const double &t, double *yp, const size_t &i, Arguments &... args) const |
void | copyTo (const Vector_t &R, const Vector_t &P, double *x) const |
void | copyFrom (Vector_t &R, Vector_t &P, double *x) const |
Private Attributes | |
const double | mass_coeff = 1.0e9 * Units::GeV2kg |
const double | c_mmtns = Physics::c * Units::m2mm / Units::s2ns |
const double | c_mtns = Physics::c / Units::s2ns |
Additional Inherited Members | |
![]() | |
const FieldFunction & | fieldfunc_m |
4-th order Runnge-Kutta stepper
|
private |
Definition at line 145 of file RK4.hpp.
References Attrib::Distribution::R.
|
private |
Definition at line 133 of file RK4.hpp.
References Attrib::Distribution::R.
|
private |
y | |
t | |
yp | |
Pindex |
Definition at line 88 of file RK4.hpp.
References Physics::c, PartBunchBase< T, Dim >::M, PartBunchBase< T, Dim >::Q, PartBunchBase< T, Dim >::R, and sqrt().
|
privatevirtual |
Implements Stepper< FieldFunction, Arguments... >.
Definition at line 20 of file RK4.hpp.
References PartBunchBase< T, Dim >::P, and PartBunchBase< T, Dim >::R.
|
private |
|
private |
|
private |