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

b6stream Class Reference

Reads in an ENDF file, creates single reaction files and gathers global info. More...

Collaboration diagram for b6stream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 b6stream (string inputFile="endf.prepro")
 Default constructor.

 ~b6stream ()
 Default destructor.

void readENDF ()
 Reads a single line from the ENDF file stream.

void get_MAT_MF_MT_NS ()
int NSUB_to_yi (int NSUB)
 computes the yi given the sublibrary designator

void print_summary ()
void print_MT_MF ()
 Print all of the MT and MF values.


Public Attributes

int NTAPE
int MAT
int NS
int yi
int date
int LRP
int LFI
int NLIB
int NMOD
int LIS
int LISO
int NFOR
int ZA
int NSUB
int NVER
int LDRV
int NWD
int NXC
double AWR
double ELIS
double STA
double AWI
double TEMP
iMF_array_list MT_MF_list
string input_file
int iDummy
double dDummy
ifstream Efile
ofstream oFile

Private Member Functions

void check_mf_mt ()

Private Attributes

int MF
int MT
int prev_mf
int prev_mt
string sBuff
bool lofile
bool SEND
bool FEND
bool MEND
bool TEND
bool DONE
bool file_top

Detailed Description

This class performs two primary functions - to read the ENDF file and store the global evaluation information and to also write the data out into smaller files that contain only single reaction information. The global evaluation information is stored using member data names that are identical to those listed in the ENDF-102 manual. In fact, the descriptions of the member data for this class are those found in appendix A of that manual. We chose to use the same variable names to minimize future maintenance.

This class also "breaks" the ENDF file into several smaller files. All files are unique and represent the data of every section in the file. The names of the output files reflect the MF and MT numbers and we therefore drop these values from the output stream (we also drop the material identifier and line numbering). It is these smaller reaction files that the actual translation code will use to produce ENDL files.

Definition at line 86 of file b6stream.hpp.


Constructor & Destructor Documentation

b6stream::b6stream string  inputFile = "endf.prepro"  ) 
 

Definition at line 112 of file b6stream.cpp.

References AWI, AWR, DONE, Efile, ELIS, FatalError(), FEND, file_top, Info(), input_file, LDRV, LFI, LIS, LISO, lofile, LRP, MAT, MEND, MF, MT, NFOR, NLIB, NMOD, NS, NSUB, NTAPE, NVER, NWD, NXC, prev_mf, prev_mt, readENDF(), SEND, STA, TEMP, TEND, and ZA.

b6stream::~b6stream  ) 
 

There are no lines of code in this destructor.

Definition at line 145 of file b6stream.cpp.


Member Function Documentation

void b6stream::check_mf_mt  )  [private]
 

Definition at line 326 of file b6stream.cpp.

References MF, MT, prev_mf, prev_mt, and SevereError().

Referenced by readENDF().

void b6stream::get_MAT_MF_MT_NS  ) 
 

Reads the MAT, MF, MT and NS entries at the end of the ENDF line and then strips them from the output stream.

Definition at line 336 of file b6stream.cpp.

References MAT, MF, MT, NS, sBuff, and stoi().

Referenced by readENDF().

int b6stream::NSUB_to_yi int  NSUB  ) 
 

Definition at line 350 of file b6stream.cpp.

References pastenum(), and SevereError().

Referenced by readENDF().

void b6stream::print_MT_MF  ) 
 

Definition at line 403 of file b6stream.cpp.

References MT_MF_list.

Referenced by main().

void b6stream::print_summary  ) 
 

This function prints a global summary for each material based on the information in the ENDF header.

Definition at line 365 of file b6stream.cpp.

References AWR, ELIS, LFI, LIS, LISO, LRP, MESSAGELEVEL_INFO, NFOR, NLIB, NTAPE, NVER, pastenum(), SevereError(), STA, TEMP, Warning(), yi, and ZA.

Referenced by readENDF().

void b6stream::readENDF  ) 
 

This function reads the entire ENDF file in one line at a time, converting each line into numerical data, storing the global evaluation information and writing the data to smaller files whose names are derived from the ENDF file and reaction type (MF and MT).

Definition at line 150 of file b6stream.cpp.

References iMF_array_list::at(), AWI, AWR, check_mf_mt(), date, dDummy, DONE, Efile, ELIS, endf_file_name(), FatalError(), FEND, file_top, get_MAT_MF_MT_NS(), Global, iDummy, Info(), LDRV, LFI, LIS, LISO, lofile, LRP, MAT, MEND, MF, iMF_array_link::MT(), MT, MT_MF_list, NFOR, NLIB, NMOD, NS, NSUB, NSUB_to_yi(), NTAPE, NVER, NWD, NXC, oFile, prev_mf, prev_mt, print_summary(), read_date(), read_ddiiii(), read_idiiii(), sBuff, SEND, SevereError(), STA, TEMP, TEND, GlobalParameterClass::Value(), Warning(), yi, and ZA.

Referenced by b6stream().


Member Data Documentation

b6stream::AWI
 

Projectile mass in neutron units.

Referenced by b6stream(), and readENDF().

b6stream::AWR
 

Ratio of mass of atom (or molecule) to that of the neutron.

Referenced by b6stream(), main(), print_summary(), and readENDF().

int b6stream::date
 

Definition at line 96 of file b6stream.hpp.

Referenced by main(), and readENDF().

double b6stream::dDummy
 

Definition at line 111 of file b6stream.hpp.

Referenced by readENDF().

b6stream::DONE [private]
 

Logical used to signal end of ENDF file.

Referenced by b6stream(), and readENDF().

b6stream::Efile
 

The input ENDF file stream.

Referenced by b6stream(), and readENDF().

b6stream::ELIS
 

Excitation energy of the target nucleus (eV).

Referenced by b6stream(), main(), print_summary(), and readENDF().

b6stream::FEND [private]
 

ENDF end of file marker.

Referenced by b6stream(), and readENDF().

bool b6stream::file_top [private]
 

Definition at line 149 of file b6stream.hpp.

Referenced by b6stream(), and readENDF().

int b6stream::iDummy
 

Definition at line 110 of file b6stream.hpp.

Referenced by readENDF().

string b6stream::input_file
 

Definition at line 107 of file b6stream.hpp.

Referenced by b6stream().

b6stream::LDRV
 

Used to distinguish between different evaluations with the same material key.

Referenced by b6stream(), and readENDF().

b6stream::LFI
 

Indicates whether this material is fissionable.

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::LIS
 

State number of the target nucleus (for materials that represent nuclides).

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::LISO
 

Isomeric state number of the target nucleus.

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::lofile [private]
 

A logical that is true when there is an open output file.

Referenced by b6stream(), and readENDF().

b6stream::LRP
 

Indicates whether resolved and/or unresolved resonance parameters are given in File 2.

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::MAT
 

ENDF material number.

Referenced by b6stream(), get_MAT_MF_MT_NS(), and readENDF().

b6stream::MEND [private]
 

ENDF end of material marker.

Referenced by b6stream(), and readENDF().

b6stream::MF [private]
 

ENDF file number.

Referenced by b6stream(), check_mf_mt(), get_MAT_MF_MT_NS(), and readENDF().

b6stream::MT [private]
 

ENDF reaction type number, or,

covariance file section identifier.

Referenced by b6stream(), check_mf_mt(), get_MAT_MF_MT_NS(), and readENDF().

b6stream::MT_MF_list
 

A linked list of vectors designated by reaction number, $ MT_{d} $. Each reaction can show up in a number of files or classes. The vector in each reaction link contains the list of classes, $ MF_{d} $, that the reaction is described in.

Referenced by main(), print_MT_MF(), and readENDF().

b6stream::NFOR
 

ENDF library format.

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::NLIB
 

ENDF library identifier.

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::NMOD
 

ENDF modification number.

Referenced by b6stream(), and readENDF().

b6stream::NS
 

Number of non-principle scattering atom types, or,

number of states of the radioactive product, or,

number of levels below the present one, including ground state.

Referenced by b6stream(), get_MAT_MF_MT_NS(), and readENDF().

b6stream::NSUB
 

ENDF sublibrary number.

Referenced by b6stream(), and readENDF().

b6stream::NTAPE
 

ENDF "tape" number.

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::NVER
 

ENDF library version number.

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::NWD
 

Number of elements in the Hollerith section.

Referenced by b6stream(), and readENDF().

b6stream::NXC
 

Referred to as NXC in the ENDF manual and is the number of sections to be found in the dictionary.

Referenced by b6stream(), and readENDF().

b6stream::oFile
 

The output file stream.

Referenced by readENDF().

int b6stream::prev_mf [private]
 

Definition at line 140 of file b6stream.hpp.

Referenced by b6stream(), check_mf_mt(), and readENDF().

int b6stream::prev_mt [private]
 

Definition at line 140 of file b6stream.hpp.

Referenced by b6stream(), check_mf_mt(), and readENDF().

b6stream::sBuff [private]
 

The ENDL data is read in line by line into this string.

Referenced by get_MAT_MF_MT_NS(), and readENDF().

b6stream::SEND [private]
 

ENDF end of section marker.

Referenced by b6stream(), and readENDF().

b6stream::STA
 

Target stability flag.

Referenced by b6stream(), print_summary(), and readENDF().

b6stream::TEMP
 

Target temperature in degrees Kelvin.

Referenced by b6stream(), main(), print_summary(), and readENDF().

b6stream::TEND [private]
 

ENDF end of tape marker.

Referenced by b6stream(), and readENDF().

int b6stream::yi
 

Definition at line 96 of file b6stream.hpp.

Referenced by main(), print_summary(), and readENDF().

b6stream::ZA
 

Designation of the original nuclide ( $ ZA=(1000*Z)+A $).

Referenced by b6stream(), main(), print_summary(), and readENDF().


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