40 throw G4HadronicException(__FILE__, __LINE__,
"G4StatMFMacroChemicalPotential::operator= meant to not be accessable");
46 throw G4HadronicException(__FILE__, __LINE__,
"G4StatMFMacroChemicalPotential::operator== meant to not be accessable");
53 throw G4HadronicException(__FILE__, __LINE__,
"G4StatMFMacroChemicalPotential::operator!= meant to not be accessable");
74 if (fChemPa*fChemPb > 0.0) {
78 ChemPb -= 1.5*std::abs(ChemPb-ChemPa);
81 }
while (fChemPb < 0.0);
84 ChemPb += 1.5*std::abs(ChemPb-ChemPa);
87 }
while (fChemPb > 0.0);
95 if (!theSolver->
Brent(*
this)){
96 G4cout <<
"G4StatMFMacroChemicalPotential:"<<
" ChemPa="<<ChemPa
97 <<
" ChemPb="<<ChemPb<<
G4endl;
98 G4cout <<
"G4StatMFMacroChemicalPotential:"<<
" fChemPa="<<fChemPa
99 <<
" fChemPb="<<fChemPb<<
G4endl;
100 throw G4HadronicException(__FILE__, __LINE__,
"G4StatMFMacroChemicalPotential::CalcChemicalPotentialNu: I couldn't find the root.");
111 std::vector<G4VStatMFMacroCluster*>::iterator i;
114 (*i)->CalcZARatio(nu);
126 MeanZ += (n++) * (*i)->GetZARatio() * (*i)->GetMeanMultiplicity();
G4double CalcChemicalPotentialMu(void)
G4double _MeanMultiplicity
static G4double GetCoulomb()
G4double CalcChemicalPotentialNu(void)
G4double _ChemPotentialNu
static G4Pow * GetInstance()
G4double GetRoot(void) const
G4double GetMeanMultiplicity(void) const
void SetIntervalLimits(const G4double Limit1, const G4double Limit2)
G4double _ChemPotentialMu
G4double CalcMeanZ(const G4double nu)
G4bool operator!=(const G4StatMFMacroChemicalPotential &right) const
G4double operator()(const G4double nu)
G4double _MeanTemperature
G4GLOB_DLL std::ostream G4cout
G4bool operator==(const G4StatMFMacroChemicalPotential &right) const
G4StatMFMacroChemicalPotential & operator=(const G4StatMFMacroChemicalPotential &right)
void CalcChemicalPotentialMu(const G4double nu)
G4bool Brent(Function &theFunction)
std::vector< G4VStatMFMacroCluster * > * _theClusters
G4double Z23(G4int Z) const
static G4double GetGamma0()