source: trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/src/G4PreCompoundNeutron.cc @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 7.5 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: G4PreCompoundNeutron.cc,v 1.4 2009/02/11 18:06:00 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-01 $
29//
30// -------------------------------------------------------------------
31//
32// GEANT4 Class file
33//
34//
35// File name:     G4PreCompoundNeutron
36//
37// Author:         V.Lara
38//
39// Modified: 
40// 21.08.2008 J. M. Quesada add choice of options 
41// 10.02.2009 J. M. Quesada set default opt3
42//
43
44#include "G4PreCompoundNeutron.hh"
45
46G4ReactionProduct * G4PreCompoundNeutron::GetReactionProduct() const
47{
48  G4ReactionProduct * theReactionProduct = 
49    new G4ReactionProduct(G4Neutron::NeutronDefinition());
50  theReactionProduct->SetMomentum(GetMomentum().vect());
51  theReactionProduct->SetTotalEnergy(GetMomentum().e());
52#ifdef PRECOMPOUND_TEST
53  theReactionProduct->SetCreatorModel("G4PrecompoundModel");
54#endif
55  return theReactionProduct;
56}
57
58G4double G4PreCompoundNeutron::GetRj(const G4int NumberParticles, const G4int NumberCharged)
59{
60  G4double rj = 0.0;
61  if(NumberParticles > 0) rj = static_cast<G4double>(NumberParticles - NumberCharged)/
62                            static_cast<G4double>(NumberParticles);
63  return rj;
64}
65
66////////////////////////////////////////////////////////////////////////////////////
67//J. M. Quesada (Dec 2007-June 2008): New inverse reaction cross sections
68//OPT=0 Dostrovski's parameterization
69//OPT=1,2 Chatterjee's paramaterization
70//OPT=3,4 Kalbach's parameterization
71//
72G4double G4PreCompoundNeutron::CrossSection(const  G4double K)
73{
74  ResidualA=GetRestA();
75  ResidualZ=GetRestZ(); 
76  theA=GetA();
77  theZ=GetZ();
78  ResidualAthrd=std::pow(ResidualA,0.33333);
79  FragmentA=GetA()+GetRestA();
80  FragmentAthrd=std::pow(FragmentA,0.33333);
81
82  if (OPTxs==0) return GetOpt0( K);
83  else if( OPTxs==1 || OPTxs==2) return GetOpt12( K);
84  else if (OPTxs==3 || OPTxs==4)  return GetOpt34( K);
85  else{
86    std::ostringstream errOs;
87    errOs << "BAD NEUTRON CROSS SECTION OPTION !!"  <<G4endl;
88    throw G4HadronicException(__FILE__, __LINE__, errOs.str());
89    return 0.;
90  }
91}
92
93// *********************** OPT=0 : Dostrovski's cross section  *****************************
94
95G4double G4PreCompoundNeutron::GetOpt0(const  G4double K)
96{
97 
98  const G4double r0 = G4PreCompoundParameters::GetAddress()->Getr0();
99  // cross section is now given in mb (r0 is in mm) for the sake of consistency
100  //with the rest of the options
101  return 1.e+25*pi*(r0*ResidualAthrd)*(r0*ResidualAthrd)*GetAlpha()*(1.+GetBeta()/K);
102}
103//
104//-------
105//
106G4double G4PreCompoundNeutron::GetAlpha()
107{
108  //   return 0.76+2.2/std::pow(GetRestA(),1.0/3.0);
109  return 0.76+2.2/ResidualAthrd;
110}
111//
112//------------
113//
114G4double G4PreCompoundNeutron::GetBeta() 
115{
116  //   return (2.12/std::pow(GetRestA(),2.0/3.0)-0.05)*MeV/GetAlpha();
117  return (2.12/(ResidualAthrd*ResidualAthrd)-0.05)*MeV/GetAlpha();
118}
119//
120
121//********************* OPT=1,2 : Chatterjee's cross section ************************
122//(fitting to cross section from Bechetti & Greenles OM potential)
123
124G4double G4PreCompoundNeutron::GetOpt12(const  G4double K)
125{
126
127  G4double Kc=K;
128
129// Pramana (Bechetti & Greenles) for neutrons is chosen
130
131// JMQ  xsec is set constat above limit of validity
132 if (K>50) Kc=50;
133
134 G4double landa, landa0, landa1, mu, mu0, mu1,nu, nu0, nu1, nu2,xs;
135
136 landa0 = 18.57;
137 landa1 = -22.93;
138 mu0 = 381.7;
139 mu1 = 24.31;
140 nu0 = 0.172;
141 nu1 = -15.39;
142 nu2 = 804.8;
143 landa = landa0/ResidualAthrd + landa1;
144 mu = mu0*ResidualAthrd + mu1*ResidualAthrd*ResidualAthrd;
145 nu = nu0*ResidualAthrd*ResidualA + nu1*ResidualAthrd*ResidualAthrd + nu2 ;
146 xs=landa*Kc + mu + nu/Kc;
147 if (xs <= 0.0 ){
148   std::ostringstream errOs;
149   G4cout<<"WARNING:  NEGATIVE OPT=1 neutron cross section "<<G4endl;     
150   errOs << "RESIDUAL: Ar=" << ResidualA << " Zr=" << ResidualZ <<G4endl;
151   errOs <<"  xsec("<<Kc<<" MeV) ="<<xs <<G4endl;
152   throw G4HadronicException(__FILE__, __LINE__, errOs.str());
153              }
154 return xs;
155}
156
157
158// *********** OPT=3,4 : Kalbach's cross sections (from PRECO code)*************
159G4double G4PreCompoundNeutron::GetOpt34(const  G4double K)
160{
161 
162  G4double landa, landa0, landa1, mu, mu0, mu1,nu, nu0, nu1, nu2;
163  G4double p, p0, p1, p2;
164  G4double flow,spill,ec,ecsq,xnulam,etest(0.),ra(0.),a,signor(1.),sig; 
165  G4double b,ecut,cut,ecut2,geom,elab;
166
167  //safety initialization
168  landa0=0;
169  landa1=0;
170  mu0=0.;
171  mu1=0.;
172  nu0=0.;
173  nu1=0.;
174  nu2=0.;
175  p0=0.;
176  p1=0.;
177  p2=0.;
178
179
180  flow = 1.e-18;
181  spill= 1.0e+18; 
182
183  // PRECO xs for neutrons is choosen
184
185  p0 = -312.;
186  p1= 0.;
187  p2 = 0.;
188  landa0 = 12.10;
189  landa1=  -11.27;
190  mu0 = 234.1;
191  mu1 = 38.26;
192  nu0 = 1.55;
193  nu1 = -106.1;
194  nu2 = 1280.8; 
195
196  if (ResidualA < 40.) signor=0.7+ResidualA*0.0075;
197  if (ResidualA > 210.) signor = 1. + (ResidualA-210.)/250.;
198  landa = landa0/ResidualAthrd + landa1;
199  mu = mu0*ResidualAthrd + mu1*ResidualAthrd*ResidualAthrd;
200  nu = nu0*ResidualAthrd*ResidualA + nu1*ResidualAthrd*ResidualAthrd + nu2;
201
202  // JMQ very low energy behaviour corrected (problem  for A (apprx.)>60)
203  if (nu < 0.)nu=-nu;
204
205  ec = 0.5;
206  ecsq = 0.25;
207  p = p0;
208  xnulam = 1.;
209  etest = 32.;
210  //          ** etest is the energy above which the rxn cross section is
211  //          ** compared with the geometrical limit and the max taken.
212  //          ** xnulam here is a dummy value to be used later.
213
214  a = -2.*p*ec + landa - nu/ecsq;
215  b = p*ecsq + mu + 2.*nu/ec;
216  ecut = 0.;
217  cut = a*a - 4.*p*b;
218  if (cut > 0.) ecut = std::sqrt(cut);
219  ecut = (ecut-a) / (p+p);
220  ecut2 = ecut;
221  if (cut < 0.) ecut2 = ecut - 2.;
222  elab = K * FragmentA / ResidualA;
223  sig = 0.;
224  if (elab <= ec) { //start for E<Ec
225    if (elab > ecut2)  sig = (p*elab*elab+a*elab+b) * signor;               
226  }              //end for E<Ec
227  else {           //start for  E>Ec
228    sig = (landa*elab+mu+nu/elab) * signor;
229    geom = 0.;
230    if (xnulam < flow || elab < etest) return sig;
231    geom = std::sqrt(theA*K);
232    geom = 1.23*ResidualAthrd + ra + 4.573/geom;
233    geom = 31.416 * geom * geom;
234    sig = std::max(geom,sig);
235
236  }
237  return sig;}
238
239//   ************************** end of cross sections *******************************
240
241
Note: See TracBrowser for help on using the repository browser.