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:
...
@@ -141,20 +141,23 @@ public:
* \param params Parameters
* \param params Parameters
* \param phaseIdx The phase index
* \param phaseIdx The phase index
* \param isGasPhase Specifies the phase state
* \param isGasPhase Specifies the phase state
* \param handleSingleRootSpecially Special handling of the case when the EOS has only one
* \param handleUnphysicalPhase Special handling of the case when the EOS has only one
* intersection with the pressure: the critical molar volume is returned if the
intersection with the pressure, and the intersection does not correspond to
fluid is critical, or extrema of the EOS are considered if the fluid is not
the given phase (the phase is thus considered unphysical). If it happens in
critical. If the parameter is false and the EOS has only one intersection
the case of critical fluid, the critical molar volume is returned for the
with, the molar volume is computed from that single intersection, not
unphysical phase. If the fluid is not critical, a proper extremum of the
depending of the given phase (gas or fluid). If the EOS has three
EOS is returned for the unphysical phase. If the parameter is false and the
intersections with the pressure, this parameter is ignored.
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
>
template
<
class
FluidState
,
class
Params
>
static
Scalar
computeMolarVolume
(
const
FluidState
&
fs
,
static
Scalar
computeMolarVolume
(
const
FluidState
&
fs
,
Params
&
params
,
Params
&
params
,
int
phaseIdx
,
int
phaseIdx
,
bool
isGasPhase
,
bool
isGasPhase
,
bool
handle
SingleRootSpecially
=
true
)
bool
handle
UnphysicalPhase
=
true
)
{
{
Scalar
Vm
=
0
;
Scalar
Vm
=
0
;
...
@@ -204,7 +207,7 @@ public:
...
@@ -204,7 +207,7 @@ public:
Vm
=
Z
[
0
]
*
RT
/
p
;
Vm
=
Z
[
0
]
*
RT
/
p
;
// Handle single root case specially unless told otherwise
// Handle single root case specially unless told otherwise
if
(
handle
SingleRootSpecially
)
if
(
handle
UnphysicalPhase
)
Vm
=
handleSingleRoot_
(
Vm
,
fs
,
params
,
phaseIdx
,
isGasPhase
);
Vm
=
handleSingleRoot_
(
Vm
,
fs
,
params
,
phaseIdx
,
isGasPhase
);
}
}
else
else
...
...
Write
Preview
Supports
Markdown
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