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
e9a83517
Commit
e9a83517
authored
5 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[material] Make thermalcond average work for multiple phases
parent
fa48965b
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/1p/thermalconductivityaverage.hh
+10
-3
10 additions, 3 deletions
.../fluidmatrixinteractions/1p/thermalconductivityaverage.hh
with
10 additions
and
3 deletions
dumux/material/fluidmatrixinteractions/1p/thermalconductivityaverage.hh
+
10
−
3
View file @
e9a83517
...
@@ -61,13 +61,20 @@ public:
...
@@ -61,13 +61,20 @@ public:
template
<
class
VolumeVariables
>
template
<
class
VolumeVariables
>
static
Scalar
effectiveThermalConductivity
(
const
VolumeVariables
&
volVars
)
static
Scalar
effectiveThermalConductivity
(
const
VolumeVariables
&
volVars
)
{
{
//Get the thermal conductivities and the porosity from the volume variables
constexpr
int
numFluidPhases
=
VolumeVariables
::
numFluidPhases
();
const
Scalar
lambdaW
=
volVars
.
fluidThermalConductivity
(
0
);
// Get the thermal conductivities and the porosity from the volume variables
Scalar
lambdaFluid
=
0.0
;
for
(
int
phaseIdx
=
0
;
phaseIdx
<
numFluidPhases
;
++
phaseIdx
)
lambdaFluid
+=
volVars
.
fluidThermalConductivity
(
phaseIdx
)
*
volVars
.
saturation
(
phaseIdx
);
const
Scalar
lambdaSolid
=
volVars
.
solidThermalConductivity
();
const
Scalar
lambdaSolid
=
volVars
.
solidThermalConductivity
();
const
Scalar
porosity
=
volVars
.
porosity
();
const
Scalar
porosity
=
volVars
.
porosity
();
return
lambdaSolid
*
(
1
-
porosity
)
+
lambda
W
*
porosity
;
return
lambdaSolid
*
(
1
-
porosity
)
+
lambda
Fluid
*
porosity
;
}
}
};
};
}
// end namespace Dumux
}
// end namespace Dumux
#endif
#endif
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