21 #ifndef CT_IDEALMOLALSOLN_H
22 #define CT_IDEALMOLALSOLN_H
118 IdealMolalSoln(
const std::string& inputFile,
const std::string&
id =
"");
209 virtual doublereal
cp_mole()
const;
215 virtual doublereal
cv_mole()
const;
296 virtual void setState_TP(doublereal t, doublereal p);
389 int sizeUA = 6)
const;
667 doublereal IMS_cCut_;
668 doublereal IMS_dfCut_;
669 doublereal IMS_efCut_;
670 doublereal IMS_afCut_;
671 doublereal IMS_bfCut_;
672 doublereal IMS_dgCut_;
673 doublereal IMS_egCut_;
674 doublereal IMS_agCut_;
675 doublereal IMS_bgCut_;
IdealMolalSoln & operator=(const IdealMolalSoln &)
Assignment operator.
virtual void setToEquilState(const doublereal *lambda_RT)
This method is used by the ChemEquil equilibrium solver.
virtual void setPressure(doublereal p)
Set the pressure at constant temperature.
virtual void setState_TP(doublereal t, doublereal p)
Set the temperature (K) and pressure (Pa)
An error indicating that an unimplemented function has been called.
doublereal IMS_slopefCut_
Parameter in the polyExp cutoff treatment.
double speciesMolarVolume(int k) const
Report the molar volume of species k.
doublereal IMS_slopegCut_
Parameter in the polyExp cutoff treatment.
IdealMolalSoln()
Constructor.
virtual void getPartialMolarVolumes(doublereal *vbar) const
virtual doublereal enthalpy_mole() const
Molar enthalpy of the solution. Units: J/kmol.
virtual void getActivityConcentrations(doublereal *c) const
vector_fp m_tmpV
vector of size m_kk, used as a temporary holding area.
virtual doublereal standardConcentration(size_t k=0) const
The standard concentration used to normalize the generalized concentration.
Class XML_Node is a tree-based representation of the contents of an XML file.
ThermoPhase * duplMyselfAsThermoPhase() const
Duplication function.
doublereal IMS_gamma_k_min_
gamma_k minimum for the cutoff process at the zero solvent point
void setDensity(const doublereal rho)
Overwritten setDensity() function is necessary because the density is not an independent variable...
void initLengths()
This internal function adjusts the lengths of arrays.
void setMolarDensity(const doublereal rho)
Overwritten setMolarDensity() function is necessary because the density is not an independent variabl...
doublereal IMS_gamma_o_min_
gamma_o value for the cutoff process at the zero solvent point
vector_fp m_pp
Temporary array used in equilibrium calculations.
vector_fp m_speciesMolarVolume
Species molar volume .
Header for intermediate ThermoPhase object for phases which employ molality based activity coefficien...
virtual void getPartialMolarEnthalpies(doublereal *hbar) const
Returns an array of partial molar enthalpies for the species in the mixture.
virtual doublereal gibbs_mole() const
Molar Gibbs function for the solution: Units J/kmol.
Base class for a phase with thermodynamic properties.
virtual void getChemPotentials(doublereal *mu) const
Get the species chemical potentials: Units: J/kmol.
virtual void getActivities(doublereal *ac) const
virtual doublereal isothermalCompressibility() const
The isothermal compressibility. Units: 1/Pa.
virtual void getUnitsStandardConc(double *uA, int k=0, int sizeUA=6) const
virtual doublereal cv_mole() const
Molar heat capacity of the solution at constant volume. Units: J/kmol/K.
void s_updateIMS_lnMolalityActCoeff() const
This function will be called to update the internally stored natural logarithm of the molality activi...
virtual void initThermoXML(XML_Node &phaseNode, const std::string &id="")
Import and initialize an IdealMolalSoln phase specification in an XML tree into the current object...
virtual doublereal entropy_mole() const
Molar entropy of the solution. Units: J/kmol/K.
virtual void getPartialMolarEntropies(doublereal *sbar) const
Returns an array of partial molar entropies of the species in the solution. Units: J/kmol...
virtual doublereal cp_mole() const
Molar heat capacity of the solution at constant pressure. Units: J/kmol/K.
void getSpeciesMolarVolumes(double *smv) const
virtual doublereal intEnergy_mole() const
Molar internal energy of the solution: Units: J/kmol.
virtual void getPartialMolarCp(doublereal *cpbar) const
Partial molar heat capacity of the solution:. UnitsL J/kmol/K.
int IMS_typeCutoff_
Cutoff type.
int m_formGC
The standard concentrations can have three different forms depending on the value of the member attri...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void initThermo()
Initialization routine for an IdealMolalSoln phase.
virtual void getMolalityActivityCoefficients(doublereal *acMolality) const
void calcDensity()
Calculate the density of the mixture using the partial molar volumes and mole fractions as input...
This phase is based upon the mixing-rule assumption that all molality-based activity coefficients are...
void calcIMSCutoffParams_()
Calculate parameters for cutoff treatments of activity coefficients.
doublereal IMS_X_o_cutoff_
value of the solute mole fraction that centers the cutoff polynomials for the cutoff =1 process; ...
virtual doublereal thermalExpansionCoeff() const
The thermal expansion coefficient. Units: 1/K.
vector_fp IMS_lnActCoeffMolal_
Logarithm of the molal activity coefficients.