Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

MF14_list Class Reference

Class for anisotropic gamma distributions given as Legendre expansions. More...

Collaboration diagram for MF14_list:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MF14_list ()
 Default constructor.

 MF14_list (int NI, int NK, int order, mf12_file *InFile, mf14_file *Angle_File)
 Constructor with given files and number of distributions.

 ~MF14_list ()
 Default destructor.

void master (int mf12_NK)
 Controls the processing of these data.

void read_data ()
 Reads in gamma probabilities and their Legendre expansions.

void one_line (double EG, double *prev_E_in, int NR, int NP, bool do_shift)
 Reads in data for one gamma line.

void insert_pair (dd_link &XYdata, MF12_base::iterator e_in_link)
 Inserts an (EG, probability) pair into a list.

void read_Legendre (double *coef_buff, double **Coef_ptrs)
 Reads Legendre data for one gamma from an mf14 file.

void insert_Legendre (double e_in, dd_link &XYdata, double prev_E_in, double **Coef_ptrs)
 Inserts the Legendre data for one gamma from an mf14 file into our lists.

void strip_zero_multiplicity ()
void widen_delta ()
 Widens the delta functions for the discrete spectrum.

void widen_jumps ()
 Widens the jump discontinuities.

void thinit ()
 Removes redundant data points.

void continuum (int NR, int NP)
 Reads the mf15 file on continuum energy distributions.

void add_lists ()
 Combines the continuous spectrum with the discrete lines.

void extra_contin ()
 Deletes any extra continuum incident energies.

void check_Legendre (bool halt_on_error=true)
 Ensures that we have the same list of E_gamma values for all Legendre orders.

void print ()
 Prints the lists for debugging purposes.

void set_norms ()
 Sets the norms of the spectra according to the given multiplicities.

void renorm ()
 Normalizes the probabilities to 1.

void write_endl ()
 Writes an ENDL i=4 file.


Private Attributes

mf12_fileinFile
mf14_fileangle_file
mf15_file contin_file
vector< MF12_basecoefs_
MF15_list continuum_dist
multiplicity multiple
double AWR
double mf14_EG
int mf14_NR
int mf14_NE
int order_
int mf14_NI
int mf14_NK
int mf12_NK
int num_aniso
int aniso_count
bool with_mf15

Detailed Description

Class for handling the photon angular distributions when given as Legendre expansions.

Definition at line 49 of file mf14classes.hpp.


Constructor & Destructor Documentation

MF14_list::MF14_list  )  [inline]
 

Definition at line 75 of file mf14classes.hpp.

References angle_file, aniso_count, AWR, coefs_, contin_file, continuum_dist, inFile, mf12_NK, mf14_EG, mf14_NE, mf14_NI, mf14_NK, mf14_NR, multiple, num_aniso, order_, and with_mf15.

MF14_list::MF14_list int  NI,
int  NK,
int  order,
mf12_file InFile,
mf14_file Angle_File
 

Parameters:
NI the number of isotropic photons
NK the number of discrete gammas including continuum
order the Legendre order
InFile the multiplicity file (MF=12)
Angle_File the angular distribution file (MF=14)

Definition at line 52 of file mf14classes.cpp.

References angle_file, aniso_count, coefs_, inFile, mf14_NI, mf14_NK, num_aniso, and order_.

MF14_list::~MF14_list  ) 
 

Definition at line 70 of file mf14classes.cpp.


Member Function Documentation

void MF14_list::add_lists  ) 
 

Member function used for combining continuous spectra with discrete lines.

Definition at line 953 of file mf14classes.cpp.

References check_Legendre(), coefs_, two_d_list< one_d_table >::collect_Ein(), continuum_dist, extra_contin(), two_d_list< one_d_table >::fill_in_list(), fill_in_lists(), order_, renorm(), set_norms(), thinit(), and widen_delta().

Referenced by master().

void MF14_list::check_Legendre bool  halt_on_error = true  ) 
 

Definition at line 1082 of file mf14classes.cpp.

References coefs_, ENDL_EPSILON(), order_, pastenum(), SevereError(), and Warning().

Referenced by add_lists().

void MF14_list::continuum int  NR,
int  NP
 

Parameters:
NR the number of interpolation regions
NP the number of data points

Definition at line 1055 of file mf14classes.cpp.

References contin_file, continuum_dist, endf_file_name(), ENDL, ENDF_file::get_regions(), inFile, Info(), dd_list::INT, MF15_list::multiple, dd_list::NBT, MF15_list::read_data(), multiplicity::read_data(), two_d_list< one_d_table >::set_interp(), SevereError(), ENDLClass::T, Unimplemented(), and with_mf15.

Referenced by read_data().

void MF14_list::extra_contin  ) 
 

Member function that thins the continuum data.

Definition at line 1002 of file mf14classes.cpp.

References coefs_, continuum_dist, EPS, Global, SevereError(), and GlobalParameterClass::Value().

Referenced by add_lists().

void MF14_list::insert_Legendre double  e_in,
dd_link XYdata,
double  prev_E_in,
double **  Coef_ptrs
 

Parameters:
e_in the incident neutron energy
XYdata a link of pairwise data
prev_E_in the previous incident neutron energy
Coef_ptrs a list of pointers to find particular incident neutron data
Inserts the Legendre data for a single gamma.

Definition at line 498 of file mf14classes.cpp.

References coefs_, dd_list::E_in(), insert_pair(), mf14_EG, mf14_NE, mf14_NK, order_, pastenum(), SevereError(), dd_link::x, and dd_link::y.

Referenced by one_line().

void MF14_list::insert_pair dd_link XYdata,
MF12_base::iterator  e_in_link
 

Definition at line 406 of file mf14classes.cpp.

References dd_link::x.

Referenced by insert_Legendre(), and one_line().

void MF14_list::master int  mf12_nk  ) 
 

Parameters:
mf12_nk the number of discrete photons including the continuum

Definition at line 74 of file mf14classes.cpp.

References add_lists(), angle_file, AWR, ENDLClass::C, coefs_, contin_file, multiplicity::divide_by_xs(), dd_list::E_in(), ENDL, mf14_file::first_line(), mf12_NK, mf14_NI, mf14_NK, multiple, ENDF_file::open(), order_, read_data(), multiplicity::scale_by_xs(), ENDLClass::set_yo(), mf14_file::skip_iso(), strip_zero_multiplicity(), ENDLClass::T, widen_delta(), with_mf15, dd_list::write_endl(), and write_endl().

Referenced by LoadGammaData().

void MF14_list::one_line double  EG,
double *  prev_E_in,
int  NR,
int  NP,
bool  do_shift
 

Parameters:
EG the energy of the discrete gamma
prev_E_in the previous incident neutron energy
NR the number of interpolation regions
NP the number of data points
do_shift flag for whether or not to Doppler shift

Definition at line 242 of file mf14classes.cpp.

References AWR, coefs_, dd_list::E_in(), ENDL, ENDL_EPSILON(), EPS, ENDLClass::eV2MeV, ENDF_file::get_regions(), Global, inFile, insert_Legendre(), insert_pair(), ENDLClass::Max_E_in, ENDLClass::Max_E_out, mf12_NK, mf14_EG, mf14_NE, mf14_NK, order_, read_dd(), read_Legendre(), SevereError(), Unimplemented(), GlobalParameterClass::Value(), dd_link::x, and dd_link::y.

Referenced by read_data().

void MF14_list::print  ) 
 

Member function used for printing the contents of MF14_lists.

Definition at line 1190 of file mf14classes.cpp.

References coefs_, and order_.

void MF14_list::read_data  ) 
 

Definition at line 166 of file mf14classes.cpp.

References angle_file, aniso_count, coefs_, continuum(), ENDL, ENDLClass::eV2MeV, dd_list::evaluate(), mf12_file::gamma_line1(), inFile, mf12_NK, mf14_EG, mf14_NE, mf14_NR, multiple, one_line(), order_, mf14_file::read_EG(), SevereError(), and with_mf15.

Referenced by master().

void MF14_list::read_Legendre double *  coef_buff,
double **  Coef_ptrs
 

Parameters:
coef_buff a pointer to the incident neutron energy
Coef_ptrs a list of pointers to find particular incident neutron data
Reads the Legendre data into a list.

Definition at line 433 of file mf14classes.cpp.

References angle_file, aniso_count, coefs_, ENDL, ENDLClass::eV2MeV, ENDF_file::get_regions(), mf14_file::Leg_head(), mf14_EG, mf14_NE, mf14_NR, num_aniso, order_, read_d(), mf14_file::read_EG(), SevereError(), and Unimplemented().

Referenced by one_line().

void MF14_list::renorm void   ) 
 

Member function that renormalizes the probabilities to unity.

Definition at line 910 of file mf14classes.cpp.

References coefs_, order_, pastenum(), and Warning().

Referenced by add_lists().

void MF14_list::set_norms  ) 
 

Memeber function that determines the normalizations of the spectra according to the given multiplicities.

Definition at line 828 of file mf14classes.cpp.

References coefs_, continuum_dist, dd_list::evaluate(), multiple, MF15_list::multiple, order_, pastenum(), SevereError(), and Warning().

Referenced by add_lists().

void MF14_list::strip_zero_multiplicity  ) 
 

Definition at line 883 of file mf14classes.cpp.

References coefs_, Info(), multiple, order_, and pastenum().

Referenced by master().

void MF14_list::thinit  ) 
 

Member function to remove redundant data points based on a global tolerance requirement.

Definition at line 665 of file mf14classes.cpp.

References coefs_, Global, order_, and GlobalParameterClass::Value().

Referenced by add_lists().

void MF14_list::widen_delta  ) 
 

Member function that widens the delta functionals for the discrete spectra.

Definition at line 584 of file mf14classes.cpp.

References coefs_, ENDL_JUMP_WIDTH(), and order_.

Referenced by add_lists(), and master().

void MF14_list::widen_jumps  ) 
 

Member function to handle non-analytic jumps in the sprectra.

Definition at line 1049 of file mf14classes.cpp.

References Unimplemented().

void MF14_list::write_endl  ) 
 

Member function that writes the ENDL i=4 file.

Definition at line 1200 of file mf14classes.cpp.

References coefs_, ENDL, ENDLClass::eof_line, ENDLClass::file_name, ENDLClass::header_line_1, ENDLClass::header_line_2, Info(), ENDLClass::new_file(), order_, and ENDLClass::set_I_number().

Referenced by master().


Member Data Documentation

MF14_list::angle_file [private]
 

The MF=14 intermediate ENDF file from which to retrieve angular data.

Referenced by master(), MF14_list(), read_data(), and read_Legendre().

MF14_list::aniso_count [private]
 

The number of anisotropic gammas read in.

Referenced by MF14_list(), read_data(), and read_Legendre().

MF14_list::AWR [private]
 

The atomic weight of the tartget in neutron masses,

Referenced by master(), MF14_list(), and one_line().

MF14_list::coefs_ [private]
 

Referenced by add_lists(), check_Legendre(), extra_contin(), insert_Legendre(), master(), MF14_list(), one_line(), print(), read_data(), read_Legendre(), renorm(), set_norms(), strip_zero_multiplicity(), thinit(), widen_delta(), and write_endl().

MF14_list::contin_file [private]
 

The MF=15 intermediate ENDF file from which to retrieve continuum energy distributions.

Referenced by continuum(), master(), and MF14_list().

MF14_list::continuum_dist [private]
 

Continuum distribntion.

Referenced by add_lists(), continuum(), extra_contin(), MF14_list(), and set_norms().

MF14_list::inFile [private]
 

The MF=12 intermediate ENDF file from which to retrieve multiplicity data.

Referenced by continuum(), MF14_list(), one_line(), and read_data().

MF14_list::mf12_NK [private]
 

The number of discrete photons including the continuum from the MF=12 file.

Referenced by master(), MF14_list(), one_line(), and read_data().

MF14_list::mf14_EG [private]
 

The energy of the gamma/

Referenced by insert_Legendre(), MF14_list(), one_line(), read_data(), and read_Legendre().

MF14_list::mf14_NE [private]
 

The number of incident neutron energy points given.

Referenced by insert_Legendre(), MF14_list(), one_line(), read_data(), and read_Legendre().

MF14_list::mf14_NI [private]
 

The number of isotropic angular distributions given in a section.

Referenced by master(), and MF14_list().

MF14_list::mf14_NK [private]
 

The number of discrete photons including the continuum.

Referenced by insert_Legendre(), master(), MF14_list(), and one_line().

MF14_list::mf14_NR [private]
 

The number of interpolation regions.

Referenced by MF14_list(), read_data(), and read_Legendre().

multiplicity MF14_list::multiple [private]
 

Definition at line 59 of file mf14classes.hpp.

Referenced by master(), MF14_list(), read_data(), set_norms(), and strip_zero_multiplicity().

MF14_list::num_aniso [private]
 

The number of anisotropic gammas.

Referenced by MF14_list(), and read_Legendre().

MF14_list::order_ [private]
 

The order of the Legendre expansion.

Referenced by add_lists(), check_Legendre(), insert_Legendre(), master(), MF14_list(), one_line(), print(), read_data(), read_Legendre(), renorm(), set_norms(), strip_zero_multiplicity(), thinit(), widen_delta(), and write_endl().

MF14_list::with_mf15 [private]
 

Flag the for existence of MF=15 continuum data.

Referenced by continuum(), master(), MF14_list(), and read_data().


Generated on Thu Sep 7 10:40:57 2006 for fete -- From ENDFB6 To ENDL by doxygen 1.3.4