G4SmpNuDistDataPu239_241_MC.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // This software was developed by Lawrence Livermore National Laboratory.
00028 //
00029 // Redistribution and use in source and binary forms, with or without
00030 // modification, are permitted provided that the following conditions are met:
00031 //
00032 // 1. Redistributions of source code must retain the above copyright notice,
00033 //   this list of conditions and the following disclaimer.
00034 // 2. Redistributions in binary form must reproduce the above copyright notice,
00035 //   this list of conditions and the following disclaimer in the documentation
00036 //   and/or other materials provided with the distribution.
00037 // 3. The name of the author may not be used to endorse or promote products
00038 //   derived from this software without specific prior written permission.
00039 //
00040 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
00041 // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00042 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
00043 // EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00044 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00045 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00046 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00047 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00048 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00049 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00050 //
00051 // Copyright (c) 2006 The Regents of the University of California.
00052 // All rights reserved.
00053 // UCRL-CODE-224807
00054 //
00055 //
00056 // $Id: G4SmpNuDistDataPu239_241_MC.cc 69860 2013-05-16 14:39:02Z gcosmo $
00057 //
00058 
00059 #include <cmath>
00060 #include "G4fissionEvent.hh"
00061 
00062 G4int G4fissionEvent::G4SmpNuDistDataPu239_241_MC(G4double nubar) {
00063 
00064 /*
00065   Description
00066     Sample Number of Neutrons from fission in Pu-239 and Pu-241 using 
00067     Zucker and Holden's tabulated data for Pu-239
00068     The 11 P(nu) distributions are given as a function of nubar, 
00069     the average number of neutrons from induced fission for the 
00070     11 different energies (0 to 10 MeV), based on the Pu-239 data 
00071     from Zucker and Holden.
00072 */
00073 
00074 /*
00075   Input
00076     nubar    - average number of neutrons per fission
00077   Output
00078     G4SmpNuDistDataPu239_241_MC  - sampled multiplicity
00079     
00080 */
00081 
00082   static G4double Pu239nu [11] [9] = {
00083      {.0108826, .0994916, .2748898, .3269196, .2046061, .0726834, .0097282, .0006301, .0001685},
00084      {.0084842, .0790030, .2536175, .3289870, .2328111, .0800161, .0155581, .0011760, .0003469},
00085      {.0062555, .0611921, .2265608, .3260637, .2588354, .0956070, .0224705, .0025946, .0005205},
00086      {.0045860, .0477879, .1983002, .3184667, .2792811, .1158950, .0301128, .0048471, .0007233},
00087      {.0032908, .0374390, .1704196, .3071862, .2948565, .1392594, .0386738, .0078701, .0010046},
00088      {.0022750, .0291416, .1437645, .2928006, .3063902, .1641647, .0484343, .0116151, .0014149},
00089      {.0014893, .0222369, .1190439, .2756297, .3144908, .1892897, .0597353, .0160828, .0029917},
00090      {.0009061, .0163528, .0968110, .2558524, .3194566, .2134888, .0729739, .0213339, .0020017},
00091      {.0004647, .0113283, .0775201, .2335926, .3213289, .2356614, .0886183, .0274895, .0039531},
00092      {.0002800, .0071460, .0615577, .2089810, .3200121, .2545846, .1072344, .0347255, .0054786},
00093      {.0002064, .0038856, .0492548, .1822078, .3154159, .2687282, .1295143, .0432654, .0075217}
00094     };
00095   static G4double Pu239nubar [11] = {
00096       2.8760000,
00097       3.0088800,
00098       3.1628300,
00099       3.3167800,
00100       3.4707300,
00101       3.6246800,
00102       3.7786300,
00103       3.9325800,
00104       4.0865300,
00105       4.2404900,
00106       4.3944400
00107     };
00108   G4double fraction, r, cum;
00109   G4int engind, nu;
00110 
00111 /* 
00112   Check if nubar is within the range of experimental values
00113 */
00114   if(nubar >= Pu239nubar[0] && nubar <= Pu239nubar[10]) {
00115 /*
00116      Use Zucker and Holden Data
00117 */
00118      engind = 1;
00119      while (nubar > Pu239nubar[engind]){ engind++;}
00120      fraction = (nubar-Pu239nubar[engind-1])/(Pu239nubar[engind]-Pu239nubar[engind-1]);
00121      if(fisslibrng() > fraction) engind--;
00122 
00123      r = fisslibrng();
00124      nu = 0;
00125      cum = Pu239nu[engind][0];
00126      while (r > cum && nu < 8){ 
00127        nu++;
00128        cum += Pu239nu[engind][nu];
00129      }
00130      return nu;
00131   } else {
00132 /*
00133      Use Terrell's formula
00134 */
00135      return (G4int) G4SmpTerrell(nubar);
00136   }
00137 }

Generated on Mon May 27 17:49:51 2013 for Geant4 by  doxygen 1.4.7