Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4MagIntegratorStepper Class Referenceabstract

#include <G4MagIntegratorStepper.hh>

Inheritance diagram for G4MagIntegratorStepper:

Public Member Functions

 G4MagIntegratorStepper (G4EquationOfMotion *Equation, G4int numIntegrationVariables, G4int numStateVariables=12, bool isFSAL=false)
 
virtual ~G4MagIntegratorStepper ()
 
virtual void Stepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])=0
 
virtual G4double DistChord () const =0
 
virtual void ComputeRightHandSide (const G4double y[], G4double dydx[])
 
void NormaliseTangentVector (G4double vec[6])
 
void NormalisePolarizationVector (G4double vec[12])
 
void RightHandSide (const double y[], double dydx[])
 
G4int GetNumberOfVariables () const
 
G4int GetNumberOfStateVariables () const
 
virtual G4int IntegratorOrder () const =0
 
G4int IntegrationOrder ()
 
G4EquationOfMotionGetEquationOfMotion ()
 
void SetEquationOfMotion (G4EquationOfMotion *newEquation)
 
unsigned long GetfNoRHSCalls ()
 
void ResetfNORHSCalls ()
 
bool IsFSAL ()
 

Protected Member Functions

void SetIntegrationOrder (int order)
 
void SetFSAL (bool flag=true)
 

Detailed Description

Definition at line 52 of file G4MagIntegratorStepper.hh.

Constructor & Destructor Documentation

G4MagIntegratorStepper::G4MagIntegratorStepper ( G4EquationOfMotion Equation,
G4int  numIntegrationVariables,
G4int  numStateVariables = 12,
bool  isFSAL = false 
)

Definition at line 36 of file G4MagIntegratorStepper.cc.

42  : fEquation_Rhs(Equation),
43  fNoIntegrationVariables(num_integration_vars),
44  fNoStateVariables(std::max(num_state_vars,8)),
45  fIsFSAL(isFSAL)
46  // , fIntegrationOrder( methodOrder )
47 {
48 }
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4MagIntegratorStepper::~G4MagIntegratorStepper ( )
virtual

Definition at line 50 of file G4MagIntegratorStepper.cc.

51 {
52 }

Member Function Documentation

void G4MagIntegratorStepper::ComputeRightHandSide ( const G4double  y[],
G4double  dydx[] 
)
virtual

Reimplemented in G4NystromRK4.

Definition at line 54 of file G4MagIntegratorStepper.cc.

55 {
56  this->RightHandSide( y, dydx );
57 }
void RightHandSide(const double y[], double dydx[])

Here is the call graph for this function:

Here is the caller graph for this function:

G4EquationOfMotion* G4MagIntegratorStepper::GetEquationOfMotion ( )
inline

Here is the caller graph for this function:

unsigned long G4MagIntegratorStepper::GetfNoRHSCalls ( )
inline

Definition at line 111 of file G4MagIntegratorStepper.hh.

111 { return fNoRHSCalls; }
G4int G4MagIntegratorStepper::GetNumberOfStateVariables ( ) const
inline

Here is the caller graph for this function:

G4int G4MagIntegratorStepper::GetNumberOfVariables ( ) const
inline

Here is the caller graph for this function:

G4int G4MagIntegratorStepper::IntegrationOrder ( )
inline

Definition at line 103 of file G4MagIntegratorStepper.hh.

103 { return fIntegrationOrder; }
bool G4MagIntegratorStepper::IsFSAL ( )
inline

Definition at line 116 of file G4MagIntegratorStepper.hh.

116 { return fIsFSAL; }
void G4MagIntegratorStepper::NormalisePolarizationVector ( G4double  vec[12])
inline

Here is the caller graph for this function:

void G4MagIntegratorStepper::NormaliseTangentVector ( G4double  vec[6])
inline
void G4MagIntegratorStepper::ResetfNORHSCalls ( )
inline

Definition at line 113 of file G4MagIntegratorStepper.hh.

113 { fNoRHSCalls = 0; }
void G4MagIntegratorStepper::RightHandSide ( const double  y[],
double  dydx[] 
)
inline

Here is the caller graph for this function:

void G4MagIntegratorStepper::SetEquationOfMotion ( G4EquationOfMotion newEquation)
inline

Here is the caller graph for this function:

void G4MagIntegratorStepper::SetFSAL ( bool  flag = true)
inlineprotected

Definition at line 120 of file G4MagIntegratorStepper.hh.

120 { fIsFSAL= flag; }
void G4MagIntegratorStepper::SetIntegrationOrder ( int  order)
inlineprotected

Definition at line 119 of file G4MagIntegratorStepper.hh.

119 { fIntegrationOrder= order; }
virtual void G4MagIntegratorStepper::Stepper ( const G4double  y[],
const G4double  dydx[],
G4double  h,
G4double  yout[],
G4double  yerr[] 
)
pure virtual

The documentation for this class was generated from the following files: