Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4StatMFMicroCanonical.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// Modification: 13.08.2025 V.Ivanchenko rewrite
30
33#include "G4SystemOfUnits.hh"
35#include "G4Pow.hh"
36
37namespace
38{
39 constexpr G4int fMaxMultiplicity = 4;
40 constexpr G4double t1 = 1*CLHEP::MeV;
41 constexpr G4double t2 = 50*CLHEP::MeV;
42}
43
44// constructor
46{
47 fSolver = new G4FunctionSolver<G4StatMFMicroCanonical>(this, 100, 5.e-4);
48 fSolver->SetIntervalLimits(t1, t2);
49 fPartitionManagerVector.reserve(fMaxMultiplicity);
50 g4calc = G4Pow::GetInstance();
51}
52
53// destructor
55{
56 delete fSolver;
57 if (!fPartitionManagerVector.empty()) {
58 for (auto const & p : fPartitionManagerVector) { delete p; }
59 }
60}
61
63{
64 fPartitionManagerVector.clear();
65 // Excitation Energy
66 fExEnergy = theFragment.GetExcitationEnergy();
67
68 A = theFragment.GetA_asInt();
69 Z = theFragment.GetZ_asInt();
70 A13 = g4calc->Z13(A);
71
72 fInvLevelDensity = G4StatMFParameters::GetEpsilon0()*(1.0 + 3.0/G4double(A-1));
73
74 fSymmetryTerm = G4StatMFParameters::GetGamma0()*(A - 2*Z)*(A - 2*Z)/(G4double)A;
75
76 fCoulombTerm = elm_coupling*0.6*Z*Z/(G4StatMFParameters::Getr0()*A13);
77
78 // Configuration temperature
79 G4double TConf = std::sqrt(8.0*fExEnergy/(G4double)A);
80
81 // Free internal energy at Temperature T = 0 (SurfaceTerm at T = 0)
82 pFreeInternalE0 = -G4StatMFParameters::GetE0()*A + fSymmetryTerm
83 + G4StatMFParameters::GetBeta0()*A13*A13 + fCoulombTerm;
84
85 //G4cout << "Tconf=" << TConf << " freeE=" << pFreeInternalE0 << G4endl;
86
87 // Mean breakup multiplicity
89
90 // Mean channel temperature
91 pMeanTemperature = 0.0;
92
93 // Mean channel entropy
94 pMeanEntropy = 0.0;
95
96 // Calculate entropy of compound nucleus
97 G4double SCompoundNucleus = CalcEntropyOfCompoundNucleus(TConf);
98
99 // Statistical weight of compound nucleus
100 fWCompoundNucleus = 1.0;
101
102 // Statistical weight
103 G4double W = fWCompoundNucleus;
104 // Maximal fragment multiplicity allowed in direct simulation
105
106 for (G4int im = 2; im <= fMaxMultiplicity; ++im) {
107 auto ptr = new G4StatMFMicroManager(theFragment, im, pFreeInternalE0, SCompoundNucleus);
108 fPartitionManagerVector.push_back(ptr);
109 W += ptr->GetProbability();
110 }
111
112 // Normalization of statistical weights
113 for (auto & ptr : fPartitionManagerVector) {
114 ptr->Normalize(W);
115 pMeanMultiplicity += ptr->GetMeanMultiplicity();
116 pMeanTemperature += ptr->GetMeanTemperature();
117 pMeanEntropy += ptr->GetMeanEntropy();
118 }
119
120 fWCompoundNucleus /= W;
121
122 pMeanMultiplicity += fWCompoundNucleus;
123 pMeanTemperature += TConf * fWCompoundNucleus;
124 pMeanEntropy += SCompoundNucleus * fWCompoundNucleus;
125}
126
127G4double G4StatMFMicroCanonical::CalcFreeInternalEnergy(G4double T)
128{
129 G4double VolumeTerm = (-G4StatMFParameters::GetE0()+T*T/fInvLevelDensity)*A;
131 G4double sum = VolumeTerm + fSymmetryTerm + SurfaceTerm + fCoulombTerm;
132
133 // G4cout << "G4StatMFMicroCanonical::CalcFreeInternalEnergy " << sum
134 // << " " << VolumeTerm << " " << fSymmetryTerm << " " << SurfaceTerm
135 // << " " << fCoulombTerm << G4endl;
136 return sum;
137}
138
139G4double G4StatMFMicroCanonical::CalcEntropyOfCompoundNucleus(G4double& TConf)
140 // Calculates Temperature and Entropy of compound nucleus
141{
142 G4double T = std::max(std::min(std::max(TConf,std::sqrt(fExEnergy/(A*0.125))), t2), t1);\
143 fSolver->FindRoot(T);
144 TConf = T;
145 // G4cout << "=== FindRoot T= " << T << G4endl;
146 auto S = (2*A)*T/fInvLevelDensity - G4StatMFParameters::DBetaDT(T)*A13*A13;
147 return S;
148}
149
151{
152 // Choice of fragment atomic numbers and charges
153 // We choose a multiplicity (1,2,3,...) and then a channel
154 G4int AA = theFragment.GetA_asInt();
155 G4int ZZ = theFragment.GetZ_asInt();
156
157 if (G4UniformRand() < fWCompoundNucleus) {
158
159 G4StatMFChannel * aChannel = new G4StatMFChannel;
160 aChannel->CreateFragment(AA, ZZ);
161 return aChannel;
162
163 } else {
164 G4double rand = G4UniformRand();
165 G4double AccumWeight = fWCompoundNucleus;
166 for (auto & ptr : fPartitionManagerVector) {
167 AccumWeight += ptr->GetProbability();
168 if (rand <= AccumWeight) {
169 return ptr->ChooseChannel(A, Z, pMeanTemperature);
170 }
171 }
172 }
173 return nullptr;
174}
G4double S(G4double temp)
#define A13
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
const G4double A[17]
#define G4UniformRand()
Definition Randomize.hh:52
G4double GetExcitationEnergy() const
G4int GetZ_asInt() const
G4int GetA_asInt() const
static G4Pow * GetInstance()
Definition G4Pow.cc:41
void CreateFragment(G4int A, G4int Z)
void Initialise(const G4Fragment &theFragment) override
G4StatMFChannel * ChooseAandZ(const G4Fragment &theFragment) override
static G4double DBetaDT(G4double T)
static G4double GetBeta0()
static G4double GetE0()
static G4double GetGamma0()
static G4double Beta(G4double T)
static G4double Getr0()
static G4double GetEpsilon0()
#define W
Definition crc32.c:85