Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RK547FEq1 Class Reference

#include <G4RK547FEq1.hh>

+ Inheritance diagram for G4RK547FEq1:

Public Member Functions

 G4RK547FEq1 (G4EquationOfMotion *EqRhs, G4int integrationVariables=6)
 
 G4RK547FEq1 (const G4RK547FEq1 &)=delete
 
G4RK547FEq1operator= (const G4RK547FEq1 &)=delete
 
void Stepper (const G4double yInput[], const G4double dydx[], G4double hstep, G4double yOutput[], G4double yError[]) override
 
void Stepper (const G4double yInput[], const G4double dydx[], G4double hstep, G4double yOutput[], G4double yError[], G4double dydxOutput[])
 
G4double DistChord () const override
 
G4int IntegratorOrder () const override
 
- Public Member Functions inherited from G4MagIntegratorStepper
 G4MagIntegratorStepper (G4EquationOfMotion *Equation, G4int numIntegrationVariables, G4int numStateVariables=12, G4bool isFSAL=false)
 
virtual ~G4MagIntegratorStepper ()=default
 
 G4MagIntegratorStepper (const G4MagIntegratorStepper &)=delete
 
G4MagIntegratorStepperoperator= (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 ()
 
G4EquationOfMotionGetEquationOfMotion ()
 
const G4EquationOfMotionGetEquationOfMotion () const
 
void SetEquationOfMotion (G4EquationOfMotion *newEquation)
 
unsigned long GetfNoRHSCalls ()
 
void ResetfNORHSCalls ()
 
G4bool IsFSAL () const
 
G4bool isQSS () const
 
void SetIsQSS (G4bool val)
 

Additional Inherited Members

- Protected Member Functions inherited from G4MagIntegratorStepper
void SetIntegrationOrder (G4int order)
 
void SetFSAL (G4bool flag=true)
 

Detailed Description

Definition at line 44 of file G4RK547FEq1.hh.

Constructor & Destructor Documentation

◆ G4RK547FEq1() [1/2]

G4RK547FEq1::G4RK547FEq1 ( G4EquationOfMotion * EqRhs,
G4int integrationVariables = 6 )

Definition at line 51 of file G4RK547FEq1.cc.

52 : G4MagIntegratorStepper(EqRhs, integrationVariables)
53{
54}
G4MagIntegratorStepper(G4EquationOfMotion *Equation, G4int numIntegrationVariables, G4int numStateVariables=12, G4bool isFSAL=false)

◆ G4RK547FEq1() [2/2]

G4RK547FEq1::G4RK547FEq1 ( const G4RK547FEq1 & )
delete

Member Function Documentation

◆ DistChord()

G4double G4RK547FEq1::DistChord ( ) const
overridevirtual

Implements G4MagIntegratorStepper.

Definition at line 178 of file G4RK547FEq1.cc.

179{
181 makeStep(fyIn, fdydx, fhstep / 2., yMid);
182
183 const G4ThreeVector begin = makeVector(fyIn, Value3D::Position);
184 const G4ThreeVector mid = makeVector(yMid, Value3D::Position);
185 const G4ThreeVector end = makeVector(fyOut, Value3D::Position);
186
187 return G4LineSection::Distline(mid, begin, end);
188}
double G4double
Definition G4Types.hh:83
static G4double Distline(const G4ThreeVector &OtherPnt, const G4ThreeVector &LinePntA, const G4ThreeVector &LinePntB)
G4ThreeVector makeVector(const ArrayType &array, Value3D value)

◆ IntegratorOrder()

G4int G4RK547FEq1::IntegratorOrder ( ) const
inlineoverridevirtual

Implements G4MagIntegratorStepper.

Definition at line 67 of file G4RK547FEq1.hh.

67{ return 4; }

◆ operator=()

G4RK547FEq1 & G4RK547FEq1::operator= ( const G4RK547FEq1 & )
delete

◆ Stepper() [1/2]

void G4RK547FEq1::Stepper ( const G4double yInput[],
const G4double dydx[],
G4double hstep,
G4double yOutput[],
G4double yError[] )
overridevirtual

Implements G4MagIntegratorStepper.

Definition at line 146 of file G4RK547FEq1.cc.

151{
152 copy(fyIn, yInput);
153 copy(fdydx, dydx);
154 fhstep = hstep;
155
156 makeStep(fyIn, fdydx, fhstep, fyOut, fdydxOut, yError);
157
158 copy(yOutput, fyOut);
159}
void copy(G4double dst[], const G4double src[], std::size_t size=G4FieldTrack::ncompSVEC)

◆ Stepper() [2/2]

void G4RK547FEq1::Stepper ( const G4double yInput[],
const G4double dydx[],
G4double hstep,
G4double yOutput[],
G4double yError[],
G4double dydxOutput[] )

Definition at line 161 of file G4RK547FEq1.cc.

167{
168 copy(fyIn, yInput);
169 copy(fdydx, dydx);
170 fhstep = hstep;
171
172 makeStep(fyIn,fdydx, fhstep, fyOut, fdydxOut, yError);
173
174 copy(yOutput, fyOut);
175 copy(dydxOutput, fdydxOut);
176}

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