Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EquationOfMotion Class Referenceabstract

#include <G4EquationOfMotion.hh>

+ Inheritance diagram for G4EquationOfMotion:

Public Member Functions

 G4EquationOfMotion (G4Field *Field)
 
virtual ~G4EquationOfMotion ()
 
virtual void EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const =0
 
virtual void SetChargeMomentumMass (G4double particleCharge, G4double MomentumXc, G4double MassXc2)=0
 
void RightHandSide (const G4double y[], G4double dydx[]) const
 
void EvaluateRhsReturnB (const G4double y[], G4double dydx[], G4double Field[]) const
 
void GetFieldValue (const G4double Point[4], G4double Field[]) const
 
const G4FieldGetFieldObj () const
 
void SetFieldObj (G4Field *pField)
 

Detailed Description

Definition at line 47 of file G4EquationOfMotion.hh.

Constructor & Destructor Documentation

◆ G4EquationOfMotion()

G4EquationOfMotion::G4EquationOfMotion ( G4Field Field)

◆ ~G4EquationOfMotion()

G4EquationOfMotion::~G4EquationOfMotion ( )
virtual

Definition at line 33 of file G4EquationOfMotion.cc.

34{}

Member Function Documentation

◆ EvaluateRhsGivenB()

virtual void G4EquationOfMotion::EvaluateRhsGivenB ( const G4double  y[],
const G4double  B[3],
G4double  dydx[] 
) const
pure virtual

◆ EvaluateRhsReturnB()

void G4EquationOfMotion::EvaluateRhsReturnB ( const G4double  y[],
G4double  dydx[],
G4double  Field[] 
) const

Definition at line 37 of file G4EquationOfMotion.cc.

40{
41 G4double PositionAndTime[4];
42
43 // Position
44 PositionAndTime[0] = y[0];
45 PositionAndTime[1] = y[1];
46 PositionAndTime[2] = y[2];
47 // Global Time
48 PositionAndTime[3] = y[7]; // See G4FieldTrack::LoadFromArray
49
50 GetFieldValue(PositionAndTime, Field) ;
51 EvaluateRhsGivenB( y, Field, dydx );
52}
double G4double
Definition: G4Types.hh:64
virtual void EvaluateRhsGivenB(const G4double y[], const G4double B[3], G4double dydx[]) const =0
void GetFieldValue(const G4double Point[4], G4double Field[]) const

Referenced by G4RKG3_Stepper::StepNoErr().

◆ GetFieldObj()

const G4Field * G4EquationOfMotion::GetFieldObj ( ) const

◆ GetFieldValue()

void G4EquationOfMotion::GetFieldValue ( const G4double  Point[4],
G4double  Field[] 
) const

Referenced by EvaluateRhsReturnB().

◆ RightHandSide()

void G4EquationOfMotion::RightHandSide ( const G4double  y[],
G4double  dydx[] 
) const
inline

◆ SetChargeMomentumMass()

virtual void G4EquationOfMotion::SetChargeMomentumMass ( G4double  particleCharge,
G4double  MomentumXc,
G4double  MassXc2 
)
pure virtual

◆ SetFieldObj()

void G4EquationOfMotion::SetFieldObj ( G4Field pField)

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