IdealSolnGasVPSS.cpp Source File#
IdealSolnGasVPSS.cpp
Go to the documentation of this file.
Definition file for a derived class of ThermoPhase that assumes an ideal solution approximation and h...
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
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
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
double enthalpy_mole() const override
Molar enthalpy. Units: J/kmol.
Definition IdealSolnGasVPSS.cpp:44
void getPartialMolarEnthalpies(double *hbar) const override
Returns an array of partial molar enthalpies for the species in the mixture.
Definition IdealSolnGasVPSS.cpp:144
void getChemPotentials(double *mu) const override
Get the species chemical potentials. Units: J/kmol.
Definition IdealSolnGasVPSS.cpp:135
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
Definition IdealSolnGasVPSS.cpp:223
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition IdealSolnGasVPSS.cpp:215
IdealSolnGasVPSS(const string &infile="", string id="")
Create an object from an input file.
Definition IdealSolnGasVPSS.cpp:21
void getActivityConcentrations(double *c) const override
This method returns an array of generalized concentrations.
Definition IdealSolnGasVPSS.cpp:90
void setPressure(double p) override
Set the internally stored pressure (Pa) at constant temperature and composition.
Definition IdealSolnGasVPSS.cpp:67
void getPartialMolarVolumes(double *vbar) const override
Return an array of partial molar volumes for the species in the mixture.
Definition IdealSolnGasVPSS.cpp:172
double cv_mole() const override
Molar heat capacity at constant volume. Units: J/kmol/K.
Definition IdealSolnGasVPSS.cpp:62
void setStandardConcentrationModel(const string &model)
Set the standard concentration model.
Definition IdealSolnGasVPSS.cpp:26
double entropy_mole() const override
Molar entropy. Units: J/kmol/K.
Definition IdealSolnGasVPSS.cpp:50
void calcDensity() override
Calculate the density of the mixture using the partial molar volumes and mole fractions as input.
Definition IdealSolnGasVPSS.cpp:74
void setToEquilState(const double *lambda_RT) override
This method is used by the ChemEquil equilibrium solver.
Definition IdealSolnGasVPSS.cpp:177
void getPartialMolarIntEnergies(double *ubar) const override
Return an array of partial molar internal energies for the species in the mixture.
Definition IdealSolnGasVPSS.cpp:160
double cp_mole() const override
Molar heat capacity at constant pressure. Units: J/kmol/K.
Definition IdealSolnGasVPSS.cpp:56
Units standardConcentrationUnits() const override
Returns the units of the "standard concentration" for this phase.
Definition IdealSolnGasVPSS.cpp:81
void getPartialMolarCp(double *cpbar) const override
Return an array of partial molar heat capacities for the species in the mixture.
Definition IdealSolnGasVPSS.cpp:166
double standardConcentration(size_t k=0) const override
Returns the standard concentration , which is used to normalize the generalized concentration.
Definition IdealSolnGasVPSS.cpp:112
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition IdealSolnGasVPSS.cpp:206
void getActivityCoefficients(double *ac) const override
Get the array of non-dimensional molar-based activity coefficients at the current solution temperatur...
Definition IdealSolnGasVPSS.cpp:126
void getPartialMolarEntropies(double *sbar) const override
Returns an array of partial molar entropies of the species in the solution.
Definition IdealSolnGasVPSS.cpp:150
void assignDensity(const double density_)
Set the internally stored constant density (kg/m^3) of the phase.
Definition Phase.cpp:597
virtual void setMoleFractions(const double *const x)
Set the mole fractions to the specified values.
Definition Phase.cpp:289
double moleFraction(size_t k) const
Return the mole fraction of a single species.
Definition Phase.cpp:439
double mean_X(const double *const Q) const
Evaluate the mole-fraction-weighted mean of an array Q.
Definition Phase.cpp:616
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
void initThermoFile(const string &inputFile, const string &id)
Initialize a ThermoPhase object using an input file.
Definition ThermoPhase.cpp:995
A representation of the units associated with a dimensional quantity.
Definition Units.h:35
vector< double > m_g0_RT
Vector containing the species reference Gibbs functions at T = m_tlast and P = p_ref.
Definition VPStandardStateTP.h:269
vector< double > m_sss_R
Vector containing the species Standard State entropies at T = m_tlast and P = m_plast.
Definition VPStandardStateTP.h:292
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 VPStandardStateTP.cpp:52
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 VPStandardStateTP.cpp:38
void getCp_R(double *cpr) const override
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
Definition VPStandardStateTP.cpp:80
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition VPStandardStateTP.cpp:142
void getEnthalpy_RT(double *hrt) const override
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
Definition VPStandardStateTP.cpp:46
vector< double > m_cpss_R
Vector containing the species Standard State constant pressure heat capacities at T = m_tlast and P =...
Definition VPStandardStateTP.h:284
void getStandardVolumes(double *vol) const override
Get the molar volumes of the species standard states at the current T and P of the solution.
Definition VPStandardStateTP.cpp:86
void getIntEnergy_RT(double *urt) const override
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
Definition VPStandardStateTP.cpp:71
virtual void updateStandardStateThermo() const
Updates the standard state thermodynamic functions at the current T and P of the solution.
Definition VPStandardStateTP.cpp:285
vector< double > m_hss_RT
Vector containing the species Standard State enthalpies at T = m_tlast and P = m_plast.
Definition VPStandardStateTP.h:280
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition VPStandardStateTP.cpp:164
bool caseInsensitiveEquals(const string &input, const string &test)
Case insensitive equality predicate.
Definition stringUtils.cpp:223
void scale(InputIter begin, InputIter end, OutputIter out, S scale_factor)
Multiply elements of an array by a scale factor.
Definition utilities.h:104
Contains declarations for string manipulation functions within Cantera.
Various templated functions that carry out common vector and polynomial operations (see Templated Arr...
Generated by 1.9.7