Geant4 9.6.0
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 38 of file G4StatMFMacroNucleon.hh.

Constructor & Destructor Documentation

◆ G4StatMFMacroNucleon()

G4StatMFMacroNucleon::G4StatMFMacroNucleon ( )
inline

Definition at line 43 of file G4StatMFMacroNucleon.hh.

43 :
44 G4VStatMFMacroCluster(1), _NeutronMeanMultiplicity(0.0),_ProtonMeanMultiplicity(0.0)
45 {};

◆ ~G4StatMFMacroNucleon()

G4StatMFMacroNucleon::~G4StatMFMacroNucleon ( )
inline

Definition at line 48 of file G4StatMFMacroNucleon.hh.

48{};

Member Function Documentation

◆ CalcEnergy()

G4double G4StatMFMacroNucleon::CalcEnergy ( const G4double  T)
virtual

Implements G4VStatMFMacroCluster.

Definition at line 89 of file G4StatMFMacroNucleon.cc.

90{
91 const G4double Coulomb = (3./5.)*(elm_coupling/G4StatMFParameters::Getr0())*
92 (1.0 - 1.0/std::pow(1.0+G4StatMFParameters::GetKappaCoulomb(),1./3.));
93
94 return _Energy = Coulomb * theZARatio * theZARatio + (3./2.) * T;
95
96}
double G4double
Definition: G4Types.hh:64
static G4double Getr0()
static G4double GetKappaCoulomb()

◆ CalcEntropy()

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

Implements G4VStatMFMacroCluster.

Definition at line 98 of file G4StatMFMacroNucleon.cc.

99{
100 const G4double ThermalWaveLenght = 16.15*fermi/std::sqrt(T);
101 const G4double lambda3 = ThermalWaveLenght*ThermalWaveLenght*ThermalWaveLenght;
102
103 G4double NeutronEntropy = 0.0;
104 if (_NeutronMeanMultiplicity > 0.0)
105 NeutronEntropy = _NeutronMeanMultiplicity*(5./2.+
106 std::log(2.0*static_cast<G4double>(theA)*FreeVol/
107 (lambda3*_NeutronMeanMultiplicity)));
108
109
110 G4double ProtonEntropy = 0.0;
111 if (_ProtonMeanMultiplicity > 0.0)
112 ProtonEntropy = _ProtonMeanMultiplicity*(5./2.+
113 std::log(2.0*static_cast<G4double>(theA)*FreeVol/
114 (lambda3*_ProtonMeanMultiplicity)));
115
116
117 return NeutronEntropy+ProtonEntropy;
118}

◆ CalcMeanMultiplicity()

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

Implements G4VStatMFMacroCluster.

Definition at line 59 of file G4StatMFMacroNucleon.cc.

61{
62 if (T <= 0.0) throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroNucleon::CalcMeanMultiplicity: Temperature less or equal 0");
63 const G4double ThermalWaveLenght = 16.15*fermi/std::sqrt(T);
64
65 const G4double lambda3 = ThermalWaveLenght*ThermalWaveLenght*ThermalWaveLenght;
66
67 const G4double degeneracy = 2.0;
68
69 const G4double Coulomb = (3./5.)*(elm_coupling/G4StatMFParameters::Getr0())*
70 (1.0 - 1.0/std::pow(1.0+G4StatMFParameters::GetKappaCoulomb(),1./3.));
71
72 G4double exponent_proton = (mu+nu-Coulomb)/T;
73 G4double exponent_neutron = mu/T;
74
75 if (exponent_neutron > 700.0) exponent_neutron = 700.0;
76 if (exponent_proton > 700.0) exponent_proton = 700.0;
77
78 _NeutronMeanMultiplicity = (degeneracy*FreeVol/lambda3)*std::exp(exponent_neutron);
79
80 _ProtonMeanMultiplicity = (degeneracy*FreeVol/lambda3)*std::exp(exponent_proton);
81
82
83
84 return _MeanMultiplicity = _NeutronMeanMultiplicity + _ProtonMeanMultiplicity;
85
86}

◆ CalcZARatio()

G4double G4StatMFMacroNucleon::CalcZARatio ( const  G4double)
inlinevirtual

Implements G4VStatMFMacroCluster.

Definition at line 66 of file G4StatMFMacroNucleon.hh.

67 { if (_ProtonMeanMultiplicity+_NeutronMeanMultiplicity > 0.0)
68 return theZARatio = _ProtonMeanMultiplicity/
69 (_ProtonMeanMultiplicity+_NeutronMeanMultiplicity);
70 else return 0.0; }

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