antioch-0.4.0
|
Class to encapsulate data for each chemical species. More...
#include <chemical_species.h>
Public Member Functions | |
ChemicalSpecies (const std::string &name, const CoeffType mol_wght, const CoeffType h_form, const CoeffType n_tr_dofs, const int charge) | |
Constrctor. More... | |
ChemicalSpecies () | |
Default constructor. More... | |
~ChemicalSpecies () | |
Destructor. More... | |
const std::string & | species () const |
Returns a descriptive name for this species. More... | |
CoeffType | molar_mass () const |
Returns the molar mass in (kg/mol) More... | |
CoeffType | gas_constant () const |
Returns the species ideal gas constant in [J/kg-K]. More... | |
CoeffType | formation_enthalpy () const |
Returns formation enthalpy in units of [J/kg]. More... | |
CoeffType | n_tr_dofs () const |
Returns number of translational degrees of freedom. More... | |
int | charge () const |
Returns electrical charge number. More... | |
bool | has_vibrational_modes () const |
Returns true if the chemical species has vibrational degrees. More... | |
unsigned int | n_vibrational_modes () const |
Returns true if the chemical species has vibrational degrees of freedom. More... | |
const std::vector< CoeffType > & | theta_v () const |
Characteristic vibrational temperature [K]. More... | |
const std::vector< unsigned int > & | ndg_v () const |
Degeneracies for each vibrational mode. More... | |
const std::vector< CoeffType > & | theta_e () const |
Characteristic electronic excitation temperatures [K]. More... | |
const std::vector< unsigned int > & | ndg_e () const |
Degeneracies for each electronic modes. More... | |
void | add_vibrational_data (const CoeffType theta_v, const CoeffType ndg_v) |
Supply vibrational data. More... | |
void | add_electronic_data (const CoeffType theta_e, const CoeffType ndg_e) |
Supply electronic data. More... | |
void | print (std::ostream &os=std::cout) const |
Formatted print. More... | |
Protected Attributes | |
const std::string | _name |
Name of chemical species. More... | |
const CoeffType | _mol_wght |
Molecular weight (or molar mass) in units of [kg/mol]. More... | |
const CoeffType | _R |
Gas constant in units of [J/kg-K]. More... | |
const CoeffType | _h_form |
Formation enthalpy in units of [J/kg]. More... | |
const CoeffType | _n_tr_dofs |
Number of translational degrees of freedom. More... | |
const int | _charge |
Electrical charge number. More... | |
std::vector< CoeffType > | _theta_v |
Characteristic vibrational temperature in units of [K]. More... | |
std::vector< unsigned int > | _ndg_v |
Degeneracies for each vibrational mode. More... | |
std::vector< CoeffType > | _theta_e |
Characteristic electronic temperature in units of [K]. More... | |
std::vector< unsigned int > | _ndg_e |
Degeneracies for each electronic mode. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ChemicalSpecies< CoeffType > &species) |
Formatted print. More... | |
Class to encapsulate data for each chemical species.
This class is designed to store information relevant to a chemical species. All the data stored is constant for each species, so we store const for each variable. The idea is that this will be placed inside ChemicalMixture, which will be a singleton. This is stolen from the FIN-S class SpeciesChemistry.
Definition at line 54 of file chemical_species.h.
|
inline |
Constrctor.
Definition at line 268 of file chemical_species.h.
|
inline |
Default constructor.
This is technically required for any std::map value type (or operator[] breaks, at least). But, we never actually want to create a SpeciesChemistry implicitly, so we throw an error if this is ever used.
Definition at line 286 of file chemical_species.h.
References antioch_error.
|
inline |
|
inline |
Supply electronic data.
Definition at line 259 of file chemical_species.h.
|
inline |
Supply vibrational data.
Definition at line 250 of file chemical_species.h.
|
inline |
Returns electrical charge number.
Definition at line 211 of file chemical_species.h.
Referenced by test_species().
|
inline |
Returns formation enthalpy in units of [J/kg].
Definition at line 201 of file chemical_species.h.
Referenced by Antioch::StatMechThermodynamics< CoeffType >::e_0(), and test_species().
|
inline |
Returns the species ideal gas constant in [J/kg-K].
where is the universal gas constant and is the species molar mass.
Definition at line 196 of file chemical_species.h.
Referenced by Antioch::StatMechThermodynamics< CoeffType >::cv_el(), Antioch::StatMechThermodynamics< CoeffType >::e_el(), Antioch::StatMechThermodynamics< CoeffType >::e_vib(), Antioch::StatMechThermodynamics< CoeffType >::h_tot(), and test_species().
|
inline |
Returns true if the chemical species has vibrational degrees.
Definition at line 216 of file chemical_species.h.
|
inline |
Returns the molar mass in (kg/mol)
Definition at line 191 of file chemical_species.h.
Referenced by test_species().
|
inline |
Returns number of translational degrees of freedom.
Definition at line 206 of file chemical_species.h.
Referenced by test_species().
|
inline |
Returns true if the chemical species has vibrational degrees of freedom.
Definition at line 221 of file chemical_species.h.
References antioch_assert_equal_to.
|
inline |
Degeneracies for each electronic modes.
Definition at line 244 of file chemical_species.h.
Referenced by Antioch::StatMechThermodynamics< CoeffType >::cv_el(), and Antioch::StatMechThermodynamics< CoeffType >::e_el().
|
inline |
Degeneracies for each vibrational mode.
Definition at line 234 of file chemical_species.h.
Referenced by Antioch::StatMechThermodynamics< CoeffType >::cv_vib_over_R(), and Antioch::StatMechThermodynamics< CoeffType >::e_vib().
|
inline |
Formatted print.
Defaults to std::cout
.
Definition at line 309 of file chemical_species.h.
|
inline |
Returns a descriptive name for this species.
Definition at line 186 of file chemical_species.h.
Referenced by test_species().
|
inline |
Characteristic electronic excitation temperatures [K].
Definition at line 239 of file chemical_species.h.
Referenced by Antioch::StatMechThermodynamics< CoeffType >::cv_el(), and Antioch::StatMechThermodynamics< CoeffType >::e_el().
|
inline |
Characteristic vibrational temperature [K].
Definition at line 229 of file chemical_species.h.
Referenced by Antioch::StatMechThermodynamics< CoeffType >::cv_vib_over_R(), and Antioch::StatMechThermodynamics< CoeffType >::e_vib().
|
friend |
Formatted print.
Allows you to do std::cout << object << std::endl;
Definition at line 136 of file chemical_species.h.
|
protected |
Electrical charge number.
Definition at line 161 of file chemical_species.h.
|
protected |
Formation enthalpy in units of [J/kg].
Definition at line 155 of file chemical_species.h.
|
protected |
Molecular weight (or molar mass) in units of [kg/mol].
Definition at line 149 of file chemical_species.h.
|
protected |
Number of translational degrees of freedom.
Definition at line 158 of file chemical_species.h.
|
protected |
Name of chemical species.
Definition at line 146 of file chemical_species.h.
|
protected |
Degeneracies for each electronic mode.
Definition at line 173 of file chemical_species.h.
|
protected |
Degeneracies for each vibrational mode.
Definition at line 167 of file chemical_species.h.
|
protected |
Gas constant in units of [J/kg-K].
Definition at line 152 of file chemical_species.h.
|
protected |
Characteristic electronic temperature in units of [K].
Definition at line 170 of file chemical_species.h.
|
protected |
Characteristic vibrational temperature in units of [K].
Definition at line 164 of file chemical_species.h.