source: trunk/source/processes/hadronic/cross_sections/src/G4NeutronInelasticCrossSection.cc@ 1201

Last change on this file since 1201 was 819, checked in by garnier, 17 years ago

import all except CVS

File size: 3.8 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// By JPW, working, but to be cleaned up. @@@
27// 22 Dec 2006 - DHW added isotope dependence
28//
29
30#include "G4NeutronInelasticCrossSection.hh"
31#include "globals.hh"
32
33G4double G4NeutronInelasticCrossSection::
34GetCrossSection(const G4DynamicParticle* aPart,
35 const G4Element* anEle, G4double /*aTemperature*/)
36{
37 G4int nIso = anEle->GetNumberOfIsotopes();
38 G4double KE = aPart->GetKineticEnergy();
39 G4double cross_section = 0;
40
41 if (nIso) {
42 G4double psig;
43 G4IsotopeVector* isoVector = anEle->GetIsotopeVector();
44 G4double* abundVector = anEle->GetRelativeAbundanceVector();
45 G4double ZZ;
46 G4double AA;
47
48 for (G4int i = 0; i < nIso; i++) {
49 ZZ = G4double( (*isoVector)[i]->GetZ() );
50 AA = G4double( (*isoVector)[i]->GetN() );
51 psig = GetCrossSection(KE, AA, ZZ);
52 cross_section += psig*abundVector[i];
53 }
54
55 } else {
56 cross_section = GetCrossSection(KE, anEle->GetN(), anEle->GetZ());
57 }
58
59 return cross_section;
60}
61
62
63G4double G4NeutronInelasticCrossSection::
64GetCrossSection(G4double anEnergy, G4double atomicNumber, G4double nOfProtons)
65{
66 G4double kineticEnergy = std::log10(DBL_MIN/MeV);
67 if (anEnergy > DBL_MIN/MeV) kineticEnergy = std::log10(anEnergy/MeV);
68 G4double nOfNeutrons = atomicNumber-nOfProtons;
69 const G4double p1=1.3773;
70 const G4double p2=1.+10./atomicNumber-0.0006*atomicNumber;
71 const G4double p3=0.6+13./atomicNumber-0.0005*atomicNumber;
72 const G4double p4=7.2449-0.018242*atomicNumber;
73 const G4double p5=1.64-1.8/atomicNumber-0.0005*atomicNumber;
74 const G4double p6=1.+200./atomicNumber+0.02*atomicNumber;
75 const G4double p7=(atomicNumber-70.)*(atomicNumber-200.)/11000.;
76
77 G4double logN = 1.0;
78 if (nOfNeutrons > 1.5) logN = std::log(nOfNeutrons);
79 G4double part1 = pi*(p1*p1)*logN;
80 G4double part2 = 1.+ std::pow(atomicNumber, 1./3.)
81 - p2*(1.-1./std::pow(atomicNumber, 1./3.));
82
83 G4double firstexp = -p4*(kineticEnergy-p5);
84 G4double first=1.+std::exp(firstexp);
85 G4double corr = 1.+p3*(1.-1./first);
86
87 G4double secondexp = -p6*(kineticEnergy-p7);
88 G4double second=1.+std::exp(secondexp);
89 G4double corr2 =1./second;
90
91 G4double xsec = corr*corr2*part1*part2*10.*millibarn;
92 return xsec;
93}
Note: See TracBrowser for help on using the repository browser.