PlasmaPhase.cpp Source File#
PlasmaPhase.cpp
Go to the documentation of this file.
Header file for class PlasmaPhase.
Declaration for class Cantera::Species.
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
bool hasKey(const string &key) const
Returns true if the map contains an item named key.
Definition AnyMap.cpp:1423
double convert(const string &key, const string &units) const
Convert the item stored by the given key to the units specified in units.
Definition AnyMap.cpp:1535
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
const vector< double > & entropy_R_ref() const
Returns a reference to the dimensionless reference state Entropy vector.
Definition IdealGasPhase.h:535
double enthalpy_mole() const override
Return the Molar enthalpy. Units: J/kmol.
Definition IdealGasPhase.h:294
void getPartialMolarEnthalpies(double *hbar) const override
Returns an array of partial molar enthalpies for the species in the mixture.
Definition IdealGasPhase.cpp:78
void getChemPotentials(double *mu) const override
Get the species chemical potentials. Units: J/kmol.
Definition IdealGasPhase.cpp:69
vector< double > m_g0_RT
Temporary storage for dimensionless reference state Gibbs energies.
Definition IdealGasPhase.h:570
vector< double > m_h0_RT
Temporary storage for dimensionless reference state enthalpies.
Definition IdealGasPhase.h:564
void getGibbs_ref(double *g) const override
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
Definition IdealGasPhase.cpp:188
void getStandardChemPotentials(double *mu) const override
Get the array of chemical potentials at unit activity for the species at their standard states at the...
Definition IdealGasPhase.cpp:58
const vector< double > & gibbs_RT_ref() const
Returns a reference to the dimensionless reference state Gibbs free energy vector.
Definition IdealGasPhase.h:525
void getStandardVolumes_ref(double *vol) const override
Get the molar volumes of the species reference states at the current T and P_ref of the solution.
Definition IdealGasPhase.cpp:214
virtual void updateThermo() const
Update the species reference state thermodynamic functions.
Definition IdealGasPhase.cpp:267
vector< double > m_s0_R
Temporary storage for dimensionless reference state entropies.
Definition IdealGasPhase.h:573
vector< double > m_cp0_R
Temporary storage for dimensionless reference state heat capacities.
Definition IdealGasPhase.h:567
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition IdealGasPhase.cpp:222
void getPartialMolarEntropies(double *sbar) const override
Returns an array of partial molar entropies of the species in the solution.
Definition IdealGasPhase.cpp:84
const vector< double > & enthalpy_RT_ref() const
Returns a reference to the dimensionless reference state enthalpy vector.
Definition IdealGasPhase.h:515
virtual void update_single(size_t k, double T, double *cp_R, double *h_RT, double *s_R) const
Get reference-state properties for a single species.
Definition MultiSpeciesThermo.cpp:85
double moleFraction(size_t k) const
Return the mole fraction of a single species.
Definition Phase.cpp:439
void checkElectronEnergyDistribution() const
Check the electron energy distribution.
Definition PlasmaPhase.cpp:103
double enthalpy_mole() const override
Return the Molar enthalpy. Units: J/kmol.
Definition PlasmaPhase.cpp:265
void getPartialMolarEnthalpies(double *hbar) const override
Returns an array of partial molar enthalpies for the species in the mixture.
Definition PlasmaPhase.cpp:285
void getChemPotentials(double *mu) const override
Get the species chemical potentials. Units: J/kmol.
Definition PlasmaPhase.cpp:309
void normalizeElectronEnergyDistribution()
Electron energy distribution norm.
Definition PlasmaPhase.cpp:35
void getStandardChemPotentials(double *muStar) const override
Get the array of chemical potentials at unit activity for the species at their standard states at the...
Definition PlasmaPhase.cpp:317
void updateThermo() const override
Update the species reference state thermodynamic functions.
Definition PlasmaPhase.cpp:245
void setElectronTemperature(double Te) override
Set the internally stored electron temperature of the phase (K).
Definition PlasmaPhase.cpp:74
void getEntropy_R(double *sr) const override
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
Definition PlasmaPhase.cpp:325
void getGibbs_ref(double *g) const override
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
Definition PlasmaPhase.cpp:273
Eigen::ArrayXd m_electronEnergyDist
Normalized electron energy distribution vector [-] Length: m_nPoints.
Definition PlasmaPhase.h:299
Eigen::ArrayXd m_electronEnergyLevels
electron energy levels [ev]. Length: m_nPoints
Definition PlasmaPhase.h:295
void setDiscretizedElectronEnergyDist(const double *levels, const double *distrb, size_t length)
Set discretized electron energy distribution.
Definition PlasmaPhase.cpp:120
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
Definition PlasmaPhase.cpp:152
string type() const override
String indicating the thermodynamic model implemented.
Definition PlasmaPhase.h:74
void checkElectronEnergyLevels() const
Check the electron energy levels.
Definition PlasmaPhase.cpp:92
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition PlasmaPhase.cpp:235
void updateElectronTemperatureFromEnergyDist()
Update electron temperature (K) From energy distribution.
Definition PlasmaPhase.cpp:138
void getStandardVolumes_ref(double *vol) const override
Get the molar volumes of the species reference states at the current T and P_ref of the solution.
Definition PlasmaPhase.cpp:279
void updateElectronEnergyDistribution()
Update electron energy distribution.
Definition PlasmaPhase.cpp:25
string m_quadratureMethod
Numerical quadrature method for electron energy distribution.
Definition PlasmaPhase.h:311
PlasmaPhase(const string &inputFile="", const string &id="")
Construct and initialize a PlasmaPhase object directly from an input file.
Definition PlasmaPhase.cpp:14
double RTe() const
Return the Gas Constant multiplied by the current electron temperature.
Definition PlasmaPhase.h:176
void setElectronEnergyLevels(const double *levels, size_t length)
Set electron energy levels.
Definition PlasmaPhase.cpp:84
void getGibbs_RT(double *grt) const override
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
Definition PlasmaPhase.cpp:339
bool m_do_normalizeElectronEnergyDist
Flag of normalizing electron energy distribution.
Definition PlasmaPhase.h:314
void getPartialMolarIntEnergies(double *ubar) const override
Return an array of partial molar internal energies for the species in the mixture.
Definition PlasmaPhase.cpp:299
void setIsotropicElectronEnergyDistribution()
Set isotropic electron energy distribution.
Definition PlasmaPhase.cpp:58
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition PlasmaPhase.cpp:216
void setParameters(const AnyMap &phaseNode, const AnyMap &rootNode=AnyMap()) override
Set equation of state parameters from an AnyMap phase description.
Definition PlasmaPhase.cpp:172
void setMeanElectronEnergy(double energy)
Set mean electron energy [eV].
Definition PlasmaPhase.cpp:79
void setElectronEnergyDistributionType(const string &type)
Set electron energy distribution type.
Definition PlasmaPhase.cpp:47
void getPartialMolarEntropies(double *sbar) const override
Returns an array of partial molar entropies of the species in the solution.
Definition PlasmaPhase.cpp:291
void setIsotropicShapeFactor(double x)
Set the shape factor of isotropic electron energy distribution.
Definition PlasmaPhase.cpp:147
void enableNormalizeElectronEnergyDist(bool enable)
Set flag of automatically normalize electron energy distribution Flag: m_do_normalizeElectronEnergyDi...
Definition PlasmaPhase.h:154
virtual void setParameters(const AnyMap &phaseNode, const AnyMap &rootNode=AnyMap())
Set equation of state parameters from an AnyMap phase description.
Definition ThermoPhase.cpp:1084
virtual void getParameters(AnyMap &phaseNode) const
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
Definition ThermoPhase.cpp:1099
double RT() const
Return the Gas Constant multiplied by the current temperature.
Definition ThermoPhase.h:1062
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
Definition ThermoPhase.cpp:1016
void initThermoFile(const string &inputFile, const string &id)
Initialize a ThermoPhase object using an input file.
Definition ThermoPhase.cpp:995
MultiSpeciesThermo m_spthermo
Pointer to the calculation manager for species reference-state thermodynamic properties.
Definition ThermoPhase.h:1962
CachedScalar getScalar(int id)
Get a reference to a CachedValue object representing a scalar (double) with the given id.
Definition ValueCache.h:161
Header for a file containing miscellaneous numerical functions.
This file contains definitions for utility functions and text for modules, inputfiles and logging,...
double numericalQuadrature(const string &method, const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function.
Definition funcs.cpp:112
void warn_user(const string &method, const string &msg, const Args &... args)
Print a user warning raised from method as CanteraWarning.
Definition global.h:267
A cached property value and the state at which it was evaluated.
Definition ValueCache.h:33
double state2
Value of the second state variable for the state at which value was evaluated, for example density or...
Definition ValueCache.h:106
double state1
Value of the first state variable for the state at which value was evaluated, for example temperature...
Definition ValueCache.h:102
Generated by 1.9.7