#include <G4ImplicitEuler.hh>
|
| G4ImplicitEuler (G4EquationOfMotion *EqRhs, G4int numberOfVariables=6) |
|
| ~G4ImplicitEuler () override |
|
void | DumbStepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[]) override |
|
G4int | IntegratorOrder () const override |
|
| G4MagErrorStepper (G4EquationOfMotion *EqRhs, G4int numberOfVariables, G4int numStateVariables=12) |
|
| ~G4MagErrorStepper () override |
|
| G4MagErrorStepper (const G4MagErrorStepper &)=delete |
|
G4MagErrorStepper & | operator= (const G4MagErrorStepper &)=delete |
|
void | Stepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[]) override |
|
G4double | DistChord () const override |
|
| G4MagIntegratorStepper (G4EquationOfMotion *Equation, G4int numIntegrationVariables, G4int numStateVariables=12, G4bool isFSAL=false) |
|
virtual | ~G4MagIntegratorStepper ()=default |
|
| G4MagIntegratorStepper (const G4MagIntegratorStepper &)=delete |
|
G4MagIntegratorStepper & | operator= (const G4MagIntegratorStepper &)=delete |
|
void | NormaliseTangentVector (G4double vec[6]) |
|
void | NormalisePolarizationVector (G4double vec[12]) |
|
void | RightHandSide (const G4double y[], G4double dydx[]) const |
|
void | RightHandSide (const G4double y[], G4double dydx[], G4double field[]) const |
|
G4int | GetNumberOfVariables () const |
|
G4int | GetNumberOfStateVariables () const |
|
G4int | IntegrationOrder () |
|
G4EquationOfMotion * | GetEquationOfMotion () |
|
const G4EquationOfMotion * | GetEquationOfMotion () const |
|
void | SetEquationOfMotion (G4EquationOfMotion *newEquation) |
|
unsigned long | GetfNoRHSCalls () |
|
void | ResetfNORHSCalls () |
|
G4bool | IsFSAL () const |
|
G4bool | isQSS () const |
|
void | SetIsQSS (G4bool val) |
|
Definition at line 45 of file G4ImplicitEuler.hh.
◆ G4ImplicitEuler()
Definition at line 47 of file G4ImplicitEuler.cc.
50{
51 unsigned int noVariables = std::max(numberOfVariables,8);
52 dydxTemp =
new G4double[noVariables] ;
54}
G4MagErrorStepper(G4EquationOfMotion *EqRhs, G4int numberOfVariables, G4int numStateVariables=12)
◆ ~G4ImplicitEuler()
G4ImplicitEuler::~G4ImplicitEuler |
( |
| ) |
|
|
override |
Definition at line 61 of file G4ImplicitEuler.cc.
62{
63 delete [] dydxTemp;
64 delete [] yTemp;
65}
◆ DumbStepper()
Implements G4MagErrorStepper.
Definition at line 72 of file G4ImplicitEuler.cc.
76{
78
79
80
81 yTemp[7] = yOut[7] = yIn[7];
82
83 for(
G4int i = 0; i < numberOfVariables; ++i )
84 {
85 yTemp[i] = yIn[i] + h*dydx[i] ;
86 }
87
89
90 for(
G4int i = 0; i < numberOfVariables; ++i )
91 {
92 yOut[i] = yIn[i] + 0.5 * h * ( dydx[i] + dydxTemp[i] );
93 }
94
95 return;
96}
G4int GetNumberOfVariables() const
void RightHandSide(const G4double y[], G4double dydx[]) const
◆ IntegratorOrder()
G4int G4ImplicitEuler::IntegratorOrder |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following files: