Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Redlich-Kwong equilibrium calculations #898

Merged
merged 3 commits into from
Jul 10, 2020
Merged

Commits on Jul 9, 2020

  1. Fix documentation of ThermoPhase::setToEquilState

    The values passed into this function are the nondimensional (species) chemical
    potentials, not the element potentials. The method ChemEquil::setToEquilState
    already handles calculation of the chemical potentials from the element
    potentials.
    speth committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    3d79041 View commit details
    Browse the repository at this point in the history
  2. [Equil] Fix use of element potential method with IdealSolidSolnPhase

    The implementation of IdealSolidSolnPhase::setToEquilState incorrectly used
    the input array as the element potentials rather than the species chemical
    potentials. The modified implementation corresponds to that of the
    IdealGasPhase class.
    
    The previous implementation seems to generally have resulted in an exception
    being raised, which normally results in falling back to the Gibbs solver,
    so this shouldn't have been producing incorrect results.
    speth committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    c7a7a31 View commit details
    Browse the repository at this point in the history
  3. [Equil] Remove incorrect RedlichKwongMFTP::setToEquilState

    The inversion of setting the mole fractions based on the chemical potentials
    is not obvious for non-ideal phases, and the implementation here based on
    an ideal phase leads to incorrect equilibrium solutions.
    speth committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    a957808 View commit details
    Browse the repository at this point in the history