source: trunk/source/processes/hadronic/models/de_excitation/multifragmentation/src/G4StatMFMacroMultiNucleon.cc @ 846

Last change on this file since 846 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 6.2 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: G4StatMFMacroMultiNucleon.cc,v 1.5 2006/06/29 20:25:06 gunter Exp $
28// GEANT4 tag $Name:  $
29//
30// Hadronic Process: Nuclear De-excitations
31// by V. Lara
32
33#include "G4StatMFMacroMultiNucleon.hh"
34
35// Default constructor
36G4StatMFMacroMultiNucleon::
37G4StatMFMacroMultiNucleon() :
38    G4VStatMFMacroCluster(0)  // Beacuse the def. constr. of base class is private
39{
40    throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroMultiNucleon::default_constructor meant to not be accessable");
41}
42
43// Copy constructor
44G4StatMFMacroMultiNucleon::
45G4StatMFMacroMultiNucleon(const G4StatMFMacroMultiNucleon & ) :
46    G4VStatMFMacroCluster(0)  // Beacuse the def. constr. of base class is private
47{
48    throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroMultiNucleon::copy_constructor meant to not be accessable");
49}
50
51// Operators
52
53G4StatMFMacroMultiNucleon & G4StatMFMacroMultiNucleon::
54operator=(const G4StatMFMacroMultiNucleon & ) 
55{
56    throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroMultiNucleon::operator= meant to not be accessable");
57    return *this;
58}
59
60
61G4bool G4StatMFMacroMultiNucleon::operator==(const G4StatMFMacroMultiNucleon & ) const
62{
63    throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroMultiNucleon::operator== meant to not be accessable");
64    return false;
65}
66 
67
68G4bool G4StatMFMacroMultiNucleon::operator!=(const G4StatMFMacroMultiNucleon & ) const
69{
70    throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMacroMultiNucleon::operator!= meant to not be accessable");
71    return true;
72}
73
74
75
76G4double G4StatMFMacroMultiNucleon::CalcMeanMultiplicity(const G4double FreeVol, const G4double mu,
77                                                         const G4double nu, const G4double T)
78{
79    const G4double ThermalWaveLenght = 16.15*fermi/std::sqrt(T);
80       
81    const G4double lambda3 = ThermalWaveLenght*ThermalWaveLenght*ThermalWaveLenght;
82       
83    const G4double A23 = std::pow(static_cast<G4double>(theA),2./3.);
84       
85    const G4double Coulomb = (3./5.)*(elm_coupling/G4StatMFParameters::Getr0())*
86        (1.0 - 1.0/std::pow(1.0+G4StatMFParameters::GetKappaCoulomb(),1./3.));
87       
88    G4double exponent = (mu + nu*theZARatio+ G4StatMFParameters::GetE0() + T*T/_InvLevelDensity
89                         - G4StatMFParameters::GetGamma0()*(1.0 - 2.0*theZARatio)*
90                         (1.0 - 2.0*theZARatio))*theA
91        - G4StatMFParameters::Beta(T)*A23 - Coulomb*theZARatio*theZARatio*A23*theA;
92       
93    exponent /= T;
94       
95    if (exponent > 30.0) exponent = 30.0;
96       
97    _MeanMultiplicity = std::max((FreeVol * static_cast<G4double>(theA) * 
98                                    std::sqrt(static_cast<G4double>(theA))/lambda3) *
99                                   std::exp(exponent),1.0e-30);
100    return _MeanMultiplicity;   
101}
102
103
104G4double G4StatMFMacroMultiNucleon::CalcZARatio(const G4double nu)
105{
106    const G4double Coulomb = (3./5.)*(elm_coupling/G4StatMFParameters::Getr0())*
107        (1.0 - 1.0/std::pow(1.0+G4StatMFParameters::GetKappaCoulomb(),1./3.));
108
109    G4double den = 8.0*G4StatMFParameters::GetGamma0()+2.0*Coulomb*std::pow(static_cast<G4double>(theA),2./3.);
110    G4double num = 4.0*G4StatMFParameters::GetGamma0()+nu;
111       
112    return theZARatio = num/den;
113       
114
115}
116
117
118
119G4double G4StatMFMacroMultiNucleon::CalcEnergy(const G4double T)
120{
121    const G4double Coulomb = (3./5.)*(elm_coupling/G4StatMFParameters::Getr0())*
122        (1.0 - 1.0/std::pow(1.0+G4StatMFParameters::GetKappaCoulomb(),1./3.));
123       
124    const G4double A23 = std::pow(static_cast<G4double>(theA),2./3.);
125
126    // Volume term
127    G4double EVol = static_cast<G4double>(theA) * (T*T/_InvLevelDensity - G4StatMFParameters::GetE0());
128       
129    // Symmetry term
130//      G4double ESym = static_cast<G4double>(theA) * G4StatMFParameters::GetGamma0() *(1. - 2.* theZARatio * theZARatio);
131       
132    // Surface term
133    G4double ESurf = A23*(G4StatMFParameters::Beta(T) - T*G4StatMFParameters::DBetaDT(T));
134 
135    // Coulomb term
136    G4double ECoul = Coulomb*A23*static_cast<G4double>(theA)*theZARatio*theZARatio;
137       
138    // Translational term
139    G4double ETrans = (3./2.)*T;
140       
141       
142    return _Energy = EVol + ESurf + ECoul + ETrans; // + ESym;
143}
144
145
146G4double G4StatMFMacroMultiNucleon::CalcEntropy(const G4double T, const G4double FreeVol)
147{
148    const G4double ThermalWaveLenght = 16.15*fermi/std::sqrt(T);
149    const G4double lambda3 = ThermalWaveLenght*ThermalWaveLenght*ThermalWaveLenght;
150
151    G4double Entropy = 0.0;
152    if (_MeanMultiplicity > 0.0) {
153        // Volume term
154        G4double SV = 2.0*static_cast<G4double>(theA)*T/_InvLevelDensity;
155               
156        // Surface term
157        G4double SS = -G4StatMFParameters::DBetaDT(T)*std::pow(static_cast<G4double>(theA),2./3.);
158               
159        // Translational term
160        G4double ST = (5./2.)+std::log(FreeVol * std::sqrt(static_cast<G4double>(theA)) * 
161                                  static_cast<G4double>(theA)/(lambda3*_MeanMultiplicity));
162               
163               
164        Entropy = _MeanMultiplicity*(SV + SS + ST);
165    }
166                                                               
167                                                               
168    return Entropy;
169}
Note: See TracBrowser for help on using the repository browser.