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
7600a6fa
Commit
7600a6fa
authored
7 years ago
by
Sina Ackermann
Committed by
Kilian Weishaupt
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[staggeredGrid][nonisothermal] Revise Fourier's law
parent
db0e8e7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!617
[WIP] Next
,
!483
Feature/staggered energy
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/staggered/freeflow/fourierslaw.hh
+8
-7
8 additions, 7 deletions
dumux/discretization/staggered/freeflow/fourierslaw.hh
with
8 additions
and
7 deletions
dumux/discretization/staggered/freeflow/fourierslaw.hh
+
8
−
7
View file @
7600a6fa
...
...
@@ -57,8 +57,8 @@ class FouriersLawImplementation<TypeTag, DiscretizationMethods::Staggered >
using
ElementVolumeVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
ElementVolumeVariables
);
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
using
CellCenterPrimaryVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
CellCenterPrimaryVariables
);
using
ThermalConductivityModel
=
typename
GET_PROP_TYPE
(
TypeTag
,
ThermalConductivityModel
);
using
Indices
=
typename
GET_PROP_TYPE
(
TypeTag
,
Indices
);
using
FluidSystem
=
typename
GET_PROP_TYPE
(
TypeTag
,
FluidSystem
);
static
const
int
dim
=
GridView
::
dimension
;
static
const
int
dimWorld
=
GridView
::
dimensionworld
;
...
...
@@ -90,15 +90,16 @@ public:
const
auto
&
outsideVolVars
=
scvf
.
boundary
()
?
insideVolVars
:
elemVolVars
[
scvf
.
outsideScvIdx
()];
// effective conductivity tensors
auto
insideLambda
=
ThermalConductivityModel
::
effectiveThermalConductivity
(
insideVolVars
,
problem
.
spatialParams
(),
element
,
fvGeometry
,
insideScv
);
auto
outsideLambda
=
ThermalConductivityModel
::
effectiveThermalConductivity
(
outsideVolVars
,
problem
.
spatialParams
(),
element
,
fvGeometry
,
outsideScv
);
auto
insideLambda
=
insideVolVars
.
thermalConductivity
(
);
auto
outsideLambda
=
outsideVolVars
.
thermalConductivity
(
);
// scale by extrusion factor
insideLambda
*=
insideVolVars
.
extrusionFactor
();
outsideLambda
*=
outsideVolVars
.
extrusionFactor
();
// the resulting averaged conductivity tensor
const
auto
lambda
=
problem
.
spatialParams
().
harmonicMean
(
insideLambda
,
outsideLambda
,
scvf
.
unitOuterNormal
());
// const auto lambda = problem.spatialParams().harmonicMean(insideLambda, outsideLambda, scvf.unitOuterNormal());
const
auto
lambda
=
harmonicMean
(
insideLambda
,
outsideLambda
);
// TODO unitOuterNormal?!
const
Scalar
insideTemp
=
insideVolVars
.
temperature
();
Scalar
distance
(
0.0
),
outsideTemp
(
insideTemp
);
...
...
@@ -118,13 +119,13 @@ public:
}
else
{
distance
=
(
insideScv
.
dofPosition
()
-
outsideScv
.
dofPosition
());
distance
=
(
insideScv
.
dofPosition
()
-
outsideScv
.
dofPosition
())
.
two_norm
()
;
outsideTemp
=
outsideVolVars
.
temperature
();
}
flux
[
energyBalanceIdx
]
=
(
insideTemp
-
outsideTemp
);
flux
[
energyBalanceIdx
]
=
-
1.0
*
(
insideTemp
-
outsideTemp
);
flux
[
energyBalanceIdx
]
*=
lambda
/
distance
;
return
-
1.0
*
flux
;
return
flux
;
}
};
}
// end namespace
...
...
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