#include <YieldResource.h>

Public Member Functions

 ~YieldParent ()
 
int id () const
 izzzaaa id of More...
 
int num_energies () const
 number of energies More...
 
double energy_at (int index) const
 get a specific energy More...
 
void get_energies (Vec_Dbl *energies) const
 get all energies More...
 
bool has_energy (double energy) const
 check if a specific energy is available More...
 
int energy_index (double energy) const
 get the index to that energy More...
 
YieldDatadata_at (int index)
 get yield set by energy index More...
 
const YieldDatadata_at (int index) const
 get yield set by energy index More...
 
YieldDataadd_data (double energy, const Vec_Int &id, const Vec_Dbl &val, bool append=false)
 add a new yield set (overwrite existing by default) More...
 
bool has_fp (int fp_izzzaaa) const
 this fissionable nuclide has fp id More...
 
int fp_index (int fp_izzzaaa) const
 fission product index (-1 if not found) More...
 
int add_fp (int fp_izzzzaaa)
 add a new fission product (if doesn't already exist) More...
 
int num_fps () const
 number of fission products More...
 
void get_fp_ids (Vec_Int *ids) const
 get all fission product ids More...
 
void get_yields (Vec_Dbl *yields, int energy_index) const
 get yields More...
 
void get_interp_yields (Vec_Dbl *yields, double energy, int interp=INTERP_PREFERRED) const
 interpolate all yields More...
 
double interp_yield (int fp_izzzaaa, double energy, int interp=INTERP_PREFERRED) const
 interpolate a single yield (will return 0.0 if doesn't exist) More...
 
int interp_method () const
 get interpolation method More...
 
void set_interp_method (int method)
 set interpolation method More...
 
void remove_data_at (int index)
 remove a set of yield data More...
 
bool remove_fp (int fp_izzzaaa)
 remove one fp More...
 
void set_fp_ids (const Vec_Int &ids)
 keep only these fp More...
 

Protected Member Functions

 YieldParent (int id)
 
const std::vector< YieldData > & data () const
 get const yield sets More...
 
std::vector< YieldData > * data ()
 get yield sets More...
 
const FPMap_tfp_map () const
 get const fp map More...
 
FPMap_tfp_map ()
 get fp map More...
 

Private Member Functions

 YieldParent ()
 

Private Attributes

int b_interp_method
 
FPMap_t b_fp_map
 
std::vector< YieldDatab_data
 
int b_id
 

Friends

class YieldResource
 

Detailed Description

Constructor & Destructor Documentation

YieldParent ( int  id)
explicitprotected
YieldParent ( )
private

Member Function Documentation

void get_energies ( Vec_Dbl energies) const
bool has_energy ( double  energy) const

check if a specific energy is available

References YieldParent::energy_index().

int energy_index ( double  energy) const

get the index to that energy

Examples:
tstYieldResource.cpp.

References YieldParent::get_energies().

Referenced by YieldParent::add_data(), YieldParent::has_energy(), and TEST().

const YieldData & data_at ( int  index) const

get yield set by energy index

References YieldParent::b_data, and YieldParent::num_energies().

YieldData & add_data ( double  energy,
const Vec_Int id,
const Vec_Dbl val,
bool  append = false 
)
bool has_fp ( int  fp_izzzaaa) const

this fissionable nuclide has fp id

Examples:
tstYieldResource.cpp.

References YieldParent::fp_index().

Referenced by YieldResource::has_fp(), YieldParent::interp_yield(), Origen::test::TEST_F(), and TEST_F().

int add_fp ( int  fp_izzzzaaa)

add a new fission product (if doesn't already exist)

Examples:
tstYieldResource.cpp.

References YieldParent::b_data, YieldParent::b_fp_map, YieldParent::fp_index(), and YieldParent::num_fps().

Referenced by YieldParent::add_data(), and TEST().

void get_yields ( Vec_Dbl yields,
int  energy_index 
) const
double interp_yield ( int  fp_izzzaaa,
double  energy,
int  interp = INTERP_PREFERRED 
) const
int interp_method ( ) const

get interpolation method

References YieldParent::b_interp_method.

Referenced by YieldResource::to_json(), and YieldResourceIO_ampx::write().

void set_interp_method ( int  method)

set interpolation method

References YieldParent::b_interp_method.

void remove_data_at ( int  index)

remove a set of yield data

Examples:
tstYieldResource.cpp.

References YieldParent::b_data, and YieldParent::num_energies().

Referenced by TEST_F().

bool remove_fp ( int  fp_izzzaaa)

remove one fp

Examples:
tstYieldResource.cpp.

References YieldParent::b_data, YieldParent::b_fp_map, and YieldParent::fp_index().

Referenced by TEST_F().

void set_fp_ids ( const Vec_Int ids)
const std::vector< YieldData > & data ( ) const
protected
std::vector< YieldData > * data ( )
protected

get yield sets

References YieldParent::b_data.

FPMap_t & fp_map ( )
protected

get fp map

References YieldParent::b_fp_map.

Friends And Related Function Documentation

friend class YieldResource
friend

Member Data Documentation

int b_interp_method
private
int b_id
private

Referenced by YieldParent::id().


The documentation for this class was generated from the following files: