Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
a1a059fe
Commit
a1a059fe
authored
6 years ago
by
Kilian Weishaupt
Browse files
Options
Downloads
Patches
Plain Diff
[material][1padapter] Add component enthalpy
parent
3b594c44
No related branches found
No related tags found
1 merge request
!1115
Fix/1p adapter
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/material/fluidsystems/1padapter.hh
+17
-0
17 additions, 0 deletions
dumux/material/fluidsystems/1padapter.hh
with
17 additions
and
0 deletions
dumux/material/fluidsystems/1padapter.hh
+
17
−
0
View file @
a1a059fe
...
@@ -220,6 +220,23 @@ public:
...
@@ -220,6 +220,23 @@ public:
return
MultiPhaseFluidSystem
::
enthalpy
(
adaptFluidState
(
fluidState
),
phase
);
return
MultiPhaseFluidSystem
::
enthalpy
(
adaptFluidState
(
fluidState
),
phase
);
}
}
/*!
* \brief Returns the specific enthalpy \f$\mathrm{[J/kg]}\f$ of a component in a specific phase
* \param fluidState An arbitrary fluid state
* \param phaseIdx The index of the fluid phase to consider
* \param compIdx The index of the component to consider
*
*/
template
<
class
FluidState
>
static
Scalar
componentEnthalpy
(
const
FluidState
&
fluidState
,
int
phaseIdx
,
int
compIdx
)
{
assert
(
phaseIdx
==
0
);
return
MultiPhaseFluidSystem
::
componentEnthalpy
(
adaptFluidState
(
fluidState
),
phase
,
AdapterPolicy
::
compIdx
(
compIdx
));
}
using
Base
::
viscosity
;
using
Base
::
viscosity
;
/*!
/*!
* \brief The dynamic liquid viscosity \f$\mathrm{[N/m^3*s]}\f$ of the pure component.
* \brief The dynamic liquid viscosity \f$\mathrm{[N/m^3*s]}\f$ of the pure component.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment