Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4RK547FEq2.hh
이 파일의 문서화 페이지로 가기
1 // ********************************************************************
2 // * License and Disclaimer *
3 // * *
4 // * The Geant4 software is copyright of the Copyright Holders of *
5 // * the Geant4 Collaboration. It is provided under the terms and *
6 // * conditions of the Geant4 Software License, included in the file *
7 // * LICENSE and available at http://cern.ch/geant4/license . These *
8 // * include a list of copyright holders. *
9 // * *
10 // * Neither the authors of this software system, nor their employing *
11 // * institutes,nor the agencies providing financial support for this *
12 // * work make any representation or warranty, express or implied, *
13 // * regarding this software system or assume any liability for its *
14 // * use. Please see the license in the file LICENSE and URL above *
15 // * for the full disclaimer and the limitation of liability. *
16 // * *
17 // * This code implementation is the result of the scientific and *
18 // * technical work of the GEANT4 collaboration. *
19 // * By using, copying, modifying or distributing the software (or *
20 // * any work based on the software) you agree to acknowledge its *
21 // * use in resulting scientific publications, and indicate your *
22 // * acceptance of all terms of the Geant4 Software license. *
23 // ********************************************************************
24 //
25 //
26 // $Id: $
27 //
28 // Helper namespace 'magneticfield'
29 //
30 // Description:
31 // An implementation of the 7 stage embedded Runge-Kutta 4,5 pair (RK547FEq2)
32 // from the paper D. J. Higham and G. Hall,
33 // “Embedded Runge-Kutta formulae with stable equilibrium states”,
34 // J. Comput. Appl. Math., vol. 29, no. 1, pp. 25–33, Jan. 1990.
35 //
36 // Implementation by Dmitry Sorokin - GSoC 2017
37 // Work supported by Google as part of Google Summer of Code 2017.
38 // Supervision / code review: John Apostolakis
39 
40 #ifndef G4RK547FEq2_HH
41 #define G4RK547FEq2_HH
42 
44 #include "G4FieldTrack.hh"
45 
47 public:
48  G4RK547FEq2(G4EquationOfMotion* EqRhs, G4int integrationVariables = 6);
49 
50  virtual void Stepper(
51  const G4double yInput[],
52  const G4double dydx[],
53  G4double hstep,
54  G4double yOutput[],
55  G4double yError[]) override;
56 
57  void Stepper(
58  const G4double yInput[],
59  const G4double dydx[],
60  G4double hstep,
61  G4double yOutput[],
62  G4double yError[],
63  G4double dydxOutput[]);
64 
65  G4RK547FEq2 (const G4RK547FEq2&) = delete;
66  G4RK547FEq2& operator = (const G4RK547FEq2&) = delete;
67 
68  virtual G4double DistChord() const override;
69  virtual G4int IntegratorOrder() const override { return 4; }
70 
71 private:
72  void makeStep(
73  const G4double yInput[],
74  const G4double dydx[],
75  const G4double hstep,
76  G4double yOutput[],
77  G4double* dydxOutput = nullptr,
78  G4double* yError = nullptr) const;
79 
85 };
86 
87 #endif
G4RK547FEq2 & operator=(const G4RK547FEq2 &)=delete
virtual G4double DistChord() const override
Definition: G4RK547FEq2.cc:171
G4RK547FEq2(G4EquationOfMotion *EqRhs, G4int integrationVariables=6)
Definition: G4RK547FEq2.cc:54
void makeStep(const G4double yInput[], const G4double dydx[], const G4double hstep, G4double yOutput[], G4double *dydxOutput=nullptr, G4double *yError=nullptr) const
Definition: G4RK547FEq2.cc:59
G4double fyIn[G4FieldTrack::ncompSVEC]
Definition: G4RK547FEq2.hh:80
G4double fdydx[G4FieldTrack::ncompSVEC]
Definition: G4RK547FEq2.hh:80
double G4double
Definition: G4Types.hh:76
virtual G4int IntegratorOrder() const override
Definition: G4RK547FEq2.hh:69
int G4int
Definition: G4Types.hh:78
G4double fyOut[G4FieldTrack::ncompSVEC]
Definition: G4RK547FEq2.hh:80
virtual void Stepper(const G4double yInput[], const G4double dydx[], G4double hstep, G4double yOutput[], G4double yError[]) override
Definition: G4RK547FEq2.cc:137
G4double fdydxOut[G4FieldTrack::ncompSVEC]
Definition: G4RK547FEq2.hh:80
G4double fhstep
Definition: G4RK547FEq2.hh:84