#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"
|
#define | M_PI 3.14159265358979323846 |
|
|
string | get_yield_file (string yieldline1, string yieldline2) |
|
int | main (int argc, char *argv[]) |
|
- Author
- Eric Matthews, Matthew Shinner, Bethany Goldblum
- Date
- 3/30/2018
Main process file.
◆ M_PI
#define M_PI 3.14159265358979323846 |
Extra definition of PI for CLION users.
◆ 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
-
yieldline1 | Switch that determines if library is searched. Should be either YIELDS:ER (for library) or YIELDS:FILE (for custom yields file location) |
yieldline2 | Either 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.
◆ 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
-
argc | Should be 1. |
argv | FIER 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.