13#ifndef CT_IDEALSOLIDSOLNPHASE_H
14#define CT_IDEALSOLIDSOLNPHASE_H
58 string type()
const override {
59 return "ideal-condensed";
117 double cp_mole()
const override;
422 void getCp_R(span<double> cpr)
const override;
435 void getCp_R_ref(span<double> cprt)
const override;
441 bool addSpecies(shared_ptr<Species> spec)
override;
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
A map of string keys to values whose type can vary at runtime.
Class IdealSolidSolnPhase represents a condensed phase ideal solution compound.
void getGibbs_ref(span< double > g) const override
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
void getCp_R(span< double > cpr) const override
Get the nondimensional heat capacity at constant pressure function for the species standard states at...
bool isIdeal() const override
Boolean indicating whether phase is ideal.
void getStandardChemPotentials(span< double > mu0) const override
Get the standard state chemical potentials of the species.
void getEntropy_R_ref(span< double > er) const override
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
void getPartialMolarEnthalpies(span< double > hbar) const override
Returns an array of partial molar enthalpies for the species in the mixture.
double pressure() const override
Pressure.
vector< double > m_g0_RT
Vector containing the species reference Gibbs functions at T = m_tlast.
void getIntEnergy_RT(span< double > urt) const override
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
bool isCompressible() const override
Return whether phase represents a compressible substance.
void getSpeciesParameters(const string &name, AnyMap &speciesNode) const override
Get phase-specific parameters of a Species object such that an identical one could be reconstructed a...
vector< double > m_h0_RT
Vector containing the species reference enthalpies at T = m_tlast.
double speciesMolarVolume(int k) const
Report the molar volume of species k.
void getPartialMolarCp(span< double > cpbar) const override
Returns an array of partial molar Heat Capacities at constant pressure of the species in the solution...
vector< double > m_pp
Temporary array used in equilibrium calculations.
double m_Pref
Value of the reference pressure for all species in this phase.
span< const double > enthalpy_RT_ref() const
Returns a reference to the vector of nondimensional enthalpies of the reference state at the current ...
void getActivityCoefficients(span< double > ac) const override
Get the array of species activity coefficients.
void getGibbs_RT(span< double > grt) const override
Get the nondimensional Gibbs function for the species standard states at the current T and P of the s...
void getCp_R_ref(span< double > cprt) const override
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
string type() const override
String indicating the thermodynamic model implemented.
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
void setPressure(double p) override
Set the pressure at constant temperature.
void getIntEnergy_RT_ref(span< double > urt) const override
Returns the vector of nondimensional internal Energies of the reference state at the current temperat...
void getEnthalpy_RT_ref(span< double > hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
double cv_mole() const override
Molar heat capacity of the solution at constant volume and composition [J/kmol/K].
void getEnthalpy_RT(span< double > hrt) const override
Get the array of nondimensional Enthalpy functions for the standard state species at the current T an...
double standardConcentration(size_t k) const override
The standard concentration used to normalize the generalized concentration.
void setStandardConcentrationModel(const string &model)
Set the form for the standard and generalized concentrations.
void setToEquilState(span< const double > mu_RT) override
This method is used by the ChemEquil equilibrium solver.
void getEntropy_R(span< double > sr) const override
Get the nondimensional Entropies for the species standard states at the current T and P of the soluti...
vector< double > m_s0_R
Vector containing the species reference entropies at T = m_tlast.
double entropy_mole() const override
Molar entropy of the solution.
int m_formGC
The standard concentrations can have one of three different forms: 0 = 'unity', 1 = 'species-molar-vo...
vector< double > m_speciesMolarVolume
Vector of molar volumes for each species in the solution.
void getGibbs_RT_ref(span< double > grt) const override
Returns the vector of nondimensional Gibbs Free Energies of the reference state at the current temper...
span< const double > cp_R_ref() const
Returns a reference to the vector of nondimensional enthalpies of the reference state at the current ...
double cp_mole() const override
Molar heat capacity of the solution at at constant pressure and composition [J/kmol/K].
span< const double > entropy_R_ref() const
Returns a reference to the vector of nondimensional enthalpies of the reference state at the current ...
void getSpeciesMolarVolumes(span< double > smv) const
Fill in a return vector containing the species molar volumes.
void getPartialMolarVolumes(span< double > vbar) const override
returns an array of partial molar volumes of the species in the solution.
Units standardConcentrationUnits() const override
Returns the units of the "standard concentration" for this phase.
void getStandardVolumes(span< double > vol) const override
Get the molar volumes of the species standard states at the current T and P of the solution.
void compositionChanged() override
Apply changes to the state which are needed after the composition changes.
void getPartialMolarEntropies(span< double > sbar) const override
Returns an array of partial molar entropies of the species in the solution.
double gibbs_mole() const override
Molar Gibbs free energy of the solution.
vector< double > m_cp0_R
Vector containing the species reference constant pressure heat capacities at T = m_tlast.
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
span< const double > gibbs_RT_ref() const
Returns a reference to the vector of nondimensional enthalpies of the reference state at the current ...
virtual void _updateThermo() const
This function gets called for every call to functions in this class.
void getChemPotentials(span< double > mu) const override
Get the species chemical potentials.
void getActivityConcentrations(span< double > c) const override
This method returns the array of generalized concentrations.
vector< double > m_expg0_RT
Vector containing the species reference exp(-G/RT) functions at T = m_tlast.
double m_Pcurrent
m_Pcurrent = The current pressure Since the density isn't a function of pressure, but only of the mol...
virtual void calcDensity()
Calculate the density of the mixture using the partial molar volumes and mole fractions as input.
string name() const
Return the name of the phase.
Base class for a phase with thermodynamic properties.
A representation of the units associated with a dimensional quantity.
const double OneAtm
One atmosphere [Pa].
Namespace for the Cantera kernel.