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
53d50dfd
Commit
53d50dfd
authored
Feb 26, 2021
by
Timo Koch
Browse files
[simpleh2o][bugfix] Fix liquid enthalpy for incompressible fluid: dh = cp*dT + p/rho
parent
d497f147
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/material/components/simpleh2o.hh
View file @
53d50dfd
...
@@ -149,7 +149,8 @@ public:
...
@@ -149,7 +149,8 @@ public:
Scalar
pressure
)
Scalar
pressure
)
{
{
static
const
Scalar
tRef
=
getParam
<
Scalar
>
(
"SimpleH2O.ReferenceTemperature"
,
293.15
);
static
const
Scalar
tRef
=
getParam
<
Scalar
>
(
"SimpleH2O.ReferenceTemperature"
,
293.15
);
return
liquidHeatCapacity
(
temperature
,
pressure
)
*
(
temperature
-
tRef
);
return
liquidHeatCapacity
(
temperature
,
pressure
)
*
(
temperature
-
tRef
)
+
pressure
/
liquidDensity
(
temperature
,
pressure
);
}
}
/*!
/*!
...
...
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