source: trunk/source/processes/hadronic/models/de_excitation/multifragmentation/src/G4StatMFMacroNucleon.cc@ 1199

Last change on this file since 1199 was 1196, checked in by garnier, 16 years ago

update CVS release candidate geant4.9.3.01

File size: 4.6 KB
Line 
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//
27// $Id: G4StatMFMacroNucleon.cc,v 1.6 2008/07/25 11:20:47 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-03-cand-01 $
29//
30// Hadronic Process: Nuclear De-excitations
31// by V. Lara
32
33#include "G4StatMFMacroNucleon.hh"
34
35// Operators
36
37G4StatMFMacroNucleon & G4StatMFMacroNucleon::
38operator=(const G4StatMFMacroNucleon & )
39{
40 throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroNucleon::operator= meant to not be accessable");
41 return *this;
42}
43
44
45G4bool G4StatMFMacroNucleon::operator==(const G4StatMFMacroNucleon & ) const
46{
47 throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroNucleon::operator== meant to not be accessable");
48 return false;
49}
50
51
52G4bool G4StatMFMacroNucleon::operator!=(const G4StatMFMacroNucleon & ) const
53{
54 throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroNucleon::operator!= meant to not be accessable");
55 return true;
56}
57
58G4double G4StatMFMacroNucleon::CalcMeanMultiplicity(const G4double FreeVol, const G4double mu,
59 const G4double nu, const G4double T)
60{
61 if (T <= 0.0) throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroNucleon::CalcMeanMultiplicity: Temperature less or equal 0");
62 const G4double ThermalWaveLenght = 16.15*fermi/std::sqrt(T);
63
64 const G4double lambda3 = ThermalWaveLenght*ThermalWaveLenght*ThermalWaveLenght;
65
66 const G4double degeneracy = 2.0;
67
68 const G4double Coulomb = (3./5.)*(elm_coupling/G4StatMFParameters::Getr0())*
69 (1.0 - 1.0/std::pow(1.0+G4StatMFParameters::GetKappaCoulomb(),1./3.));
70
71 G4double exponent_proton = (mu+nu-Coulomb)/T;
72 G4double exponent_neutron = mu/T;
73
74 if (exponent_neutron > 700.0) exponent_neutron = 700.0;
75 if (exponent_proton > 700.0) exponent_proton = 700.0;
76
77 _NeutronMeanMultiplicity = (degeneracy*FreeVol/lambda3)*std::exp(exponent_neutron);
78
79 _ProtonMeanMultiplicity = (degeneracy*FreeVol/lambda3)*std::exp(exponent_proton);
80
81
82
83 return _MeanMultiplicity = _NeutronMeanMultiplicity + _ProtonMeanMultiplicity;
84
85}
86
87
88G4double G4StatMFMacroNucleon::CalcEnergy(const G4double T)
89{
90 const G4double Coulomb = (3./5.)*(elm_coupling/G4StatMFParameters::Getr0())*
91 (1.0 - 1.0/std::pow(1.0+G4StatMFParameters::GetKappaCoulomb(),1./3.));
92
93 return _Energy = Coulomb * theZARatio * theZARatio + (3./2.) * T;
94
95}
96
97G4double G4StatMFMacroNucleon::CalcEntropy(const G4double T, const G4double FreeVol)
98{
99 const G4double ThermalWaveLenght = 16.15*fermi/std::sqrt(T);
100 const G4double lambda3 = ThermalWaveLenght*ThermalWaveLenght*ThermalWaveLenght;
101
102 G4double NeutronEntropy = 0.0;
103 if (_NeutronMeanMultiplicity > 0.0)
104 NeutronEntropy = _NeutronMeanMultiplicity*(5./2.+
105 std::log(2.0*static_cast<G4double>(theA)*FreeVol/
106 (lambda3*_NeutronMeanMultiplicity)));
107
108
109 G4double ProtonEntropy = 0.0;
110 if (_ProtonMeanMultiplicity > 0.0)
111 ProtonEntropy = _ProtonMeanMultiplicity*(5./2.+
112 std::log(2.0*static_cast<G4double>(theA)*FreeVol/
113 (lambda3*_ProtonMeanMultiplicity)));
114
115
116 return NeutronEntropy+ProtonEntropy;
117}
118
Note: See TracBrowser for help on using the repository browser.