G4ExplicitEuler Class Reference

#include <G4ExplicitEuler.hh>

Inheritance diagram for G4ExplicitEuler:

G4MagErrorStepper G4MagIntegratorStepper

Public Member Functions

 G4ExplicitEuler (G4EquationOfMotion *EqRhs, G4int numberOfVariables=6)
 ~G4ExplicitEuler ()
void DumbStepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[])
G4int IntegratorOrder () const

Detailed Description

Definition at line 48 of file G4ExplicitEuler.hh.


Constructor & Destructor Documentation

G4ExplicitEuler::G4ExplicitEuler ( G4EquationOfMotion EqRhs,
G4int  numberOfVariables = 6 
)

Definition at line 45 of file G4ExplicitEuler.cc.

00047  : G4MagErrorStepper(EqRhs, numberOfVariables)
00048 {
00049 }

G4ExplicitEuler::~G4ExplicitEuler (  ) 

Definition at line 56 of file G4ExplicitEuler.cc.

00057 {
00058 }


Member Function Documentation

void G4ExplicitEuler::DumbStepper ( const G4double  y[],
const G4double  dydx[],
G4double  h,
G4double  yout[] 
) [virtual]

Implements G4MagErrorStepper.

Definition at line 66 of file G4ExplicitEuler.cc.

References G4MagIntegratorStepper::GetNumberOfVariables().

00070 {
00071   const G4int numberOfVariables= GetNumberOfVariables();
00072 
00073   // Initialise time to t0, needed when it is not updated by the integration.
00074   // yOut[7] = yIn[7];   //  Better to set it to NaN;  // TODO
00075 
00076   G4int i;
00077 
00078   for(i=0;i< numberOfVariables;i++)
00079   {
00080     yOut[i] = yIn[i] + h*dydx[i] ;             // 1st and only Step 
00081   }
00082   
00083   return ;
00084 }  

G4int G4ExplicitEuler::IntegratorOrder (  )  const [inline, virtual]

Implements G4MagIntegratorStepper.

Definition at line 63 of file G4ExplicitEuler.hh.

00063 { return 1; }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:57 2013 for Geant4 by  doxygen 1.4.7