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
f33f5ae6
Commit
f33f5ae6
authored
7 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[tpfa][fourier] use const variables where possible
parent
9f7e55dd
No related branches found
No related tags found
2 merge requests
!625
Feature/fix tpfa darcys law
,
!617
[WIP] Next
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/cellcentered/tpfa/fourierslaw.hh
+11
-7
11 additions, 7 deletions
dumux/discretization/cellcentered/tpfa/fourierslaw.hh
with
11 additions
and
7 deletions
dumux/discretization/cellcentered/tpfa/fourierslaw.hh
+
11
−
7
View file @
f33f5ae6
...
...
@@ -144,8 +144,12 @@ public:
const
auto
&
insideScv
=
fvGeometry
.
scv
(
insideScvIdx
);
const
auto
&
insideVolVars
=
elemVolVars
[
insideScvIdx
];
auto
insideLambda
=
ThermalConductivityModel
::
effectiveThermalConductivity
(
insideVolVars
,
problem
.
spatialParams
(),
element
,
fvGeometry
,
insideScv
);
Scalar
ti
=
computeTpfaTransmissibility
(
scvf
,
insideScv
,
insideLambda
,
insideVolVars
.
extrusionFactor
());
const
auto
insideLambda
=
ThermalConductivityModel
::
effectiveThermalConductivity
(
insideVolVars
,
problem
.
spatialParams
(),
element
,
fvGeometry
,
insideScv
);
const
Scalar
ti
=
computeTpfaTransmissibility
(
scvf
,
insideScv
,
insideLambda
,
insideVolVars
.
extrusionFactor
());
// for the boundary (dirichlet) or at branching points we only need ti
if
(
scvf
.
boundary
()
||
scvf
.
numOutsideScvs
()
>
1
)
...
...
@@ -160,11 +164,11 @@ public:
const
auto
&
outsideVolVars
=
elemVolVars
[
outsideScvIdx
];
const
auto
outsideElement
=
fvGeometry
.
fvGridGeometry
().
element
(
outsideScvIdx
);
auto
outsideLambda
=
ThermalConductivityModel
::
effectiveThermalConductivity
(
outsideVolVars
,
problem
.
spatialParams
(),
outsideElement
,
fvGeometry
,
outsideScv
);
const
auto
outsideLambda
=
ThermalConductivityModel
::
effectiveThermalConductivity
(
outsideVolVars
,
problem
.
spatialParams
(),
outsideElement
,
fvGeometry
,
outsideScv
);
Scalar
tj
;
if
(
dim
==
dimWorld
)
// assume the normal vector from outside is anti parallel so we save flipping a vector
...
...
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