PlasmaPhase.h Source File#
PlasmaPhase.h
Go to the documentation of this file.
ThermoPhase object for the ideal gas equation of state - workhorse for Cantera (see Thermodynamic Pro...
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
Class IdealGasPhase represents low-density gases that obey the ideal gas equation of state.
Definition IdealGasPhase.h:250
An error indicating that an unimplemented function has been called.
Definition ctexceptions.h:195
virtual double concentration(const size_t k) const
Concentration of species k.
Definition Phase.cpp:476
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 setQuadratureMethod(const string &method)
Set numerical quadrature method for integrating electron energy distribution function.
Definition PlasmaPhase.h:143
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
string electronEnergyDistributionType() const
Get electron energy distribution type.
Definition PlasmaPhase.h:129
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
string quadratureMethod() const
Numerical quadrature method. Method: m_quadratureMethod.
Definition PlasmaPhase.h:137
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
void getElectronEnergyDistribution(double *distrb) const
Get electron energy distribution.
Definition PlasmaPhase.h:105
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
double intEnergy_mole() const override
Molar internal energy. Units: J/kmol.
Definition PlasmaPhase.h:225
bool m_do_normalizeElectronEnergyDist
Flag of normalizing electron energy distribution.
Definition PlasmaPhase.h:314
bool normalizeElectronEnergyDistEnabled() const
Flag of automatically normalize electron energy distribution.
Definition PlasmaPhase.h:160
void getPartialMolarIntEnergies(double *ubar) const override
Return an array of partial molar internal energies for the species in the mixture.
Definition PlasmaPhase.cpp:299
double cp_mole() const override
Molar heat capacity at constant pressure.
Definition PlasmaPhase.h:213
void setIsotropicElectronEnergyDistribution()
Set isotropic electron energy distribution.
Definition PlasmaPhase.cpp:58
double isotropicShapeFactor() const
The shape factor of isotropic electron energy distribution.
Definition PlasmaPhase.h:116
void getElectronEnergyLevels(double *levels) const
Get electron energy levels.
Definition PlasmaPhase.h:88
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
Generated by