Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4StatMFMacroMultiplicity.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) additional checks in
33// solver of equation for the chemical potential
34//
35// 13.08.2025 V.Ivanchenko rewrite
36
39#include "G4StatMFParameters.hh"
40#include "G4Pow.hh"
41
46
51
53 const G4double kappa,
54 const G4double temp,
55 const G4double nu,
56 std::vector<G4VStatMFMacroCluster*>* v)
57{
58 A = anA;
59 theA = anA;
60 fKappa = kappa;
61 fMeanTemperature = temp;
62 fChemPotentialNu = nu;
63 fClusters = v;
64}
65
67 // Calculate Chemical potential \mu
68 // For that is necesary to calculate mean multiplicities
69{
70 G4Pow* g4calc = G4Pow::GetInstance();
72
73 // starting value for chemical potential \mu
74 // it is the derivative of F(T,V)-\nu*Z w.r.t. Af in Af=5
75 G4double ZA5 = (*fClusters)[4]->GetZARatio();
76 G4double ILD5 = (*fClusters)[4]->GetInvLevelDensity();
77 fChemPotentialMu = -G4StatMFParameters::GetE0()-
78 fMeanTemperature*fMeanTemperature/ILD5 -
79 fChemPotentialNu*ZA5 +
80 G4StatMFParameters::GetGamma0()*(1.0-2.0*ZA5)*(1.0-2.0*ZA5) +
81 (2.0/3.0)*G4StatMFParameters::Beta(fMeanTemperature)/g4calc->Z13(5) +
82 (5.0/3.0)*CP*ZA5*ZA5*g4calc->Z23(5) -
83 1.5*fMeanTemperature/5.0;
84
85 G4double ChemPa = fChemPotentialMu;
86 if (ChemPa > 10*fMeanTemperature) { ChemPa = 10*fMeanTemperature; }
87 G4double ChemPb = ChemPa - 0.5*std::abs(ChemPa);
88 fSolver->SetIntervalLimits(ChemPa, ChemPb);
89 fSolver->FindRoot(fChemPotentialMu);
90 return fChemPotentialMu;
91}
92
93G4double G4StatMFMacroMultiplicity::CalcMeanA(const G4double mu)
94{
96 G4double V0 = (4.0/3.0)*pi*theA*r0*r0*r0;
97
98 G4double MeanA = 0.0;
99
100 fMeanMultiplicity = 0.0;
101
102 G4int n = 1;
103 G4int nn = (G4int)fClusters->size();
104 nn = std::min(nn, A);
105 for (G4int i=0; i<nn; ++i) {
106 G4double multip =
107 (*fClusters)[i]->CalcMeanMultiplicity(V0*fKappa,mu,fChemPotentialNu,
108 fMeanTemperature);
109 MeanA += multip*(++n);
110 fMeanMultiplicity += multip;
111 }
112
113 return MeanA;
114}
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
const G4double A[17]
Definition G4Pow.hh:49
static G4Pow * GetInstance()
Definition G4Pow.cc:41
G4double Z13(G4int Z) const
Definition G4Pow.hh:123
G4double Z23(G4int Z) const
Definition G4Pow.hh:125
void Initialise(const G4int anA, const G4double kappa, const G4double temp, const G4double nu, std::vector< G4VStatMFMacroCluster * > *cVector)
static G4double GetE0()
static G4double GetGamma0()
static G4double Beta(G4double T)
static G4double GetCoulomb()
static G4double Getr0()