21 #ifndef CT_IDEALMOLALSOLN_H
22 #define CT_IDEALMOLALSOLN_H
118 IdealMolalSoln(
const std::string& inputFile,
const std::string&
id =
"");
222 virtual doublereal
cp_mole()
const;
228 virtual doublereal
cv_mole()
const;
309 virtual void setState_TP(doublereal t, doublereal p);
355 err(
"setPotentialEnergy");
365 return err(
"potentialEnergy");
442 int sizeUA = 6)
const;
601 err(
"setToEquilState");
624 virtual void getParameters(
int& n, doublereal*
const c)
const;
653 err(
"critTemperature");
794 doublereal IMS_cCut_;
795 doublereal IMS_dfCut_;
796 doublereal IMS_efCut_;
797 doublereal IMS_afCut_;
798 doublereal IMS_bfCut_;
799 doublereal IMS_dgCut_;
800 doublereal IMS_egCut_;
801 doublereal IMS_agCut_;
802 doublereal IMS_bgCut_;
811 doublereal
err(
const std::string& msg)
const;
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)
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
doublereal err(const std::string &msg) const
Internal error message.
virtual doublereal potentialEnergy(int k) const
Get the potential energy of species k.
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 critDensity() const
Critical density (kg/m3).
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 void getParameters(int &n, doublereal *const c) const
virtual void setPotentialEnergy(int k, doublereal pe)
Set the potential energy of species k to pe.
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.
virtual doublereal logStandardConc(size_t k=0) const
virtual doublereal critTemperature() const
Critical temperature (K).
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...
virtual int eosType() const
Equation of state type flag.
This phase is based upon the mixing-rule assumption that all molality-based activity coefficients are...
virtual void setParametersFromXML(const XML_Node &eosdata)
virtual doublereal critPressure() const
Critical pressure (Pa).
void calcIMSCutoffParams_()
Calculate parameters for cutoff treatments of activity coefficients.
virtual void setParameters(int n, doublereal *const c)
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.