IdealMolalSoln.cpp Source File#
IdealMolalSoln.cpp
Go to the documentation of this file.
486 double f = xmolSolvent + IMS_efCut_ + eterm * (IMS_afCut_ + xmolSolvent * (IMS_bfCut_ + IMS_dfCut_*xmolSolvent));
491 double g = xmolSolvent + IMS_egCut_ + eterm * (IMS_agCut_ + xmolSolvent * (IMS_bgCut_ + IMS_dgCut_*xmolSolvent));
ThermoPhase object for the ideal molal equation of state (see Thermodynamic Properties and class Idea...
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
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
void calcIMSCutoffParams_()
Calculate parameters for cutoff treatments of activity coefficients.
Definition IdealMolalSoln.cpp:506
double enthalpy_mole() const override
Molar enthalpy of the solution. Units: J/kmol.
Definition IdealMolalSoln.cpp:48
double thermalExpansionCoeff() const override
The thermal expansion coefficient. Units: 1/K.
Definition IdealMolalSoln.cpp:92
void getPartialMolarEnthalpies(double *hbar) const override
Returns an array of partial molar enthalpies for the species in the mixture.
Definition IdealMolalSoln.cpp:231
void getChemPotentials(double *mu) const override
Get the species chemical potentials: Units: J/kmol.
Definition IdealMolalSoln.cpp:193
double IMS_gamma_o_min_
gamma_o value for the cutoff process at the zero solvent point
Definition IdealMolalSoln.h:421
IdealMolalSoln(const string &inputFile="", const string &id="")
Constructor for phase initialization.
Definition IdealMolalSoln.cpp:37
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
Definition IdealMolalSoln.cpp:331
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition IdealMolalSoln.cpp:304
vector< double > m_tmpV
vector of size m_kk, used as a temporary holding area.
Definition IdealMolalSoln.h:408
void getActivityConcentrations(double *c) const override
This method returns an array of generalized concentrations.
Definition IdealMolalSoln.cpp:109
void getPartialMolarVolumes(double *vbar) const override
Definition IdealMolalSoln.cpp:276
vector< double > IMS_lnActCoeffMolal_
Logarithm of the molal activity coefficients.
Definition IdealMolalSoln.h:414
void setStandardConcentrationModel(const string &model)
Set the standard concentration model.
Definition IdealMolalSoln.cpp:373
double isothermalCompressibility() const override
The isothermal compressibility. Units: 1/Pa.
Definition IdealMolalSoln.cpp:87
double intEnergy_mole() const override
Molar internal energy of the solution: Units: J/kmol.
Definition IdealMolalSoln.cpp:54
double entropy_mole() const override
Molar entropy of the solution. Units: J/kmol/K.
Definition IdealMolalSoln.cpp:60
void calcDensity() override
Calculate the density of the mixture using the partial molar volumes and mole fractions as input.
Definition IdealMolalSoln.cpp:80
void setCutoffModel(const string &model)
Set cutoff model. Must be one of 'none', 'poly', or 'polyExp'.
Definition IdealMolalSoln.cpp:389
double IMS_gamma_k_min_
gamma_k minimum for the cutoff process at the zero solvent point
Definition IdealMolalSoln.h:424
int m_formGC
The standard concentrations can have one of three different forms: 0 = 'unity', 1 = 'species-molar-vo...
Definition IdealMolalSoln.h:401
double cp_mole() const override
Molar heat capacity of the solution at constant pressure. Units: J/kmol/K.
Definition IdealMolalSoln.cpp:72
void getActivities(double *ac) const override
Get the array of non-dimensional activities at the current solution temperature, pressure,...
Definition IdealMolalSoln.cpp:142
double IMS_X_o_cutoff_
value of the solute mole fraction that centers the cutoff polynomials for the cutoff =1 process;
Definition IdealMolalSoln.h:418
Units standardConcentrationUnits() const override
Returns the units of the "standard concentration" for this phase.
Definition IdealMolalSoln.cpp:99
void getPartialMolarCp(double *cpbar) const override
Partial molar heat capacity of the solution:. UnitsL J/kmol/K.
Definition IdealMolalSoln.cpp:281
double gibbs_mole() const override
Molar Gibbs function for the solution: Units J/kmol.
Definition IdealMolalSoln.cpp:66
double standardConcentration(size_t k=0) const override
Return the standard concentration for the kth species.
Definition IdealMolalSoln.cpp:126
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition IdealMolalSoln.cpp:293
void getPartialMolarIntEnergies(double *hbar) const override
Returns an array of partial molar internal energies for the species in the mixture.
Definition IdealMolalSoln.cpp:239
void s_updateIMS_lnMolalityActCoeff() const
This function will be called to update the internally stored natural logarithm of the molality activi...
Definition IdealMolalSoln.cpp:405
void getMolalityActivityCoefficients(double *acMolality) const override
Get the array of non-dimensional molality-based activity coefficients at the current solution tempera...
Definition IdealMolalSoln.cpp:171
void getPartialMolarEntropies(double *sbar) const override
Returns an array of partial molar entropies of the species in the solution.
Definition IdealMolalSoln.cpp:247
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition MolalityVPSSTP.cpp:269
double m_xmolSolventMIN
In any molality implementation, it makes sense to have a minimum solvent mole fraction requirement,...
Definition MolalityVPSSTP.h:607
vector< double > m_molalities
Current value of the molalities of the species in the phase.
Definition MolalityVPSSTP.h:616
void setMoleFSolventMin(double xmolSolventMIN)
Sets the minimum mole fraction in the molality formulation.
Definition MolalityVPSSTP.cpp:45
void calcMolalities() const
Calculates the molality of all species and stores the result internally.
Definition MolalityVPSSTP.cpp:60
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition MolalityVPSSTP.cpp:343
void assignDensity(const double density_)
Set the internally stored constant density (kg/m^3) of the phase.
Definition Phase.cpp:597
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
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
virtual void _updateStandardStateThermo() const
Updates the standard state thermodynamic functions at the current T and P of the solution.
Definition VPStandardStateTP.cpp:259
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 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
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
bool caseInsensitiveEquals(const string &input, const string &test)
Case insensitive equality predicate.
Definition stringUtils.cpp:223
Contains declarations for string manipulation functions within Cantera.
Generated by