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
0cbdeb13
Commit
0cbdeb13
authored
6 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[mpfa][fluxlaws] use correct flux sign switch query
parent
d2bf570a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1414
[mpfa][fluxlaws] use correct flux sign switch query
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dumux/flux/ccmpfa/darcyslaw.hh
+1
-1
1 addition, 1 deletion
dumux/flux/ccmpfa/darcyslaw.hh
dumux/flux/ccmpfa/fickslaw.hh
+1
-1
1 addition, 1 deletion
dumux/flux/ccmpfa/fickslaw.hh
dumux/flux/ccmpfa/fourierslaw.hh
+2
-2
2 additions, 2 deletions
dumux/flux/ccmpfa/fourierslaw.hh
with
4 additions
and
4 deletions
dumux/flux/ccmpfa/darcyslaw.hh
+
1
−
1
View file @
0cbdeb13
...
...
@@ -201,7 +201,7 @@ private:
:
dataHandle
.
gOutside
()[
localFaceIdx
][
idxInOutside
]);
// switch the sign if necessary
if
(
cache
.
advectionS
witch
Flux
Sign
()
)
if
(
s
witchSign
)
scvfFlux
*=
-
1.0
;
return
scvfFlux
;
...
...
This diff is collapsed.
Click to expand it.
dumux/flux/ccmpfa/fickslaw.hh
+
1
−
1
View file @
0cbdeb13
...
...
@@ -234,7 +234,7 @@ private:
Scalar
scvfFlux
=
tij
*
xj
;
// switch the sign if necessary
if
(
cache
.
advectionS
witch
Flux
Sign
()
)
if
(
s
witchSign
)
scvfFlux
*=
-
1.0
;
return
scvfFlux
;
...
...
This diff is collapsed.
Click to expand it.
dumux/flux/ccmpfa/fourierslaw.hh
+
2
−
2
View file @
0cbdeb13
...
...
@@ -178,7 +178,7 @@ private:
const
FluxVarsCache
&
cache
,
const
DataHandle
&
dataHandle
)
{
const
bool
switchSign
=
cache
.
adve
ctionSwitchFluxSign
();
const
bool
switchSign
=
cache
.
heatCondu
ctionSwitchFluxSign
();
const
auto
localFaceIdx
=
cache
.
ivLocalFaceIndex
();
const
auto
idxInOutside
=
cache
.
indexInOutsideFaces
();
...
...
@@ -189,7 +189,7 @@ private:
Scalar
scvfFlux
=
tij
*
Tj
;
// switch the sign if necessary
if
(
cache
.
advectionS
witch
Flux
Sign
()
)
if
(
s
witchSign
)
scvfFlux
*=
-
1.0
;
return
scvfFlux
;
...
...
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