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

#include <G4StatMFMacroNucleon.hh>

+ Inheritance diagram for G4StatMFMacroNucleon:

Public Member Functions

 G4StatMFMacroNucleon ()
 
 ~G4StatMFMacroNucleon ()
 
G4double CalcMeanMultiplicity (const G4double FreeVol, const G4double mu, const G4double nu, const G4double T)
 
G4double CalcZARatio (const G4double)
 
G4double CalcEnergy (const G4double T)
 
G4double CalcEntropy (const G4double T, const G4double FreeVol)
 
- Public Member Functions inherited from G4VStatMFMacroCluster
 G4VStatMFMacroCluster (const G4int Size)
 
virtual ~G4VStatMFMacroCluster ()
 
G4bool operator== (const G4VStatMFMacroCluster &right) const
 
G4bool operator!= (const G4VStatMFMacroCluster &right) const
 
virtual G4double CalcMeanMultiplicity (const G4double FreeVol, const G4double mu, const G4double nu, const G4double T)=0
 
virtual G4double CalcZARatio (const G4double nu)=0
 
G4double GetMeanMultiplicity (void) const
 
virtual G4double CalcEnergy (const G4double T)=0
 
virtual G4double CalcEntropy (const G4double T, const G4double FreeVol)=0
 
G4double GetInvLevelDensity (void) const
 
void SetZARatio (const G4double value)
 
G4double GetZARatio (void) const
 
void SetSize (const G4double value)
 
G4double GetSize (void) const
 

Additional Inherited Members

- Protected Attributes inherited from G4VStatMFMacroCluster
G4int theA
 
G4double _InvLevelDensity
 
G4double _Entropy
 
G4double theZARatio
 
G4double _MeanMultiplicity
 
G4double _Energy
 

Detailed Description

Definition at line 36 of file G4StatMFMacroNucleon.hh.

Constructor & Destructor Documentation

◆ G4StatMFMacroNucleon()

G4StatMFMacroNucleon::G4StatMFMacroNucleon ( )

Definition at line 37 of file G4StatMFMacroNucleon.cc.

38 : G4VStatMFMacroCluster(1), _NeutronMeanMultiplicity(0.0),
39 _ProtonMeanMultiplicity(0.0)
40{}

◆ ~G4StatMFMacroNucleon()

G4StatMFMacroNucleon::~G4StatMFMacroNucleon ( )

Definition at line 42 of file G4StatMFMacroNucleon.cc.

43{}

Member Function Documentation

◆ CalcEnergy()

G4double G4StatMFMacroNucleon::CalcEnergy ( const G4double  T)
virtual

◆ CalcEntropy()

G4double G4StatMFMacroNucleon::CalcEntropy ( const G4double  T,
const G4double  FreeVol 
)
virtual

Implements G4VStatMFMacroCluster.

Definition at line 83 of file G4StatMFMacroNucleon.cc.

84{
85 G4double ThermalWaveLenght = 16.15*fermi/std::sqrt(T);
86 G4double lambda3 = ThermalWaveLenght*ThermalWaveLenght*ThermalWaveLenght;
87
88 G4double NeutronEntropy = 0.0;
89 if (_NeutronMeanMultiplicity > 0.0)
90 NeutronEntropy = _NeutronMeanMultiplicity*(2.5+G4Log(2*theA*FreeVol/
91 (lambda3*_NeutronMeanMultiplicity)));
92
93 G4double ProtonEntropy = 0.0;
94 if (_ProtonMeanMultiplicity > 0.0)
95 ProtonEntropy = _ProtonMeanMultiplicity*(2.5+G4Log(2*theA*FreeVol/
96 (lambda3*_ProtonMeanMultiplicity)));
97
98 return NeutronEntropy+ProtonEntropy;
99}
G4double G4Log(G4double x)
Definition: G4Log.hh:227
double G4double
Definition: G4Types.hh:83

◆ CalcMeanMultiplicity()

G4double G4StatMFMacroNucleon::CalcMeanMultiplicity ( const G4double  FreeVol,
const G4double  mu,
const G4double  nu,
const G4double  T 
)
virtual

Implements G4VStatMFMacroCluster.

Definition at line 46 of file G4StatMFMacroNucleon.cc.

49{
50 if (T <= 0.0) {
51 throw G4HadronicException(__FILE__, __LINE__,
52 "G4StatMFMacroNucleon::CalcMeanMultiplicity: Temperature less or equal 0");
53 }
54
55 G4double ThermalWaveLenght = 16.15*fermi/std::sqrt(T);
56
57 G4double lambda3 = ThermalWaveLenght*ThermalWaveLenght*ThermalWaveLenght;
58
59 static const G4double degeneracy = 2.0;
60
61 G4double exponent_proton = (mu + nu - G4StatMFParameters::GetCoulomb())/T;
62 G4double exponent_neutron = mu/T;
63
64 if (exponent_neutron > 300.0) exponent_neutron = 300.0;
65 if (exponent_proton > 300.0) exponent_proton = 300.0;
66
67 _NeutronMeanMultiplicity =
68 (degeneracy*FreeVol/lambda3)*G4Exp(exponent_neutron);
69
70 _ProtonMeanMultiplicity =
71 (degeneracy*FreeVol/lambda3)*G4Exp(exponent_proton);
72
73 return _MeanMultiplicity = _NeutronMeanMultiplicity + _ProtonMeanMultiplicity;
74}
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:180

◆ CalcZARatio()

G4double G4StatMFMacroNucleon::CalcZARatio ( const  G4double)
inlinevirtual

Implements G4VStatMFMacroCluster.

Definition at line 47 of file G4StatMFMacroNucleon.hh.

48 {
49 theZARatio = 0.0;
50 if (_ProtonMeanMultiplicity+_NeutronMeanMultiplicity > 0.0) {
51 theZARatio = _ProtonMeanMultiplicity/
52 (_ProtonMeanMultiplicity+_NeutronMeanMultiplicity);
53 }
54 return theZARatio;
55 }

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