The Fissioner represents the physics of fission neutron emission.
More...
#include "pinspec/src/Fissioner.h"
The Fissioner represents the physics of fission neutron emission.
The Fissioner class contains a cumulative distribution function (CDF) for the chi spectrum of fission neutron energies. The Fissioner can stochastically sample from the CDF to generate the neutron fission emisson spectrum. The Watt spectrum given in the "Fundamentals of Nuclear Reactor Physics", E. E. Lewis is used to generate the CDF:
Default Fissioner constructor.
Initializes the Fissioner with 1E5 bins and a maximum emission energy of 20 MeV.
float Fissioner::emitNeutroneV |
( |
| ) |
|
float Fissioner::emitNeutronMeV |
( |
| ) |
|
int Fissioner::getNumBins |
( |
| ) |
|
Returns the number of bins that the Fissioner uses for the CDF.
- Returns
- the number of CDF bins
void Fissioner::retrieveCDF |
( |
float * |
cdf, |
|
|
int |
num_bins |
|
) |
| |
Fills an input array with the Fissioner's CDF values.
This class method is a helper function to allow the user to access the CDF array through in Python via SWIG by inputting a numpy array to this function. For example, a user may use this function in Python as follows:
num_cdf_bins = fissioner.getNumBins()
numpy_cdf = numpy.zeros(num_cdf_bins)
fissioner.retrieveCDF(numpy_cdf)
- Parameters
-
cdf | an array of the same length as the Fissioner's CDF |
num_bins | the length of the input array for the CDF |
void Fissioner::retrieveCDFEnergies |
( |
float * |
cdf_energies, |
|
|
int |
num_bins |
|
) |
| |
Fills an input array with the Fissioner's CDF energies.
This class method is a helper function to allow the user to access the CDF array through in Python via SWIG by inputting a numpy array to this function. For example, a user may use this function in Python as follows:
num_cdf_energies = fissioner.getNumBins()
numpy_cdf_energies = numpy.zeros(num_cdf_energies)
fissioner.retrieveCDF(numpy_cdf_energies)
- Parameters
-
cdf_energies | an array of the same length as the Fissioner's CDF |
num_bins | the length of the input array for the CDF |
void Fissioner::setEMax |
( |
float |
E_max | ) |
|
Sets the maximum energy value for the CDF.
- Parameters
-
E_max | the maximum CDF energy value in MeV |
void Fissioner::setNumBins |
( |
int |
num_bins | ) |
|
Sets the number of bins that we wish to use for the CDF.
- Parameters
-
num_bins | the number of CDF bins |
float Fissioner::wattSpectrum |
( |
float |
energy | ) |
|
Returns the chi value for a given energy from the Watt spectrum.
- Parameters
-
energy | a fission energy value in MeV |
- Returns
- the value of chi
at that energy
float* Fissioner::_cdf_energies |
|
private |
The array of CDF energies
The maximum fission emission energy in MeV for the CDF
The number of Watt spectrum CDF bins
The documentation for this class was generated from the following files: