CLASS
5.1
Fuel Cycle Simulator
|
Allows to store & operate on radioactive sample. More...
#include <IsotopicVector.hxx>
Public Types | |
typedef std::map< ZAI, double >::const_iterator | const_iterator |
typedef std::map< ZAI, double >::iterator | iterator |
Public Member Functions | |
Constructor/Desctructor | |
IsotopicVector () | |
Normal Constructor. More... | |
IsotopicVector (IsotopicVector const &IVa) | |
Copy Constructor. More... | |
~IsotopicVector () | |
Normal Destructor. More... | |
Internal Operator | |
IsotopicVector & | operator+= (IsotopicVector const &IVb) |
Operator += definition. More... | |
IsotopicVector & | operator-= (IsotopicVector const &IVb) |
Operator -= definition. More... | |
IsotopicVector & | operator*= (IsotopicVector const &IVb) |
Operator *= definition. More... | |
IsotopicVector & | operator*= (double const &factor) |
Operator *= definition (scalar) More... | |
bool | operator< (const IsotopicVector &isotopicvector) const |
IsotopicVector Comparator. More... | |
Get Method | |
map< ZAI, double > | GetIsotopicQuantity () const |
Return the IsotopicVector as a map. More... | |
map< ZAI, double > | GetIsotopicQuantityNeeded () const |
Return the needed IsotopicVector as a map. More... | |
IsotopicVector | GetSpeciesComposition (int z) const |
Return the Species composition of the "z" atom. More... | |
IsotopicVector | GetThisComposition (IsotopicVector IV) const |
Return the composition according the IV list... More... | |
IsotopicVector | GetThisChemicalComposition (IsotopicVector IV) const |
Return the composition according the IV list... More... | |
vector< ZAI > | GetZAIList () const |
Return the list of ZAI present in the IV. More... | |
IsotopicVector | GetActinidesComposition () const |
Return the Actinides composition (Z >= 89) More... | |
double | GetZAIIsotopicQuantity (const ZAI &zai) const |
Return the quantity of the ZAI. More... | |
double | GetZAIIsotopicQuantity (const int z, const int a, const int i) const |
Return the quantity of the ZAI. More... | |
double | GetQuantity (const int z, const int a, const int i) const |
double | GetQuantity (const ZAI &zai) const |
void | Initiatlize (double val) |
double | GetTotalMass () const |
Return the mass (in tons) of the isotopic vector. More... | |
double | GetMeanMolarMass () const |
vector< int > | GetChemicalSpecies () const |
Return the list of chemichal species contained. More... | |
int | GetZAIQuantity () const |
Return the number of different ZAI in the IsotopicVector. More... | |
double | GetSumOfAll () const |
Return the Sum of nuclei in the IsotopicVector. More... | |
iterator | begin () |
Return an iterator on the begin of fIsotopicQuantity. More... | |
const_iterator | begin () const |
Return a constant iterator on the begin of fIsotopicQuantity. More... | |
iterator | end () |
Return an iterator on the end of fIsotopicQuantity. More... | |
const_iterator | end () const |
Return a constant iterator on the end of fIsotopicQuantity. More... | |
iterator | find (const ZAI &zai) |
const_iterator | find (const ZAI &zai) const |
Internal Operation Method | |
void | Clear () |
Empty all the IV. More... | |
void | ClearNeed () |
Empty Need componant of the IV. More... | |
void | Add (const ZAI &zai, double quantity) |
Add Quantity gramme of the ZAI Element. More... | |
void | Add (const IsotopicVector &isotopicvector) |
Add IsotopicVector to the existing IsotopicVector. More... | |
void | Add (const map< ZAI, double > &quantity) |
Add IsotopicVector to the existing IsotopicVector. More... | |
void | Add (int Z, int A, int I, double quantity) |
Add Quantity gramme of the ZAI Element. More... | |
void | Add (const pair< ZAI, double > &zaiQ) |
void | Need (const ZAI &zai, double quantity) |
Fill the fIsotopicQuantityNeeded. More... | |
void | Need (const IsotopicVector &isotopicvector) |
Fill the fIsotopicQuantityNeeded. More... | |
void | Need (const map< ZAI, double > &quantityneeded) |
Fill the fIsotopicQuantityNeeded. More... | |
void | Remove (const ZAI &zai, double quantity) |
Remove Quantity gramme of the ZAI Element. More... | |
void | Remove (const IsotopicVector &isotopicvector) |
Remove IsotopicVector to the existing IsotopicVector. More... | |
void | Remove (const pair< ZAI, double > &zaiQ) |
void | Multiply (double factor) |
Multiply the IV by a Factor. More... | |
void | ApplyZAIThreshold (int z=90) |
Put all nuclei below the threshold in -2 -2 -2 ZAI... More... | |
In/Out Method | |
void | Write (string filename, cSecond time=-1) const |
Write the Content of the IV in the filename file. More... | |
void | Print (string o=" ") const |
Print the composition of the IV in terminal. More... | |
string | sPrint () const |
Print the composition of the IV in a string. More... | |
void | PrintList (string o=" ") const |
Print the composition of the IV. More... | |
Protected Member Functions | |
ClassDef (IsotopicVector, 1) | |
Protected Attributes | |
map< ZAI,double > | fIsotopicQuantity |
Isotopic vector composition in atomes Number. More... | |
map< ZAI,double > | fIsotopicQuantityNeeded |
map where negative value are saved More... | |
Allows to store & operate on radioactive sample.
Defines an Isotopicvector. An isotopicVector is a map of ZAI and double (e.g number of atoms). Its aim is to define a radioactive sample.
typedef std::map<ZAI,double>::const_iterator IsotopicVector::const_iterator |
typedef std::map<ZAI,double>::iterator IsotopicVector::iterator |
IsotopicVector::IsotopicVector | ( | ) |
Normal Constructor.
IsotopicVector::IsotopicVector | ( | IsotopicVector const & | IVa | ) |
Copy Constructor.
IsotopicVector::~IsotopicVector | ( | ) |
Normal Destructor.
void IsotopicVector::Add | ( | const ZAI & | zai, |
double | quantity | ||
) |
Add Quantity gramme of the ZAI Element.
void IsotopicVector::Add | ( | const IsotopicVector & | isotopicvector | ) |
Add IsotopicVector to the existing IsotopicVector.
void IsotopicVector::Add | ( | const map< ZAI, double > & | quantity | ) |
Add IsotopicVector to the existing IsotopicVector.
|
inline |
Add Quantity gramme of the ZAI Element.
|
inline |
void IsotopicVector::ApplyZAIThreshold | ( | int | z = 90 | ) |
Put all nuclei below the threshold in -2 -2 -2 ZAI...
|
inline |
Return an iterator on the begin of fIsotopicQuantity.
|
inline |
Return a constant iterator on the begin of fIsotopicQuantity.
|
protected |
void IsotopicVector::Clear | ( | ) |
Empty all the IV.
void IsotopicVector::ClearNeed | ( | ) |
Empty Need componant of the IV.
|
inline |
Return an iterator on the end of fIsotopicQuantity.
|
inline |
Return a constant iterator on the end of fIsotopicQuantity.
|
inline |
IsotopicVector IsotopicVector::GetActinidesComposition | ( | ) | const |
Return the Actinides composition (Z >= 89)
vector< int > IsotopicVector::GetChemicalSpecies | ( | ) | const |
Return the list of chemichal species contained.
|
inline |
Return the IsotopicVector as a map.
|
inline |
Return the needed IsotopicVector as a map.
double IsotopicVector::GetMeanMolarMass | ( | ) | const |
|
inline |
|
inline |
IsotopicVector IsotopicVector::GetSpeciesComposition | ( | int | z | ) | const |
Return the Species composition of the "z" atom.
double IsotopicVector::GetSumOfAll | ( | ) | const |
Return the Sum of nuclei in the IsotopicVector.
IsotopicVector IsotopicVector::GetThisChemicalComposition | ( | IsotopicVector | IV | ) | const |
Return the composition according the IV list...
IsotopicVector IsotopicVector::GetThisComposition | ( | IsotopicVector | IV | ) | const |
Return the composition according the IV list...
double IsotopicVector::GetTotalMass | ( | ) | const |
Return the mass (in tons) of the isotopic vector.
double IsotopicVector::GetZAIIsotopicQuantity | ( | const ZAI & | zai | ) | const |
Return the quantity of the ZAI.
double IsotopicVector::GetZAIIsotopicQuantity | ( | const int | z, |
const int | a, | ||
const int | i | ||
) | const |
Return the quantity of the ZAI.
|
inline |
Return the number of different ZAI in the IsotopicVector.
void IsotopicVector::Initiatlize | ( | double | val | ) |
void IsotopicVector::Multiply | ( | double | factor | ) |
Multiply the IV by a Factor.
void IsotopicVector::Need | ( | const ZAI & | zai, |
double | quantity | ||
) |
Fill the fIsotopicQuantityNeeded.
void IsotopicVector::Need | ( | const IsotopicVector & | isotopicvector | ) |
Fill the fIsotopicQuantityNeeded.
|
inline |
Fill the fIsotopicQuantityNeeded.
IsotopicVector & IsotopicVector::operator*= | ( | IsotopicVector const & | IVb | ) |
Operator *= definition.
IsotopicVector & IsotopicVector::operator*= | ( | double const & | factor | ) |
Operator *= definition (scalar)
IsotopicVector & IsotopicVector::operator+= | ( | IsotopicVector const & | IVb | ) |
Operator += definition.
IsotopicVector & IsotopicVector::operator-= | ( | IsotopicVector const & | IVb | ) |
Operator -= definition.
bool IsotopicVector::operator< | ( | const IsotopicVector & | isotopicvector | ) | const |
IsotopicVector Comparator.
void IsotopicVector::Print | ( | string | o = " " | ) | const |
Print the composition of the IV in terminal.
void IsotopicVector::PrintList | ( | string | o = " " | ) | const |
Print the composition of the IV.
void IsotopicVector::Remove | ( | const ZAI & | zai, |
double | quantity | ||
) |
Remove Quantity gramme of the ZAI Element.
void IsotopicVector::Remove | ( | const IsotopicVector & | isotopicvector | ) |
Remove IsotopicVector to the existing IsotopicVector.
|
inline |
string IsotopicVector::sPrint | ( | ) | const |
Print the composition of the IV in a string.
void IsotopicVector::Write | ( | string | filename, |
cSecond | time = -1 |
||
) | const |
Write the Content of the IV in the filename file.
|
protected |
Isotopic vector composition in atomes Number.
|
protected |
map where negative value are saved