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
bda4f0d6
Commit
bda4f0d6
authored
5 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[material] Add static assert that ThCondJohansen only works for 2 phases
parent
e9a83517
No related branches found
No related tags found
1 merge request
!1605
Feature/simplify effective laws
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/material/fluidmatrixinteractions/2p/thermalconductivityjohansen.hh
+4
-0
4 additions, 0 deletions
...fluidmatrixinteractions/2p/thermalconductivityjohansen.hh
with
4 additions
and
0 deletions
dumux/material/fluidmatrixinteractions/2p/thermalconductivityjohansen.hh
+
4
−
0
View file @
bda4f0d6
...
@@ -99,6 +99,10 @@ public:
...
@@ -99,6 +99,10 @@ public:
template
<
class
VolumeVariables
>
template
<
class
VolumeVariables
>
static
Scalar
effectiveThermalConductivity
(
const
VolumeVariables
&
volVars
)
static
Scalar
effectiveThermalConductivity
(
const
VolumeVariables
&
volVars
)
{
{
using
FluidSystem
=
typename
VolumeVariables
::
FluidSystem
;
static_assert
(
FluidSystem
::
numPhases
==
2
,
"ThermalConductivitySomerton only works for two-phase fluid systems!"
);
// TODO: there should be an assertion that the indices are correct and 0 is actually the wetting phase!
const
Scalar
sw
=
volVars
.
saturation
(
Indices
::
wPhaseIdx
);
const
Scalar
sw
=
volVars
.
saturation
(
Indices
::
wPhaseIdx
);
const
Scalar
lambdaW
=
volVars
.
fluidThermalConductivity
(
Indices
::
wPhaseIdx
);
const
Scalar
lambdaW
=
volVars
.
fluidThermalConductivity
(
Indices
::
wPhaseIdx
);
const
Scalar
lambdaN
=
volVars
.
fluidThermalConductivity
(
Indices
::
nPhaseIdx
);
const
Scalar
lambdaN
=
volVars
.
fluidThermalConductivity
(
Indices
::
nPhaseIdx
);
...
...
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