Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
5af53b5b
Commit
5af53b5b
authored
Sep 10, 2021
by
Dmitry Pavlov
Committed by
Timo Koch
Sep 16, 2021
Browse files
renamed the parameter, improved the comment
parent
f525d23b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/material/eos/pengrobinson.hh
View file @
5af53b5b
...
...
@@ -141,20 +141,23 @@ public:
* \param params Parameters
* \param phaseIdx The phase index
* \param isGasPhase Specifies the phase state
* \param handleSingleRootSpecially Special handling of the case when the EOS has only one
* intersection with the pressure: the critical molar volume is returned if the
fluid is critical, or extrema of the EOS are considered if the fluid is not
critical. If the parameter is false and the EOS has only one intersection
with, the molar volume is computed from that single intersection, not
depending of the given phase (gas or fluid). If the EOS has three
intersections with the pressure, this parameter is ignored.
* \param handleUnphysicalPhase Special handling of the case when the EOS has only one
intersection with the pressure, and the intersection does not correspond to
the given phase (the phase is thus considered unphysical). If it happens in
the case of critical fluid, the critical molar volume is returned for the
unphysical phase. If the fluid is not critical, a proper extremum of the
EOS is returned for the unphysical phase. If the parameter is false and the
EOS has only one intersection with the pressure, the molar volume is computed
from that single intersection, not depending of the given phase (gas or
fluid). If the EOS has three intersections with the pressure, this parameter
is ignored.
*/
template
<
class
FluidState
,
class
Params
>
static
Scalar
computeMolarVolume
(
const
FluidState
&
fs
,
Params
&
params
,
int
phaseIdx
,
bool
isGasPhase
,
bool
handle
SingleRootSpecially
=
true
)
bool
handle
UnphysicalPhase
=
true
)
{
Scalar
Vm
=
0
;
...
...
@@ -204,7 +207,7 @@ public:
Vm
=
Z
[
0
]
*
RT
/
p
;
// Handle single root case specially unless told otherwise
if
(
handle
SingleRootSpecially
)
if
(
handle
UnphysicalPhase
)
Vm
=
handleSingleRoot_
(
Vm
,
fs
,
params
,
phaseIdx
,
isGasPhase
);
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment