FIER  v1
Fission Induced Electromagnetic Response
Macros | Functions
main.cpp File Reference
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <chrono>
#include "helper_functions.h"
#include "species_data.h"
#include "chains_data.h"
#include "product_data.h"
#include "monte_carlo.h"
Include dependency graph for main.cpp:

Macros

#define M_PI   3.14159265358979323846
 

Functions

string get_yield_file (string yieldline1, string yieldline2)
 
int main (int argc, char *argv[])
 

Detailed Description

Author
Eric Matthews, Matthew Shinner, Bethany Goldblum
Date
3/30/2018

Main process file.

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846

Extra definition of PI for CLION users.

Function Documentation

◆ get_yield_file()

string get_yield_file ( string  yieldline1,
string  yieldline2 
)

Retrieves the yields file from the included library if indicated, otherwise passes on the custom filename. If using the yields file, the top line should read YIELDS:ER, and the second line should be formatted: ELEMENT_NAME,ATOMIC_NUMBER,FISSION_ENERGY. The possible fission energy choices are: Thermal, Fission, DD, DT, SF (spontaneous fission). The library yields are parsed from England and Rider and should be located in "/yields/". See the manual for more info.

Parameters
yieldline1Switch that determines if library is searched. Should be either YIELDS:ER (for library) or YIELDS:FILE (for custom yields file location)
yieldline2Either an ordered triple that indicates which library file to use, or a custom file path.
Returns
location of the yields file (custom or library). -1 if neither ER or FILE is written, -2 if a related library file does not exist.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Main process. To see where each input deck line is being read, look for comments in the form of LINE X in this function.

Parameters
argcShould be 1.
argvFIER takes one argument, the input deck location/name as a .txt.
Returns
0 on successful run.

Holds absolute start time in ms dataed from start of epoch. Used for program timing.

Here is the call graph for this function: