Skip to content
Snippets Groups Projects
Commit 5e6261a6 authored by Dmitry Pavlov's avatar Dmitry Pavlov Committed by Timo Koch
Browse files

[material] Add option to PengRobinson::computeMolarVolume

- Ignoring the first two roots of the equation for Z in the
  smallest one is zero or negative. There was a comment
  documenting that behavior, but it was not implemented.

- Throwing NumericalProblem if no positive Z has been found
  or the number of roots is 2 or more than 3
  (no check was in place)

- Throwing NumericalProblem if the found molar volume turned
  out to be zero, negative, or NaN. (Replacing assert)

- Added handleUnphysicalPhase flag (true by default). If false, the
  single-root case is not checked for critical state of
  the fluid (otherwise, Michelsen test for a mix of
  hydrocarbons does not work).
parent c4feaf0a
No related branches found
No related tags found
1 merge request!2831[material] Add option to PengRobinson::computeMolarVolume
Pipeline #8802 passed
Pipeline: dumux-lecture

#8807

    Pipeline: dumux

    #8806

      Pipeline: dumux

      #8805

        +2