A monte carlo pin cell spectral code for nuclear engineering applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pinspec.slbw Namespace Reference

The slbw module provides utility functions to generate resonant cross-sections using the Single-Level Breit-Wigner formalism. More...

Functions

def buildSLBWXS
 Function to create resonant capture and scatter cross-sections. More...
 
def convert
 Function to convert a string into a float. More...
 
def parse
 Function to parse a string and convert into resonance parameters. More...
 
def generatePotentialScattering
 Function to generate a potential scattering cross-section for an isotope based on data in a resonance parameters file. More...
 
def compareXS
 Function to generate a plot of the SLBW generated cross-section along with the ENDF-VII version of the cross-section for comparison. More...
 

Detailed Description

The slbw module provides utility functions to generate resonant cross-sections using the Single-Level Breit-Wigner formalism.

This is most helpful for PINSPEC applications which are temperature- dependent and require doppler broadening effects to be treated for resonant absorbers.

Author
Jessica Hunter
Date
April 17, 2013

Function Documentation

def pinspec.slbw.buildSLBWXS (   isotope,
  temp,
  xs_type = 'capture',
  number_of_pos_res = 14,
  energy_min = 1e-5,
  energy_max = 20E6,
  upper_energy_limit_identical_res = 1000.0,
  energy_bin_width = 0.075,
  resonance_spacing_identical_res = 25,
  lower_bound_identical_res = 300,
  gamma_gamma_identical_res = 0.023,
  flat_xs = 0.1 
)

Function to create resonant capture and scatter cross-sections.

Generates the cross-section at some temperature using resonance data and the Single-Level Breit-Wigner formalism. Function broadens a specific number of resonances from the ENDFB-VII library, then creates identical resonances with even spacing to a specified energy limit, and then a specific flat cross section for the remaining energy. When generating elastic cross sections, the flat cross section is set to the potential scattering value.

1 temp=1200
2 slbw.SLBWXS(u238, temp, 'capture')
Parameters
isotopethe isotope of interest
tempthe temperature in degrees Kelvin
xs_typean optional argument string for the cross-section type
number_of_pos_resthe number of positive resonance to use with $ E_0 > 0 $
energy_minthe minimum energy at which to generate the cross-section (eV)
energy_maxthe maximum energy of the cross section (eV)
upper_energy_limit_identical_resthe upper energy limit of the equally spaced, identical resonances section
energy_bin_widththe width of the energy bin for the cross section
resonance_spacing_identical_resthe spacing between resonance peaks for the identical resonances section
lower_bound_identical_resthe lower energy bound for the identical resonances section
gamma_gamma_identical_resthe $\Gamma_{\gamma}$ value for the identical resonances section
flat_xsa flat cross section used for the capture cross section above the identical resonances region
def pinspec.slbw.compareXS (   isotope,
  type_xs = 'capture',
  dir = '.' 
)

Function to generate a plot of the SLBW generated cross-section along with the ENDF-VII version of the cross-section for comparison.

Parameters
isotopethe isotope of interest
type_xstype of cross section, 'capture' or 'elastic' ('scatter' also accepted)
dirthe directory in which the plot will be saved
def pinspec.slbw.convert (   string)

Function to convert a string into a float.

Parameters
stringthe string we wish to convert
Returns
the float version of the input string
def pinspec.slbw.generatePotentialScattering (   isotope,
  energy_min = 1e-5,
  energy_max = 20E6 
)

Function to generate a potential scattering cross-section for an isotope based on data in a resonance parameters file.

Parameters
isotopethe isotope of interest
energy_minthe upper limit of the energy range
energy_maxthe lower limit of the energy range
def pinspec.slbw.parse (   string)

Function to parse a string and convert into resonance parameters.

Function to parse a resonance parameter string into $E_0$, $\Gamma_n$, and $\Gamma_{\gamma}$.

Parameters
stringthe string of interest