#include <G4StatMFMacroChemicalPotential.hh>
◆ G4StatMFMacroChemicalPotential()
Definition at line 48 of file G4StatMFMacroChemicalPotential.hh.
51 :
52 theA(anA),
53 theZ(aZ),
54 _Kappa(kappa),
55 _MeanMultiplicity(0.0),
56 _MeanTemperature(temp),
57 _ChemPotentialMu(0.0),
58 _ChemPotentialNu(0.0),
59 _theClusters(ClusterVector)
60 {};
◆ ~G4StatMFMacroChemicalPotential()
G4StatMFMacroChemicalPotential::~G4StatMFMacroChemicalPotential |
( |
| ) |
|
|
inline |
◆ CalcChemicalPotentialNu()
G4double G4StatMFMacroChemicalPotential::CalcChemicalPotentialNu |
( |
void |
| ) |
|
Definition at line 59 of file G4StatMFMacroChemicalPotential.cc.
61{
64
65
68
69
71 G4double ChemPb = 0.5*_ChemPotentialNu;
72
75
76 if (fChemPa*fChemPb > 0.0) {
77
78 if (fChemPa < 0.0) {
79 do {
80 ChemPb -= 1.5*std::abs(ChemPb-ChemPa);
82 } while (fChemPb < 0.0);
83 } else {
84 do {
85 ChemPb += 1.5*std::abs(ChemPb-ChemPa);
87 } while (fChemPb > 0.0);
88 }
89 }
90
94
95 if (!theSolver->
Brent(*
this)){
96 G4cerr <<
"G4StatMFMacroChemicalPotential:"<<
" ChemPa="<<ChemPa<<
" ChemPb="<<ChemPb<<
G4endl;
97 G4cerr <<
"G4StatMFMacroChemicalPotential:"<<
" fChemPa="<<fChemPa<<
" fChemPb="<<fChemPb<<
G4endl;
98 throw G4HadronicException(__FILE__, __LINE__,
"G4StatMFMacroChemicalPotential::CalcChemicalPotentialNu: I couldn't find the root.");
99 }
100 _ChemPotentialNu = theSolver->
GetRoot();
101 delete theSolver;
102 return _ChemPotentialNu;
103}
G4DLLIMPORT std::ostream G4cerr
G4bool Brent(Function &theFunction)
void SetIntervalLimits(const G4double Limit1, const G4double Limit2)
G4double GetRoot(void) const
G4double operator()(const G4double nu)
static G4double GetGamma0()
static G4double GetKappaCoulomb()
◆ GetChemicalPotentialMu()
G4double G4StatMFMacroChemicalPotential::GetChemicalPotentialMu |
( |
void |
| ) |
const |
|
inline |
◆ GetChemicalPotentialNu()
G4double G4StatMFMacroChemicalPotential::GetChemicalPotentialNu |
( |
void |
| ) |
const |
|
inline |
◆ GetMeanMultiplicity()
G4double G4StatMFMacroChemicalPotential::GetMeanMultiplicity |
( |
void |
| ) |
const |
|
inline |
◆ operator()()
The documentation for this class was generated from the following files: