Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4StatMFMacroTemperature.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// Hadronic Process: Nuclear De-excitations
27// by V. Lara
28//
29// Modified:
30// 25.07.08 I.Pshenichnov (in collaboration with Alexander Botvina and Igor
31// Mishustin (FIAS, Frankfurt, INR, Moscow and Kurchatov Institute,
32// Moscow, pshenich@fias.uni-frankfurt.de) make algorithm closer to
33// original MF model
34// 16.04.10 V.Ivanchenko improved logic of solving equation for temperature
35// to protect code from rare unwanted exception; moved constructor
36// and destructor to source
37// 28.10.10 V.Ivanchenko defined members in constructor and cleaned up
38// 13.08.2025 V.Ivanchenko rewrite
39
41#include "G4StatMFParameters.hh"
44#include "G4SystemOfUnits.hh"
45#include "G4Pow.hh"
46
47namespace {
48 const G4double t1 = 1*CLHEP::MeV;
49 const G4double t2 = 50*CLHEP::MeV;
50}
51
53{
54 fSolver = new G4FunctionSolver<G4StatMFMacroTemperature>(this, 100, 5.e-4);
55 fSolver->SetIntervalLimits(t1, t2);
56 theChemPot = new G4StatMFMacroChemicalPotential();
57}
58
60{
61 delete fSolver;
62 delete theChemPot;
63}
64
66 const G4double ExEnergy,
67 const G4double FreeE0,
68 const G4double kappa,
69 std::vector<G4VStatMFMacroCluster*>* v)
70{
71 theA = anA;
72 theZ = aZ;
73 fExEnergy = ExEnergy;
74 fFreeInternalE0 = FreeE0;
75 fKappa = kappa;
76 fClusters = v;
77}
78
80{
81 fMeanTemperature = std::max(std::min(std::sqrt(fExEnergy/(theA*0.12)), t2), t1);
82 fSolver->FindRoot(fMeanTemperature);
83 return fMeanTemperature;
84}
85
86G4double G4StatMFMacroTemperature::FragsExcitEnergy(const G4double T)
87// Calculates excitation energy per nucleon and summed fragment
88// multiplicity and entropy
89{
90 // Model Parameters
91 G4Pow* g4calc = G4Pow::GetInstance();
92 G4double R0 = G4StatMFParameters::Getr0()*g4calc->Z13(theA);
93 G4double R = R0*g4calc->A13(1.0 + G4StatMFParameters::GetKappaCoulomb());
94 G4double FreeVol = fKappa*(4.*CLHEP::pi/3.)*R0*R0*R0;
95
96 // Calculate Chemical potentials
97 CalcChemicalPotentialNu(T);
98
99 // Average total fragment energy and mean entropy
100 G4double AverageEnergy = 0.0;
101 fMeanEntropy = 0.0;
102 for (auto const ptr : *fClusters) {
103 fMeanEntropy += ptr->CalcEntropy(T, FreeVol);
104 AverageEnergy += ptr->GetMeanMultiplicity() * ptr->CalcEnergy(T);
105 }
106
107 // Add Coulomb energy
108 AverageEnergy += 0.6*CLHEP::elm_coupling*(theZ*theZ)/R;
109
110 // Excitation energy per nucleon
111 return AverageEnergy - fFreeInternalE0;
112}
113
114void G4StatMFMacroTemperature::CalcChemicalPotentialNu(const G4double T)
115// Calculates the chemical potential \nu
116{
117 theChemPot->Initialise(theA, theZ, fKappa, T, fClusters);
118
119 fChemPotentialNu = theChemPot->CalcChemicalPotentialNu();
120 fChemPotentialMu = theChemPot->GetChemicalPotentialMu();
121 fMeanMultiplicity = theChemPot->GetMeanMultiplicity();
122}
123
124
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
Definition G4Pow.hh:49
static G4Pow * GetInstance()
Definition G4Pow.cc:41
G4double A13(G4double A) const
Definition G4Pow.cc:116
G4double Z13(G4int Z) const
Definition G4Pow.hh:123
void Initialise(const G4int anA, const G4int aZ, const G4double ExEnergy, const G4double FreeE0, const G4double kappa, std::vector< G4VStatMFMacroCluster * > *ClusterVector)
static G4double Getr0()
static G4double GetKappaCoulomb()