CYCLUS
Loading...
Searching...
No Matches
pyne Namespace Reference

Namespaces

namespace  decayers
 
namespace  enrichment
 
namespace  nucname
 
namespace  rxname
 

Classes

struct  alpha
 
struct  atomic
 
struct  atomic_mass_data
 
struct  beta
 
struct  decay
 
struct  dose
 
struct  ecbp
 
class  FileNotFound
 
struct  gamma
 
class  InvalidSimpleXS
 
struct  level_data
 
class  Material
 
struct  material_data
 
class  MaterialProtocolError
 
struct  ndsfpy
 
struct  ndsfpysub
 
struct  q_val_data
 
struct  scattering_lengths
 
class  swapmapcompare
 
struct  wimsdfpy
 

Typedefs

typedef comp_map::iterator comp_iter
 
typedef std::map< int, double > comp_map
 
typedef struct pyne::material_data material_data
 

Functions

void _insert_abund_map ()
 
void _insert_atomic_mass_map ()
 
void _load_atomic_mass_map_memory ()
 
std::string capitalize (std::string s)
 
bool contains_substring (std::string s, std::string substr)
 
double coth (double x)
 
double endftod_cpp (char *s)
 
double endftod_f (char *s)
 
bool file_exists (std::string strfilename)
 
std::string get_flag (char line[], int max_l)
 
std::string last_char (std::string s)
 
std::string natural_naming (std::string name)
 
std::ostream & operator<< (std::ostream &os, Material mat)
 
void pyne_start ()
 
std::string remove_characters (std::string s, std::string chars)
 
std::string remove_substring (std::string s, std::string substr)
 
std::string replace_all_substrings (std::string s, std::string substr, std::string repstr)
 
double simple_xs (int nuc, int rx, std::string energy)
 
double simple_xs (int nuc, std::string rx, std::string energy)
 
double simple_xs (std::string nuc, int rx, std::string energy)
 
double simple_xs (std::string nuc, std::string rx, std::string energy)
 
std::string slice_from_end (std::string s, int n=-1, int l=1)
 
double slope (double x2, double y2, double x1, double y1)
 
double solve_line (double x, double x2, double y2, double x1, double y1)
 
double tanh (double x)
 
bool ternary_ge (int a, int b, int c)
 
double to_dbl (std::string s)
 
int to_int (std::string s)
 
std::string to_lower (std::string s)
 
std::string to_upper (std::string s)
 
bool toggle_warnings ()
 
void use_fast_endftod ()
 
void warning (std::string s)
 
String Conversion Functions

Converts the variables of various types to their C++ string representation.

std::string to_str (int t)
 
std::string to_str (unsigned int t)
 
std::string to_str (double t)
 
std::string to_str (bool t)
 

Variables

static std::string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
std::map< int, double > atomic_mass_error_map
 
std::map< std::string, std::string > data_checksums
 
static std::string digits = "0123456789"
 
double(* endftod )(char *s) = &pyne::endftod_f
 
static int FLUKA_MAT_NUM = 37
 
static std::string fluka_mat_strings []
 
std::string NUC_DATA_PATH = ""
 
std::string PYNE_DATA = ""
 
std::map< std::string, std::map< int, std::map< int, double > > > simple_xs_map
 
bool USE_WARNINGS = true
 
static std::string words
 
Mathematical and Physical Constants
const double pi = 3.14159265359
 
const double N_A = 6.0221415e+23
 
const double barns_per_cm2 = 1e24
 
const double cm2_per_barn = 1e-24
 
const double sec_per_day = 24.0 * 3600.0
 
const double MeV_per_K = 8.617343e-11
 
const double MeV_per_MJ = 6.2415096471204E+18
 
const double Bq_per_Ci = 3.7e10
 
const double Ci_per_Bq = 2.7027027e-11
 

Atomic Mass Data

typedef struct pyne::atomic_mass_data atomic_mass_data
 
std::map< int, double > atomic_mass_map = std::map<int, double>()
 
std::map< std::string, std::string > get_data_checksums ()
 
void _load_atomic_mass_map ()
 
double atomic_mass (int nuc)
 
double atomic_mass (char *nuc)
 
double atomic_mass (std::string nuc)
 

Q_value Data

typedef struct pyne::q_val_data q_val_data
 
std::map< int, double > q_val_map = std::map<int, double>()
 
std::map< int, double > gamma_frac_map = std::map<int, double>()
 
void _load_q_val_map ()
 
double q_val (int nuc)
 
double q_val (const char *nuc)
 
double q_val (std::string nuc)
 
double gamma_frac (int nuc)
 
double gamma_frac (const char *nuc)
 
double gamma_frac (std::string nuc)
 

Dose Factor Data

typedef struct pyne::dose dose
 
std::map< int, doseepa_dose_map
 
std::map< int, dosedoe_dose_map
 
std::map< int, dosegenii_dose_map
 
void _load_dose_map (std::map< int, dose > &dm, std::string source_path)
 
double ext_air_dose (int nuc, int source)
 
double ext_air_dose (const char *nuc, int source)
 
double ext_air_dose (std::string nuc, int source)
 
double ext_soil_dose (int nuc, int source)
 
double ext_soil_dose (const char *nuc, int source)
 
double ext_soil_dose (std::string nuc, int source)
 
double ingest_dose (int nuc, int source)
 
double ingest_dose (const char *nuc, int source)
 
double ingest_dose (std::string nuc, int source)
 
double inhale_dose (int nuc, int source)
 
double inhale_dose (const char *nuc, int source)
 
double inhale_dose (std::string nuc, int source)
 
double dose_ratio (int nuc, int source)
 
double dose_ratio (const char *nuc, int source)
 
double dose_ratio (std::string nuc, int source)
 
double dose_fluid_frac (int nuc, int source)
 
double dose_fluid_frac (const char *nuc, int source)
 
double dose_fluid_frac (std::string nuc, int source)
 
std::string dose_lung_model (int nuc, int source)
 
std::string dose_lung_model (const char *nuc, int source)
 
std::string dose_lung_model (std::string nuc, int source)
 

Scattering Length Data

typedef struct pyne::scattering_lengths scattering_lengths
 
std::map< int, xd_complex_tb_coherent_map
 
std::map< int, xd_complex_tb_incoherent_map
 
std::map< int, double > b_map = std::map<int, double>()
 
void _load_scattering_lengths ()
 
xd_complex_t b_coherent (int nuc)
 
xd_complex_t b_coherent (char *nuc)
 
xd_complex_t b_coherent (std::string nuc)
 
xd_complex_t b_incoherent (int nuc)
 
xd_complex_t b_incoherent (char *nuc)
 
xd_complex_t b_incoherent (std::string nuc)
 
double b (int nuc)
 
double b (char *nuc)
 
double b (std::string nuc)
 

Fission Product Yield Data

typedef struct pyne::wimsdfpy wimsdfpy
 
typedef struct pyne::ndsfpy ndsfpy
 
typedef struct pyne::ndsfpysub ndsfpysub
 
std::map< std::pair< int, int >, double > wimsdfpy_data
 
std::map< std::pair< int, int >, ndsfpysubndsfpy_data
 
void _load_wimsdfpy ()
 
void _load_ndsfpy ()
 
double fpyield (std::pair< int, int > from_to, int source, bool get_error)
 
double fpyield (int from_nuc, int to_nuc, int source, bool get_error)
 
double fpyield (char *from_nuc, char *to_nuc, int source, bool get_error)
 
double fpyield (std::string from_nuc, std::string to_nuc, int source, bool get_error)
 

Decay Data

typedef struct pyne::atomic atomic
 
typedef struct pyne::level_data level_data
 
typedef struct pyne::decay decay
 
typedef struct pyne::gamma gamma
 
typedef struct pyne::alpha alpha
 
typedef struct pyne::beta beta
 
typedef struct pyne::ecbp ecbp
 
std::map< int, atomicatomic_data_map
 
std::map< std::pair< int, double >, level_datalevel_data_lvl_map
 
std::map< std::pair< int, unsigned int >, level_datalevel_data_rx_map
 
std::map< std::pair< int, int >, decaydecay_data
 
std::map< std::pair< int, double >, gammagamma_data
 
std::map< std::pair< int, double >, alphaalpha_data
 
std::map< std::pair< int, double >, betabeta_data
 
std::map< std::pair< int, double >, ecbpecbp_data
 
template<typename T, typename U>
std::vector< T > data_access (double emin, double emax, size_t valoffset, std::map< std::pair< int, double >, U > &data)
 
template<typename T, typename U>
std::vector< T > data_access (int parent, double min, double max, size_t valoffset, std::map< std::pair< int, double >, U > &data)
 
template<typename T, typename U>
data_access (std::pair< int, int > from_to, size_t valoffset, std::map< std::pair< int, int >, U > &data)
 
template<typename T, typename U>
std::vector< T > data_access (int parent, size_t valoffset, std::map< std::pair< int, int >, U > &data)
 
template<typename T, typename U>
std::vector< T > data_access (int parent, size_t valoffset, std::map< std::pair< int, unsigned int >, U > &data)
 
template<typename U>
double data_access (int parent, size_t valoffset, std::map< int, U > &data)
 
template<typename T>
void _load_data ()
 
template<>
void _load_data< atomic > ()
 
std::vector< std::pair< double, double > > calculate_xray_data (int z, double k_conv, double l_conv)
 
template<>
void _load_data< level_data > ()
 
int id_from_level (int nuc, double level)
 
int id_from_level (int nuc, double level, std::string special)
 
int metastable_id (int nuc, int m)
 
int metastable_id (int nuc)
 
double half_life (int nuc)
 
double half_life (char *nuc)
 
double half_life (std::string nuc)
 
double decay_const (int nuc)
 
double decay_const (char *nuc)
 
double decay_const (std::string nuc)
 
double branch_ratio (std::pair< int, int > from_to)
 
double branch_ratio (int from_nuc, int to_nuc)
 
double branch_ratio (char *from_nuc, char *to_nuc)
 
double branch_ratio (std::string from_nuc, std::string to_nuc)
 
double state_energy (int nuc)
 
double state_energy (char *nuc)
 
double state_energy (std::string nuc)
 
std::set< int > decay_children (int nuc)
 
std::set< int > decay_children (char *nuc)
 
std::set< int > decay_children (std::string nuc)
 
template<>
void _load_data< decay > ()
 
std::vector< int > decay_data_children (int parent)
 
std::pair< double, double > decay_half_life (std::pair< int, int >)
 
std::vector< std::pair< double, double > > decay_half_lifes (int)
 
std::pair< double, double > decay_branch_ratio (std::pair< int, int >)
 
std::vector< double > decay_branch_ratios (int parent)
 
std::pair< double, double > decay_photon_branch_ratio (std::pair< int, int >)
 
std::vector< std::pair< double, double > > decay_photon_branch_ratios (int parent)
 
std::pair< double, double > decay_beta_branch_ratio (std::pair< int, int >)
 
std::vector< std::pair< double, double > > decay_beta_branch_ratios (int parent)
 
template<>
void _load_data< gamma > ()
 
std::vector< std::pair< double, double > > gamma_energy (int parent)
 
std::vector< std::pair< double, double > > gamma_energy (double energy, double error)
 
std::vector< std::pair< double, double > > gamma_photon_intensity (int parent)
 
std::vector< std::pair< double, double > > gamma_photon_intensity (double energy, double error)
 
std::vector< std::pair< double, double > > gamma_conversion_intensity (int parent)
 
std::vector< std::pair< double, double > > gamma_total_intensity (int parent)
 
std::vector< std::pair< int, int > > gamma_from_to (int parent)
 
std::vector< std::pair< int, int > > gamma_from_to (double energy, double error)
 
std::vector< std::pair< int, int > > gamma_parent_child (double energy, double error)
 
std::vector< int > gamma_parent (double energy, double error)
 
std::vector< int > gamma_child (double energy, double error)
 
std::vector< int > gamma_child (int parent)
 
std::vector< std::pair< double, double > > gamma_xrays (int parent)
 
std::vector< std::pair< double, double > > gammas (int parent_state_id)
 
std::vector< std::pair< double, double > > alphas (int parent_state_id)
 
std::vector< std::pair< double, double > > betas (int parent_state_id)
 
std::vector< std::pair< double, double > > xrays (int parent)
 
template<>
void _load_data< alpha > ()
 
std::vector< double > alpha_energy (int parent)
 
std::vector< double > alpha_intensity (int parent)
 
std::vector< int > alpha_parent (double energy, double error)
 
std::vector< int > alpha_child (double energy, double error)
 
std::vector< int > alpha_child (int parent)
 
template<>
void _load_data< beta > ()
 
std::vector< double > beta_endpoint_energy (int parent)
 
std::vector< double > beta_average_energy (int parent)
 
std::vector< double > beta_intensity (int parent)
 
std::vector< int > beta_parent (double energy, double error)
 
std::vector< int > beta_child (double energy, double error)
 
std::vector< int > beta_child (int parent)
 
template<>
void _load_data< ecbp > ()
 
std::vector< double > ecbp_endpoint_energy (int parent)
 
std::vector< double > ecbp_average_energy (int parent)
 
std::vector< double > ec_intensity (int parent)
 
std::vector< double > bp_intensity (int parent)
 
std::vector< int > ecbp_parent (double energy, double error)
 
std::vector< int > ecbp_child (double energy, double error)
 
std::vector< int > ecbp_child (int parent)
 
std::vector< std::pair< double, double > > ecbp_xrays (int parent)
 

Natural Abundance Data

std::map< int, double > natural_abund_map = std::map<int, double>()
 
double natural_abund (int nuc)
 
double natural_abund (char *nuc)
 
double natural_abund (std::string nuc)
 

Detailed Description

The 'pyne' namespace all PyNE functionality is included in.

\/file atomic_nuclear_data.h \/author Andrew Davis (andre.nosp@m.w.da.nosp@m.vis@w.nosp@m.isc..nosp@m.edu)

\/brief Impliments all the fundamental atomic & nuclear data data

Typedef Documentation

◆ alpha

typedef struct pyne::alpha pyne::alpha

a struct matching the '/decay/alphas' table in nuc_data.h5.

◆ atomic

typedef struct pyne::atomic pyne::atomic

Structure for atomic data.

◆ atomic_mass_data

typedef struct pyne::atomic_mass_data pyne::atomic_mass_data

a struct matching the atomic_mass table in nuc_data.h5.

◆ beta

typedef struct pyne::beta pyne::beta

a struct matching the '/decay/betas' table in nuc_data.h5.

◆ comp_iter

typedef comp_map::iterator pyne::comp_iter

Nuclide-mass composition iter type.

Definition at line 4553 of file pyne.h.

◆ comp_map

typedef std::map<int, double> pyne::comp_map

Nuclide-mass composition map type.

Definition at line 4552 of file pyne.h.

◆ decay

typedef struct pyne::decay pyne::decay

a struct matching the '/decay/decays' table in nuc_data.h5.

◆ dose

typedef struct pyne::dose pyne::dose

A struct matching the dose factor table in nuc_data.h5.

◆ ecbp

typedef struct pyne::ecbp pyne::ecbp

A struct matching the '/decay/ecbp' table in nuc_data.h5.

◆ gamma

typedef struct pyne::gamma pyne::gamma

a struct matching the '/decay/gammas' table in nuc_data.h5.

◆ level_data

typedef struct pyne::level_data pyne::level_data

a struct matching the '/decay/level_list' table in nuc_data.h5.

◆ material_data

typedef struct pyne::material_data pyne::material_data

A stuct for reprensenting fundemental data in a material.

Useful for HDF5 representations.

◆ ndsfpy

typedef struct pyne::ndsfpy pyne::ndsfpy

a struct matching the '/neutron/nds_fission_product' table in nuc_data.h5

◆ ndsfpysub

typedef struct pyne::ndsfpysub pyne::ndsfpysub

a struct for the nds data for fpyield

◆ q_val_data

typedef struct pyne::q_val_data pyne::q_val_data

a struct matching the q_value table in nuc_data.h5.

◆ scattering_lengths

typedef struct pyne::scattering_lengths pyne::scattering_lengths

a struct matching the '/neutron/scattering_lengths' table in nuc_data.h5.

◆ wimsdfpy

typedef struct pyne::wimsdfpy pyne::wimsdfpy

a struct matching the '/neutron/wimsd_fission_product' table in nuc_data.h5.

Function Documentation

◆ _insert_abund_map()

void pyne::_insert_abund_map ( )

function to create mapping from nuclides in id form to their natural abundances

Definition at line 7710 of file pyne.cc.

◆ _insert_atomic_mass_map()

void pyne::_insert_atomic_mass_map ( )

function to create mapping from nuclides in id form to their atomic masses

Definition at line 4355 of file pyne.cc.

◆ _load_atomic_mass_map()

void pyne::_load_atomic_mass_map ( )

Loads the atomic mass and natural abundance data from the nuc_data.h5 file into memory.

Definition at line 8052 of file pyne.cc.

◆ _load_atomic_mass_map_memory()

void pyne::_load_atomic_mass_map_memory ( )

main function to be called when you whish to load the nuclide data into memory

Definition at line 4319 of file pyne.cc.

◆ _load_data()

template<typename T>
void pyne::_load_data ( )

◆ _load_data< alpha >()

template<>
void pyne::_load_data< alpha > ( )

Loads the alpha decay data from the nuc_data.h5 file into memory.

◆ _load_data< atomic >()

template<>
void pyne::_load_data< atomic > ( )

◆ _load_data< beta >()

template<>
void pyne::_load_data< beta > ( )

Loads the beta decay data from the nuc_data.h5 file into memory.

◆ _load_data< decay >()

template<>
void pyne::_load_data< decay > ( )

Loads the decay data from the nuc_data.h5 file into memory.

◆ _load_data< ecbp >()

template<>
void pyne::_load_data< ecbp > ( )

Loads the electron capture and beta plus decay data from the nuc_data.h5 file into memory.

◆ _load_data< gamma >()

template<>
void pyne::_load_data< gamma > ( )

Loads the gamma ray data from the nuc_data.h5 file into memory.

◆ _load_data< level_data >()

template<>
void pyne::_load_data< level_data > ( )

◆ _load_dose_map()

void pyne::_load_dose_map ( std::map< int, dose > & dm,
std::string source_path )

Loads the dose factor data from the nuc_data.h5 file into memory according to the user-input source.

Definition at line 8348 of file pyne.cc.

◆ _load_ndsfpy()

void pyne::_load_ndsfpy ( )

Loads the NDS fission product yield data from the nuc_data.h5 file into memory.

Definition at line 8905 of file pyne.cc.

◆ _load_q_val_map()

void pyne::_load_q_val_map ( )

Loads the q_value data from the nuc_data.h5 file into memory.

Definition at line 8211 of file pyne.cc.

◆ _load_scattering_lengths()

void pyne::_load_scattering_lengths ( )

Loads the scattering length data from the nuc_data.h5 file into memory.

Definition at line 8627 of file pyne.cc.

◆ _load_wimsdfpy()

void pyne::_load_wimsdfpy ( )

Loads the WIMSD fission product yield data from the nuc_data.h5 file into memory.

Definition at line 8855 of file pyne.cc.

◆ alpha_child() [1/2]

std::vector< int > pyne::alpha_child ( double energy,
double error )

Definition at line 10066 of file pyne.cc.

◆ alpha_child() [2/2]

std::vector< int > pyne::alpha_child ( int parent)

Definition at line 10071 of file pyne.cc.

◆ alpha_energy()

std::vector< double > pyne::alpha_energy ( int parent)

Definition at line 10052 of file pyne.cc.

◆ alpha_intensity()

std::vector< double > pyne::alpha_intensity ( int parent)

Definition at line 10056 of file pyne.cc.

◆ alpha_parent()

std::vector< int > pyne::alpha_parent ( double energy,
double error )

Definition at line 10061 of file pyne.cc.

◆ alphas()

std::vector< std::pair< double, double > > pyne::alphas ( int parent_state_id)

Definition at line 10315 of file pyne.cc.

◆ atomic_mass() [1/3]

double pyne::atomic_mass ( char * nuc)

Returns the atomic mass of a nuclide nuc.

Definition at line 8144 of file pyne.cc.

◆ atomic_mass() [2/3]

double pyne::atomic_mass ( int nuc)

Returns the atomic mass of a nuclide nuc.

This function will first try to find the atomic mass data in the atomic_mass_map. If this map is empty, it will load the data from disk. If the nuclide is in an excited state and not found in the map, it will give the value for the ground state nuclide. If the nuclide simply cannot be found, the A number is returned.

Definition at line 8101 of file pyne.cc.

◆ atomic_mass() [3/3]

double pyne::atomic_mass ( std::string nuc)

Returns the atomic mass of a nuclide nuc.

Definition at line 8149 of file pyne.cc.

◆ b() [1/3]

double pyne::b ( char * nuc)

Computes the scattering length [cm] from the coherent and incoherent components.

Definition at line 8839 of file pyne.cc.

◆ b() [2/3]

double pyne::b ( int nuc)

Computes the scattering length [cm] from the coherent and incoherent components.

Definition at line 8819 of file pyne.cc.

◆ b() [3/3]

double pyne::b ( std::string nuc)

Computes the scattering length [cm] from the coherent and incoherent components.

Definition at line 8844 of file pyne.cc.

◆ b_coherent() [1/3]

xd_complex_t pyne::b_coherent ( char * nuc)

Finds the coherent scattering length [cm] for a nuclide nuc.

Definition at line 8741 of file pyne.cc.

◆ b_coherent() [2/3]

xd_complex_t pyne::b_coherent ( int nuc)

Finds the coherent scattering length [cm] for a nuclide nuc.

This function works by first checking the b_coherent_map. If the map is empty then the data is read in from disk. If no data is found than a value from a nuclide with the same A number is returned instead. If none of these exist, then the value of a nuclide with the same Z number is used. If none of these work then 0.0 is returned.

Definition at line 8689 of file pyne.cc.

◆ b_coherent() [3/3]

xd_complex_t pyne::b_coherent ( std::string nuc)

Finds the coherent scattering length [cm] for a nuclide nuc.

Definition at line 8746 of file pyne.cc.

◆ b_incoherent() [1/3]

xd_complex_t pyne::b_incoherent ( char * nuc)

Finds the incoherent scattering length [cm] for a nuclide nuc.

Definition at line 8807 of file pyne.cc.

◆ b_incoherent() [2/3]

xd_complex_t pyne::b_incoherent ( int nuc)

Finds the incoherent scattering length [cm] for a nuclide nuc.

This function works in the same way that b_coherent() does.

Definition at line 8755 of file pyne.cc.

◆ b_incoherent() [3/3]

xd_complex_t pyne::b_incoherent ( std::string nuc)

Finds the incoherent scattering length [cm] for a nuclide nuc.

Definition at line 8811 of file pyne.cc.

◆ beta_average_energy()

std::vector< double > pyne::beta_average_energy ( int parent)

Definition at line 10130 of file pyne.cc.

◆ beta_child() [1/2]

std::vector< int > pyne::beta_child ( double energy,
double error )

Definition at line 10145 of file pyne.cc.

◆ beta_child() [2/2]

std::vector< int > pyne::beta_child ( int parent)

Definition at line 10150 of file pyne.cc.

◆ beta_endpoint_energy()

std::vector< double > pyne::beta_endpoint_energy ( int parent)

Definition at line 10125 of file pyne.cc.

◆ beta_intensity()

std::vector< double > pyne::beta_intensity ( int parent)

Definition at line 10135 of file pyne.cc.

◆ beta_parent()

std::vector< int > pyne::beta_parent ( double energy,
double error )

Definition at line 10140 of file pyne.cc.

◆ betas()

std::vector< std::pair< double, double > > pyne::betas ( int parent_state_id)

Definition at line 10334 of file pyne.cc.

◆ bp_intensity()

std::vector< double > pyne::bp_intensity ( int parent)

Definition at line 10227 of file pyne.cc.

◆ branch_ratio() [1/4]

double pyne::branch_ratio ( char * from_nuc,
char * to_nuc )

Returns the branch ratio for a parent/child nuclide pair.

Definition at line 9609 of file pyne.cc.

◆ branch_ratio() [2/4]

double pyne::branch_ratio ( int from_nuc,
int to_nuc )

Returns the branch ratio for a parent/child nuclide pair.

Definition at line 9604 of file pyne.cc.

◆ branch_ratio() [3/4]

double pyne::branch_ratio ( std::pair< int, int > from_to)

Returns the branch ratio for a parent/child nuclide pair.

This function works by first checking the branch_ratio_map. If this is empty it loads the data from disk. If the parent/child nuclide pair is still not found, then the decay is assumed to be impossible and 0.0 is returned.

Definition at line 9572 of file pyne.cc.

◆ branch_ratio() [4/4]

double pyne::branch_ratio ( std::string from_nuc,
std::string to_nuc )

Returns the branch ratio for a parent/child nuclide pair.

Definition at line 9614 of file pyne.cc.

◆ calculate_xray_data()

std::vector< std::pair< double, double > > pyne::calculate_xray_data ( int z,
double k_conv,
double l_conv )

Definition at line 9289 of file pyne.cc.

◆ capitalize()

std::string pyne::capitalize ( std::string s)

Returns a capitalized copy of the string.

Definition at line 223 of file pyne.cc.

◆ contains_substring()

bool pyne::contains_substring ( std::string s,
std::string substr )

Returns true if substr is in s.

Definition at line 290 of file pyne.cc.

◆ coth()

double pyne::coth ( double x)

The hyperbolic cotangent function.

Definition at line 342 of file pyne.cc.

◆ data_access() [1/6]

template<typename T, typename U>
std::vector< T > pyne::data_access ( double emin,
double emax,
size_t valoffset,
std::map< std::pair< int, double >, U > & data )

Access data in a std::map<std::pair<int, double> for a range of values of the second member of the pair.

Returns a vector of all values at valoffset of class U of type T f

Definition at line 9054 of file pyne.cc.

◆ data_access() [2/6]

template<typename T, typename U>
std::vector< T > pyne::data_access ( int parent,
double min,
double max,
size_t valoffset,
std::map< std::pair< int, double >, U > & data )

Access data in a std::map<std::pair<int, double> for a given value of the first member of the pair.

Returns a vector of all values at valoffset of class U of type T

Definition at line 9086 of file pyne.cc.

◆ data_access() [3/6]

template<typename U>
double pyne::data_access ( int parent,
size_t valoffset,
std::map< int, U > & data )

Access data in a std::map<int, data> format for a given first member of the pair.

Returns the value at valoffset of the matching datapoint.

Definition at line 9178 of file pyne.cc.

◆ data_access() [4/6]

template<typename T, typename U>
std::vector< T > pyne::data_access ( int parent,
size_t valoffset,
std::map< std::pair< int, int >, U > & data )

Access data in a std::map<std::pair<int, int> for a given value of the first member of the pair.

Returns an array of the values at valoffset of class U of type T

Definition at line 9132 of file pyne.cc.

◆ data_access() [5/6]

template<typename T, typename U>
std::vector< T > pyne::data_access ( int parent,
size_t valoffset,
std::map< std::pair< int, unsigned int >, U > & data )

Definition at line 9154 of file pyne.cc.

◆ data_access() [6/6]

template<typename T, typename U>
T pyne::data_access ( std::pair< int, int > from_to,
size_t valoffset,
std::map< std::pair< int, int >, U > & data )

Access data in a std::map<std::pair<int, int> for a given matching pair.

Returns the value at valoffset of class U of type T

Definition at line 9109 of file pyne.cc.

◆ decay_beta_branch_ratio()

std::pair< double, double > pyne::decay_beta_branch_ratio ( std::pair< int, int > from_to)

Definition at line 9743 of file pyne.cc.

◆ decay_beta_branch_ratios()

std::vector< std::pair< double, double > > pyne::decay_beta_branch_ratios ( int parent)

Definition at line 9752 of file pyne.cc.

◆ decay_branch_ratio()

std::pair< double, double > pyne::decay_branch_ratio ( std::pair< int, int > from_to)

Definition at line 9707 of file pyne.cc.

◆ decay_branch_ratios()

std::vector< double > pyne::decay_branch_ratios ( int parent)

Definition at line 9716 of file pyne.cc.

◆ decay_children() [1/3]

std::set< int > pyne::decay_children ( char * nuc)

Returns the decay constant for a nuclide nuc.

Definition at line 9497 of file pyne.cc.

◆ decay_children() [2/3]

std::set< int > pyne::decay_children ( int nuc)

Returns a set of decay children of a nuc.

This function works by first checking decay_chidlren_map. If this is empty it loads the data from disk. If the nuclide is still not found, then the species is assumed to be stable and an empty set is returned.

Definition at line 9466 of file pyne.cc.

◆ decay_children() [3/3]

std::set< int > pyne::decay_children ( std::string nuc)

Returns the decay constant for a nuclide nuc.

Definition at line 9501 of file pyne.cc.

◆ decay_const() [1/3]

double pyne::decay_const ( char * nuc)

Returns the decay constant for a nuclide nuc.

Definition at line 9537 of file pyne.cc.

◆ decay_const() [2/3]

double pyne::decay_const ( int nuc)

Returns the decay constant for a nuclide nuc.

This function works by first checking the decay_const_map. If this is empty it loads the data from disk. If the nuclide is still not found, then the species is assumed to be stable and 0.0 is returned.

Definition at line 9528 of file pyne.cc.

◆ decay_const() [3/3]

double pyne::decay_const ( std::string nuc)

Returns the decay constant for a nuclide nuc.

Definition at line 9542 of file pyne.cc.

◆ decay_data_children()

std::vector< int > pyne::decay_data_children ( int parent)

Definition at line 9681 of file pyne.cc.

◆ decay_half_life()

std::pair< double, double > pyne::decay_half_life ( std::pair< int, int > from_to)

Definition at line 9687 of file pyne.cc.

◆ decay_half_lifes()

std::vector< std::pair< double, double > > pyne::decay_half_lifes ( int parent)

Definition at line 9695 of file pyne.cc.

◆ decay_photon_branch_ratio()

std::pair< double, double > pyne::decay_photon_branch_ratio ( std::pair< int, int > from_to)

Definition at line 9721 of file pyne.cc.

◆ decay_photon_branch_ratios()

std::vector< std::pair< double, double > > pyne::decay_photon_branch_ratios ( int parent)

Definition at line 9730 of file pyne.cc.

◆ dose_fluid_frac() [1/3]

double pyne::dose_fluid_frac ( const char * nuc,
int source )

Definition at line 8559 of file pyne.cc.

◆ dose_fluid_frac() [2/3]

double pyne::dose_fluid_frac ( int nuc,
int source )

Fluid Fraction.

Definition at line 8548 of file pyne.cc.

◆ dose_fluid_frac() [3/3]

double pyne::dose_fluid_frac ( std::string nuc,
int source )

Definition at line 8564 of file pyne.cc.

◆ dose_lung_model() [1/3]

std::string pyne::dose_lung_model ( const char * nuc,
int source )

Definition at line 8608 of file pyne.cc.

◆ dose_lung_model() [2/3]

std::string pyne::dose_lung_model ( int nuc,
int source )

Lung Model.

Definition at line 8597 of file pyne.cc.

◆ dose_lung_model() [3/3]

std::string pyne::dose_lung_model ( std::string nuc,
int source )

Definition at line 8613 of file pyne.cc.

◆ dose_ratio() [1/3]

double pyne::dose_ratio ( const char * nuc,
int source )

Definition at line 8485 of file pyne.cc.

◆ dose_ratio() [2/3]

double pyne::dose_ratio ( int nuc,
int source )

Dose Ratio.

Definition at line 8474 of file pyne.cc.

◆ dose_ratio() [3/3]

double pyne::dose_ratio ( std::string nuc,
int source )

Definition at line 8490 of file pyne.cc.

◆ ec_intensity()

std::vector< double > pyne::ec_intensity ( int parent)

Definition at line 10222 of file pyne.cc.

◆ ecbp_average_energy()

std::vector< double > pyne::ecbp_average_energy ( int parent)

Definition at line 10217 of file pyne.cc.

◆ ecbp_child() [1/2]

std::vector< int > pyne::ecbp_child ( double energy,
double error )

Definition at line 10237 of file pyne.cc.

◆ ecbp_child() [2/2]

std::vector< int > pyne::ecbp_child ( int parent)

Definition at line 10242 of file pyne.cc.

◆ ecbp_endpoint_energy()

std::vector< double > pyne::ecbp_endpoint_energy ( int parent)

returns a list of electron capture/ beta plus decay endpoint energies from input parent nuclide

Definition at line 10212 of file pyne.cc.

◆ ecbp_parent()

std::vector< int > pyne::ecbp_parent ( double energy,
double error )

Definition at line 10232 of file pyne.cc.

◆ ecbp_xrays()

std::vector< std::pair< double, double > > pyne::ecbp_xrays ( int parent)

Definition at line 10247 of file pyne.cc.

◆ endftod_cpp()

double pyne::endftod_cpp ( char * s)

Converts a string from ENDF format to a float.

Only handles E-less format but is roughly 5 times faster than endftod.

Definition at line 143 of file pyne.cc.

◆ endftod_f()

double pyne::endftod_f ( char * s)

Converts a string from ENDF format to a float.

Definition at line 197 of file pyne.cc.

◆ ext_air_dose() [1/3]

double pyne::ext_air_dose ( const char * nuc,
int source )

Definition at line 8463 of file pyne.cc.

◆ ext_air_dose() [2/3]

double pyne::ext_air_dose ( int nuc,
int source )

Returns the dose factors of a nuclide.

Functions for External Air and Ratio of External Air to Inhalation Dose Factors.

These functions will first try to find the dose factor data in the dose_maps. If the maps are empty, it will load the data from disk. If the nuclide simply cannot be found, the default value returned is -1.

External Air

Definition at line 8452 of file pyne.cc.

◆ ext_air_dose() [3/3]

double pyne::ext_air_dose ( std::string nuc,
int source )

Definition at line 8468 of file pyne.cc.

◆ ext_soil_dose() [1/3]

double pyne::ext_soil_dose ( const char * nuc,
int source )

Definition at line 8510 of file pyne.cc.

◆ ext_soil_dose() [2/3]

double pyne::ext_soil_dose ( int nuc,
int source )

Function for External Soil Dose Factors.

Definition at line 8499 of file pyne.cc.

◆ ext_soil_dose() [3/3]

double pyne::ext_soil_dose ( std::string nuc,
int source )

Definition at line 8515 of file pyne.cc.

◆ file_exists()

bool pyne::file_exists ( std::string strfilename)

Returns true if the file can be found.

Definition at line 348 of file pyne.cc.

◆ fpyield() [1/4]

double pyne::fpyield ( char * from_nuc,
char * to_nuc,
int source,
bool get_error )

Returns the fission product yield for a parent/child nuclide pair.

Definition at line 9026 of file pyne.cc.

◆ fpyield() [2/4]

double pyne::fpyield ( int from_nuc,
int to_nuc,
int source,
bool get_error )

Returns the fission product yield for a parent/child nuclide pair.

Definition at line 9020 of file pyne.cc.

◆ fpyield() [3/4]

double pyne::fpyield ( std::pair< int, int > from_to,
int source,
bool get_error )

Returns the fission product yield for a parent/child nuclide pair.

This function works by first checking the fission yield data. If this is empty it loads the data from disk. If the parent/child nuclide pair is still not found, then the process is assumed to be impossible and 0.0 is returned. The data source is determined by the type value as follows: 0 WIMS, 1 thermal NDS, 2 fast NDS, 3 14 MeV NDS. negative type values return error for that data type.

Definition at line 8969 of file pyne.cc.

◆ fpyield() [4/4]

double pyne::fpyield ( std::string from_nuc,
std::string to_nuc,
int source,
bool get_error )

Returns the fission product yield for a parent/child nuclide pair.

Definition at line 9032 of file pyne.cc.

◆ gamma_child() [1/2]

std::vector< int > pyne::gamma_child ( double energy,
double error )

Definition at line 9955 of file pyne.cc.

◆ gamma_child() [2/2]

std::vector< int > pyne::gamma_child ( int parent)

Definition at line 9960 of file pyne.cc.

◆ gamma_conversion_intensity()

std::vector< std::pair< double, double > > pyne::gamma_conversion_intensity ( int parent)

Definition at line 9887 of file pyne.cc.

◆ gamma_energy() [1/2]

std::vector< std::pair< double, double > > pyne::gamma_energy ( double energy,
double error )

Definition at line 9846 of file pyne.cc.

◆ gamma_energy() [2/2]

std::vector< std::pair< double, double > > pyne::gamma_energy ( int parent)

Definition at line 9834 of file pyne.cc.

◆ gamma_frac() [1/3]

double pyne::gamma_frac ( const char * nuc)

Definition at line 8324 of file pyne.cc.

◆ gamma_frac() [2/3]

double pyne::gamma_frac ( int nuc)

Definition at line 8298 of file pyne.cc.

◆ gamma_frac() [3/3]

double pyne::gamma_frac ( std::string nuc)

Definition at line 8329 of file pyne.cc.

◆ gamma_from_to() [1/2]

std::vector< std::pair< int, int > > pyne::gamma_from_to ( double energy,
double error )

Definition at line 9924 of file pyne.cc.

◆ gamma_from_to() [2/2]

std::vector< std::pair< int, int > > pyne::gamma_from_to ( int parent)

Definition at line 9912 of file pyne.cc.

◆ gamma_parent()

std::vector< int > pyne::gamma_parent ( double energy,
double error )

Definition at line 9950 of file pyne.cc.

◆ gamma_parent_child()

std::vector< std::pair< int, int > > pyne::gamma_parent_child ( double energy,
double error )

Definition at line 9937 of file pyne.cc.

◆ gamma_photon_intensity() [1/2]

std::vector< std::pair< double, double > > pyne::gamma_photon_intensity ( double energy,
double error )

Definition at line 9872 of file pyne.cc.

◆ gamma_photon_intensity() [2/2]

std::vector< std::pair< double, double > > pyne::gamma_photon_intensity ( int parent)

Definition at line 9859 of file pyne.cc.

◆ gamma_total_intensity()

std::vector< std::pair< double, double > > pyne::gamma_total_intensity ( int parent)

Definition at line 9900 of file pyne.cc.

◆ gamma_xrays()

std::vector< std::pair< double, double > > pyne::gamma_xrays ( int parent)

Definition at line 9965 of file pyne.cc.

◆ gammas()

std::vector< std::pair< double, double > > pyne::gammas ( int parent_state_id)

Returns a list of energies and intensities normalized to branching ratios.

Combined decay data ///.

Definition at line 10291 of file pyne.cc.

◆ get_data_checksums()

std::map< std::string, std::string > pyne::get_data_checksums ( )

Definition at line 8031 of file pyne.cc.

◆ get_flag()

std::string pyne::get_flag ( char line[],
int max_l )

Finds and returns the first white-space delimited token of a line.

Parameters
linea character array to take the first token from.
max_lan upper bound to the length of the token. Must be 11 or less.
Returns
a the flag as a string

Definition at line 233 of file pyne.cc.

◆ half_life() [1/3]

double pyne::half_life ( char * nuc)

Returns the half life for a nuclide nuc.

Definition at line 9559 of file pyne.cc.

◆ half_life() [2/3]

double pyne::half_life ( int nuc)

Returns the half life for a nuclide nuc.

This function works by first checking the half_life_map. If this is empty it loads the data from disk. If the nuclide is still not found, then the species is assumed to be stable and infinity is returned.

Definition at line 9550 of file pyne.cc.

◆ half_life() [3/3]

double pyne::half_life ( std::string nuc)

Returns the half life for a nuclide nuc.

Definition at line 9564 of file pyne.cc.

◆ id_from_level() [1/2]

int pyne::id_from_level ( int nuc,
double level )

Returns the nuc_id of an energy level.

This function looks for the level that best matches the input level within 1 keV of the input nuclide

Definition at line 9430 of file pyne.cc.

◆ id_from_level() [2/2]

int pyne::id_from_level ( int nuc,
double level,
std::string special )

Definition at line 9399 of file pyne.cc.

◆ ingest_dose() [1/3]

double pyne::ingest_dose ( const char * nuc,
int source )

Definition at line 8537 of file pyne.cc.

◆ ingest_dose() [2/3]

double pyne::ingest_dose ( int nuc,
int source )

Functions for Ingestion Dose Factors and Fraction of activity that is absorbed by body fluids.

Ingestion

Definition at line 8526 of file pyne.cc.

◆ ingest_dose() [3/3]

double pyne::ingest_dose ( std::string nuc,
int source )

Definition at line 8542 of file pyne.cc.

◆ inhale_dose() [1/3]

double pyne::inhale_dose ( const char * nuc,
int source )

Definition at line 8586 of file pyne.cc.

◆ inhale_dose() [2/3]

double pyne::inhale_dose ( int nuc,
int source )

Functions for Inhalation Dose Factors and Lung Model used to obtain dose factors.

Inhalation

Definition at line 8575 of file pyne.cc.

◆ inhale_dose() [3/3]

double pyne::inhale_dose ( std::string nuc,
int source )

Definition at line 8591 of file pyne.cc.

◆ last_char()

std::string pyne::last_char ( std::string s)

Returns the last character in a string.

Definition at line 275 of file pyne.cc.

◆ metastable_id() [1/2]

int pyne::metastable_id ( int nuc)

Assumes the first metastable state is the desired one.

Definition at line 9458 of file pyne.cc.

◆ metastable_id() [2/2]

int pyne::metastable_id ( int nuc,
int m )

Returns the nuc_id of a metastable state.

This function looks through the level map for a given input nuc_id to find the nuc_id corresponding to the level

Definition at line 9437 of file pyne.cc.

◆ natural_abund() [1/3]

double pyne::natural_abund ( char * nuc)

Returns the natural abundance of a nuclide nuc.

Definition at line 8197 of file pyne.cc.

◆ natural_abund() [2/3]

double pyne::natural_abund ( int nuc)

Returns the natural abundance of a nuclide nuc.

This follows the same the basic rules for finding or computing the natural abundances as the atomic_mass() functions do. However, if the nuclide cannot be found, the default value returned is 0.0.

Definition at line 8160 of file pyne.cc.

◆ natural_abund() [3/3]

double pyne::natural_abund ( std::string nuc)

Returns the natural abundance of a nuclide nuc.

Definition at line 8202 of file pyne.cc.

◆ natural_naming()

std::string pyne::natural_naming ( std::string name)

Calculates a version of the string name that is also a valid variable name.

That is to say that the return value uses only word characters.

Definition at line 296 of file pyne.cc.

◆ operator<<()

std::ostream & pyne::operator<< ( std::ostream & os,
Material mat )

Converts a Material to a string stream representation for canonical writing.

This operator is also defined on inheritors of std::ostream

◆ pyne_start()

void pyne::pyne_start ( )

Initializes PyNE based on environment.

Definition at line 83 of file pyne.cc.

◆ q_val() [1/3]

double pyne::q_val ( const char * nuc)

Definition at line 8282 of file pyne.cc.

◆ q_val() [2/3]

double pyne::q_val ( int nuc)

Returns the q_value of a nuclide nuc.

This function will first try to find the q_value data in the q_val_map. If this map is empty, it will load the data from disk. If the nuclide simply cannot be found, the default value returned is 0.0.

Definition at line 8256 of file pyne.cc.

◆ q_val() [3/3]

double pyne::q_val ( std::string nuc)

Definition at line 8287 of file pyne.cc.

◆ remove_characters()

std::string pyne::remove_characters ( std::string s,
std::string chars )

Removes all characters in the string chars from s.

Definition at line 256 of file pyne.cc.

◆ remove_substring()

std::string pyne::remove_substring ( std::string s,
std::string substr )

Creates a copy of s with all instances of substr taken out.

Definition at line 246 of file pyne.cc.

◆ replace_all_substrings()

std::string pyne::replace_all_substrings ( std::string s,
std::string substr,
std::string repstr )

Replaces all instance of substr in s with repstr.

Definition at line 264 of file pyne.cc.

◆ simple_xs() [1/4]

double pyne::simple_xs ( int nuc,
int rx,
std::string energy )

returns the microscopic cross section in barns for the specified nuclide, reaction, and energy group.

energy must be one of: "thermal", "thermal_maxwell_ave", "resonance_integral", "fourteen_MeV", "fission_spectrum_ave".

Definition at line 10537 of file pyne.cc.

◆ simple_xs() [2/4]

double pyne::simple_xs ( int nuc,
std::string rx,
std::string energy )

returns the microscopic cross section in barns for the specified nuclide, reaction, and energy group.

energy must be one of: "thermal", "thermal_maxwell_ave", "resonance_integral", "fourteen_MeV", "fission_spectrum_ave".

Definition at line 10563 of file pyne.cc.

◆ simple_xs() [3/4]

double pyne::simple_xs ( std::string nuc,
int rx,
std::string energy )

returns the microscopic cross section in barns for the specified nuclide, reaction, and energy group.

energy must be one of: "thermal", "thermal_maxwell_ave", "resonance_integral", "fourteen_MeV", "fission_spectrum_ave".

Definition at line 10566 of file pyne.cc.

◆ simple_xs() [4/4]

double pyne::simple_xs ( std::string nuc,
std::string rx,
std::string energy )

returns the microscopic cross section in barns for the specified nuclide, reaction, and energy group.

energy must be one of: "thermal", "thermal_maxwell_ave", "resonance_integral", "fourteen_MeV", "fission_spectrum_ave".

Definition at line 10569 of file pyne.cc.

◆ slice_from_end()

std::string pyne::slice_from_end ( std::string s,
int n = -1,
int l = 1 )

Returns the slice of a string s using the negative index n and the length of the slice l.

Definition at line 280 of file pyne.cc.

◆ slope()

double pyne::slope ( double x2,
double y2,
double x1,
double y1 )

Finds the slope of a line from the points (x1, y1) and (x2, y2).

Definition at line 329 of file pyne.cc.

◆ solve_line()

double pyne::solve_line ( double x,
double x2,
double y2,
double x1,
double y1 )

Solves the equation for the line y = mx + b, given x and the points that form the line: (x1, y1) and (x2, y2).

Definition at line 334 of file pyne.cc.

◆ state_energy() [1/3]

double pyne::state_energy ( char * nuc)

Returns the excitation energy [MeV] of a nuc in a given state.

Definition at line 9516 of file pyne.cc.

◆ state_energy() [2/3]

double pyne::state_energy ( int nuc)

Returns the excitation energy [MeV] of a nuc in a given state.

This function works by first checking the state_energy_map. If this is empty it loads the data from disk. If the nuclide is still not found, then the species is assumed to be in a ground state and 0.0 is returned.

Definition at line 9509 of file pyne.cc.

◆ state_energy() [3/3]

double pyne::state_energy ( std::string nuc)

Returns the excitation energy [MeV] of a nuc in a given state.

Definition at line 9520 of file pyne.cc.

◆ tanh()

double pyne::tanh ( double x)

The hyperbolic tangent function.

Definition at line 338 of file pyne.cc.

◆ ternary_ge()

bool pyne::ternary_ge ( int a,
int b,
int c )

Returns true if a <= b <= c and flase otherwise.

Definition at line 285 of file pyne.cc.

◆ to_dbl()

double pyne::to_dbl ( std::string s)

Converts a valid string to a float using atof().

Definition at line 139 of file pyne.cc.

◆ to_int()

int pyne::to_int ( std::string s)

Converts a string of digits to an int using atoi().

Definition at line 135 of file pyne.cc.

◆ to_lower()

std::string pyne::to_lower ( std::string s)

Returns an all lower case copy of the string.

Definition at line 217 of file pyne.cc.

◆ to_str() [1/4]

std::string pyne::to_str ( bool t)

Definition at line 129 of file pyne.cc.

◆ to_str() [2/4]

std::string pyne::to_str ( double t)

Definition at line 123 of file pyne.cc.

◆ to_str() [3/4]

std::string pyne::to_str ( int t)

Definition at line 111 of file pyne.cc.

◆ to_str() [4/4]

std::string pyne::to_str ( unsigned int t)

Definition at line 117 of file pyne.cc.

◆ to_upper()

std::string pyne::to_upper ( std::string s)

switches endftod to fast cpp version

Returns an all upper case copy of the string.

Definition at line 211 of file pyne.cc.

◆ toggle_warnings()

bool pyne::toggle_warnings ( )

Toggles warnings on and off.

Definition at line 379 of file pyne.cc.

◆ use_fast_endftod()

void pyne::use_fast_endftod ( )

Definition at line 207 of file pyne.cc.

◆ warning()

void pyne::warning ( std::string s)

Prints a warning message.

Definition at line 384 of file pyne.cc.

◆ xrays()

std::vector< std::pair< double, double > > pyne::xrays ( int parent)

Definition at line 10355 of file pyne.cc.

Variable Documentation

◆ alpha_data

std::map< std::pair< int, double >, pyne::alpha > pyne::alpha_data
extern

A vector of structs containing alpha data for access in memory.

Definition at line 10005 of file pyne.cc.

◆ alphabet

std::string pyne::alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
static

uppercase alphabetical characters

Definition at line 129 of file pyne.h.

◆ atomic_data_map

std::map< int, pyne::atomic > pyne::atomic_data_map
extern

Definition at line 9199 of file pyne.cc.

◆ atomic_mass_error_map

std::map<int, double> pyne::atomic_mass_error_map
extern

Mapping from nuclides in id form to the associated error in abdundance.

◆ atomic_mass_map

std::map< int, double > pyne::atomic_mass_map = std::map<int, double>()
extern

Mapping from nuclides in id form to their atomic masses.

Definition at line 1761 of file pyne.h.

◆ b_coherent_map

std::map< int, xd_complex_t > pyne::b_coherent_map
extern
Initial value:
=
std::map<int, xd_complex_t>()

Mapping from nuclides in id form to their coherent scattering length.

Definition at line 8621 of file pyne.cc.

◆ b_incoherent_map

std::map< int, xd_complex_t > pyne::b_incoherent_map
extern
Initial value:
=
std::map<int, xd_complex_t>()

Mapping from nuclides in id form to their incoherent scattering length.

Definition at line 8623 of file pyne.cc.

◆ b_map

std::map< int, double > pyne::b_map = std::map<int, double>()
extern

Mapping from nuclides in id form to their scattering length.

Definition at line 8625 of file pyne.cc.

◆ barns_per_cm2

const double pyne::barns_per_cm2 = 1e24
extern

barns per cm^2

Definition at line 8019 of file pyne.cc.

◆ beta_data

std::map< std::pair< int, double >, pyne::beta > pyne::beta_data
extern

A vector of structs containing beta data for access in memory.

Definition at line 10076 of file pyne.cc.

◆ Bq_per_Ci

const double pyne::Bq_per_Ci = 3.7e10
extern

Becquerel per Curie.

Definition at line 8024 of file pyne.cc.

◆ Ci_per_Bq

const double pyne::Ci_per_Bq = 2.7027027e-11
extern

Curies per Becquerel.

Definition at line 8025 of file pyne.cc.

◆ cm2_per_barn

const double pyne::cm2_per_barn = 1e-24
extern

cm^2 per barn

Definition at line 8020 of file pyne.cc.

◆ data_checksums

std::map< std::string, std::string > pyne::data_checksums
extern
Initial value:
=
std::map< std::string, std::string > get_data_checksums()
Definition pyne.cc:8031

Mapping from nodes in nuc_data.h5 to hashes of nodes.

Definition at line 8044 of file pyne.cc.

◆ decay_data

std::map< std::pair< int, int >, pyne::decay > pyne::decay_data
extern
Initial value:
=
std::map<std::pair<int, int>, pyne::decay>()
a struct matching the '/decay/decays' table in nuc_data.h5.
Definition pyne.h:2192

Mapping from a pair of nuclides in id form to a struct containing data associated with the decay from the first to the second.

Definition at line 9619 of file pyne.cc.

◆ digits

std::string pyne::digits = "0123456789"
static

string of digit characters

Definition at line 127 of file pyne.h.

◆ doe_dose_map

std::map< int, pyne::dose > pyne::doe_dose_map
extern

Definition at line 8443 of file pyne.cc.

◆ ecbp_data

std::map< std::pair< int, double >, pyne::ecbp > pyne::ecbp_data
extern

A vector of structs containing ecbp data for access in memory.

Definition at line 10155 of file pyne.cc.

◆ endftod

double(* pyne::endftod)(char *s) ( char * s) = &pyne::endftod_f
extern

endftod function pointer. defaults to fortran

Definition at line 205 of file pyne.cc.

◆ epa_dose_map

std::map< int, pyne::dose > pyne::epa_dose_map
extern

Mapping from int to dose for 3 sources.

Definition at line 8442 of file pyne.cc.

◆ FLUKA_MAT_NUM

int pyne::FLUKA_MAT_NUM = 37
static

Definition at line 4572 of file pyne.h.

◆ fluka_mat_strings

std::string pyne::fluka_mat_strings[]
static
Initial value:
= {
"BLCKHOLE", "VACUUM", "HYDROGEN", "HELIUM", "BERYLLIU", "CARBON",
"NITROGEN", "OXYGEN", "MAGNESIU", "ALUMINUM", "IRON", "COPPER",
"SILVER", "SILICON", "GOLD", "MERCURY", "LEAD", "TANTALUM",
"SODIUM", "ARGON", "CALCIUM", "TIN", "TUNGSTEN", "TITANIUM",
"NICKEL", "WATER", "POLYSTYR", "PLASCINT", "PMMA", "BONECOMP",
"BONECORT", "MUSCLESK", "MUSCLEST", "ADTISSUE", "KAPTON", "POLYETHY",
"AIR"}

Definition at line 4563 of file pyne.h.

◆ gamma_data

std::map< std::pair< int, double >, pyne::gamma > pyne::gamma_data
extern

Definition at line 9765 of file pyne.cc.

◆ gamma_frac_map

std::map< int, double > pyne::gamma_frac_map = std::map<int, double>()
extern

Definition at line 8296 of file pyne.cc.

◆ genii_dose_map

std::map< int, pyne::dose > pyne::genii_dose_map
extern

Definition at line 8444 of file pyne.cc.

◆ level_data_lvl_map

std::map< std::pair< int, double >, pyne::level_data > pyne::level_data_lvl_map
extern

Mapping from nuclides in id form to a struct containing data associated with that level.

Definition at line 9338 of file pyne.cc.

◆ level_data_rx_map

std::map< std::pair< int, unsigned int >, pyne::level_data > pyne::level_data_rx_map
extern

Definition at line 9340 of file pyne.cc.

◆ MeV_per_K

const double pyne::MeV_per_K = 8.617343e-11
extern

MeV per Kelvin.

Definition at line 8022 of file pyne.cc.

◆ MeV_per_MJ

const double pyne::MeV_per_MJ = 6.2415096471204E+18
extern

MeV per MJ.

Definition at line 8023 of file pyne.cc.

◆ N_A

const double pyne::N_A = 6.0221415e+23
extern

Avogadro's Number.

Definition at line 8018 of file pyne.cc.

◆ natural_abund_map

std::map< int, double > pyne::natural_abund_map = std::map<int, double>()
extern

Mapping from nuclides in id form to their natural abundances.

Definition at line 1796 of file pyne.h.

◆ ndsfpy_data

std::map< std::pair< int, int >, pyne::ndsfpysub > pyne::ndsfpy_data
extern
Initial value:
=
std::map<std::pair<int, int>, pyne::ndsfpysub>()
a struct for the nds data for fpyield
Definition pyne.h:1981

Definition at line 8902 of file pyne.cc.

◆ NUC_DATA_PATH

std::string pyne::NUC_DATA_PATH = ""
extern

Path to the nuc_data.h5 file.

Definition at line 1752 of file pyne.h.

◆ pi

const double pyne::pi = 3.14159265359
extern

pi = 3.14159265359

Definition at line 8017 of file pyne.cc.

◆ PYNE_DATA

std::string pyne::PYNE_DATA = ""
extern

Path to the directory containing the PyNE data.

Definition at line 80 of file pyne.cc.

◆ q_val_map

std::map< int, double > pyne::q_val_map = std::map<int, double>()
extern

Mapping from nuclides in id form to their q_values and the fraction of Q that comes from gammas.

Definition at line 8254 of file pyne.cc.

◆ sec_per_day

const double pyne::sec_per_day = 24.0 * 3600.0
extern

seconds per day

Definition at line 8021 of file pyne.cc.

◆ simple_xs_map

std::map< std::string, std::map< int, std::map< int, double > > > pyne::simple_xs_map
extern

map<energy, map<nuclide, map<rx, xs> > >

Definition at line 10454 of file pyne.cc.

◆ USE_WARNINGS

bool pyne::USE_WARNINGS = true
extern

Definition at line 377 of file pyne.cc.

◆ wimsdfpy_data

std::map< std::pair< int, int >, double > pyne::wimsdfpy_data
extern
Initial value:
=
std::map<std::pair<int, int>, double>()

Mapping from nuclides in id form to their scattering length.

Definition at line 8852 of file pyne.cc.

◆ words

std::string pyne::words
static
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_"

string of all valid word characters for variable names in programing languages.

Definition at line 132 of file pyne.h.