cantera/src
Steven DeCaluwe 3c9bbc4ec9 Fix IdealMolalSolution::standardConcentration
Standard concentrations in the IdealMolalSolution phase depend on
a user-specified m_formGC parameter, where m_formGC=0 results in a
standard concentration of 1.0, m_formGC = 1 is supposed to result in
a standard concentration for species k  equal to 1 divided by the
molar volume of species k, and m_formGC = 2 is supposed to result in
a standard concentration equal to 1 divided by the molar volume of the
solvent species (which is species 0).

Current behavior is that m_formGC = 1 and m_formGC = 2 *both* result
in a standard concentration of 1 divided by molar vlume of the solvent.

This commit fixes how this is handled, cleans up the switch statement
(the three cases were written somewhat inconsistently), and throws
an error if m_formGC is set < 0 or > 2.
2019-02-20 21:39:22 -05:00
..
base Check for additional invalid string-to-double conversions 2018-12-02 23:54:04 -05:00
clib Deprecate rarely-used vector functions 2018-12-14 11:27:24 -05:00
equil Remove code deprecated in Cantera 2.4 2018-12-14 11:27:24 -05:00
fortran Remove code deprecated in Cantera 2.3.0 2017-02-12 19:22:33 -05:00
kinetics Deprecate rarely-used vector functions 2018-12-14 11:27:24 -05:00
matlab [SCons] Only build the Python package for Python 3.x 2018-09-19 17:59:59 -04:00
numerics Expose getting/setting of max-steps to python interface & test 2019-01-07 22:33:03 -05:00
oneD [1D] rdt is automatically set appropriately during Jacobian evaluation 2018-11-11 22:17:20 -05:00
pch [SCons] Move PCH-related files out of include to avoid installing them 2016-11-04 11:36:13 -04:00
thermo Fix IdealMolalSolution::standardConcentration 2019-02-20 21:39:22 -05:00
tpx Wrapped common uses of boost string algorithms. 2017-10-25 09:30:22 -04:00
transport Deprecate rarely-used vector functions 2018-12-14 11:27:24 -05:00
zeroD Fix compiler warnings issued by Visual Studio 2015 2018-08-28 16:45:49 -04:00
SConscript Add methods for accessing the git commit used when compiling 2017-01-20 22:43:56 -05:00