Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4StatMFMacroNucleon Class Reference

#include <G4StatMFMacroNucleon.hh>

Inheritance diagram for G4StatMFMacroNucleon:
Collaboration 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
 
G4double GetMeanMultiplicity (void) const
 
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 37 of file G4StatMFMacroNucleon.hh.

Constructor & Destructor Documentation

G4StatMFMacroNucleon::G4StatMFMacroNucleon ( )

Definition at line 38 of file G4StatMFMacroNucleon.cc.

39  : G4VStatMFMacroCluster(1), _NeutronMeanMultiplicity(0.0),
40  _ProtonMeanMultiplicity(0.0)
41 {}
G4StatMFMacroNucleon::~G4StatMFMacroNucleon ( )

Definition at line 43 of file G4StatMFMacroNucleon.cc.

44 {}

Member Function Documentation

G4double G4StatMFMacroNucleon::CalcEnergy ( const G4double  T)
virtual

Implements G4VStatMFMacroCluster.

Definition at line 78 of file G4StatMFMacroNucleon.cc.

Here is the call graph for this function:

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

Implements G4VStatMFMacroCluster.

Definition at line 84 of file G4StatMFMacroNucleon.cc.

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

Here is the call graph for this function:

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

Implements G4VStatMFMacroCluster.

Definition at line 47 of file G4StatMFMacroNucleon.cc.

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

Here is the call graph for this function:

G4double G4StatMFMacroNucleon::CalcZARatio ( const G4double  )
inlinevirtual

Implements G4VStatMFMacroCluster.

Definition at line 48 of file G4StatMFMacroNucleon.hh.

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

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