Collaboration diagram for bdflsClass:
Public Member Functions | |
bdflsClass () | |
Default constructor. | |
~bdflsClass () | |
Default destructor. | |
void | read () |
Opens bdfls, loops over sections and then closes bdfls file. | |
Public Attributes | |
double | nuclear_constants [20] |
Nuclear constants are stored in this array. | |
mass_life_list | Mass_Life |
Masses and lifetimes stored in a list of mass_life_links as function of ZA. | |
Private Member Functions | |
void | read_sections () |
Reads in each section of the bdfls file. | |
bool | EndofSection () |
Read in a line and test it for end-of-section. | |
Private Attributes | |
string | stringbuff |
Temporary string buffer for reading in bdfls file. | |
string | section [10] |
Array of strings with the ordered names of the bdfls section (for messaging). | |
int | nsection |
Counter representing current bdfls section being read in. | |
int | lastsection |
Counter representing previous bdfls section read in. | |
int | nsection_max |
Maximum number of sections in the bdfls file. | |
int | nc_index |
counter used in filling the nuclear_constants array. | |
ifstream | bdflsFile |
bdfls ifstream object. |
Definition at line 94 of file bdfls_tools.hpp.
|
The default constructor sets up some default values associated with the bdfls file. If the bdfls file structure is changed, this routine must also be modified in order for the bdfls file to be properly parsed. However, if just the data in the bdfls file is modified, this routine should function correctly. Definition at line 85 of file bdfls_tools.cpp. References lastsection, nc_index, nsection, nsection_max, and section. |
|
There are no lines of code in this destructor. Definition at line 105 of file bdfls_tools.cpp. |
|
This member function performs two tasks. First, it reads in a line from the bdfls file into a string buffer. Then, it tests whether or not it is an ENDL end-of-section marker. Definition at line 290 of file bdfls_tools.cpp. References bdflsFile, and stringbuff. Referenced by read_sections(). |
|
This member function opens the bdfls file, calls the bdflsClass::read_sections() function and then closes the bdfls file. Definition at line 110 of file bdfls_tools.cpp. References bdflsFile, FatalError(), Info(), and read_sections(). Referenced by main(). |
|
This member function loops through all the sections of the bdfls file and loads information into memory. Currently, only the isotope mass and lifetime data and the nuclear constants are interesting to us, so the other sections ( group data, flux data, temperature sets and subshell designator data) are not read into memory. Definition at line 138 of file bdfls_tools.cpp. References mass_life_list::at(), EndofSection(), Info(), lastsection, mass_life_link::LifeTime(), mass_life_link::Mass(), Mass_Life, nc_index, nsection, nsection_max, nuclear_constants, remove_all_blanks(), section, split(), stod(), stoi(), stringbuff, and mass_life_link::ZA(). Referenced by read(). |
|
This is the bdfls file ifstream. Referenced by EndofSection(), and read(). |
|
Referenced by bdflsClass(), and read_sections(). |
|
This idd_list is the link list used to store that mass and lifetime information read in from the bdfls file. The link list designator is the isotope ZA number of each isotope listed in the file. The data elements are the mass and lifetime for each isotope. If there is no lifetime information for an istope it is assumed stable and set to 1.e50. If there is no mass listed for an isotope, it is set to a value of -1 (happens when there is a lifetime for an isotope in the bdfls file but no mass entry). Referenced by ENDLClass::global(), Nuclei::Nuclei(), read_sections(), and Nuclei::set(). |
|
Referenced by bdflsClass(), and read_sections(). |
|
Referenced by bdflsClass(), and read_sections(). |
|
Referenced by bdflsClass(), and read_sections(). |
|
The nuclear constants found in the bdfls file are stored in this array. It is a fixed array of size 20. This should be fixed to use vector of doubles. Referenced by ENDLClass::global(), one_d_charge::initiate(), and read_sections(). |
|
Referenced by bdflsClass(), and read_sections(). |
|
Referenced by EndofSection(), and read_sections(). |