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
561c571e
Commit
561c571e
authored
8 years ago
by
Kilian Weishaupt
Committed by
Timo Koch
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[staggeredGrid][FicksLaw] Clean-up
parent
a09fce27
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!617
[WIP] Next
,
!390
Feature/staggered components
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/staggered/freeflow/fickslaw.hh
+6
-6
6 additions, 6 deletions
dumux/discretization/staggered/freeflow/fickslaw.hh
with
6 additions
and
6 deletions
dumux/discretization/staggered/freeflow/fickslaw.hh
+
6
−
6
View file @
561c571e
...
@@ -110,23 +110,23 @@ public:
...
@@ -110,23 +110,23 @@ public:
if
(
compIdx
==
mainCompIdx
)
if
(
compIdx
==
mainCompIdx
)
continue
;
continue
;
auto
eqIdx
=
1
;
// get equation index
const
auto
eqIdx
=
conti0EqIdx
+
compIdx
;
const
Scalar
tij
=
transmissibility_
(
problem
,
fvGeometry
,
elemVolVars
,
scvf
,
compIdx
);
const
Scalar
insideMoleFraction
=
insideVolVars
.
moleFraction
(
phaseIdx
,
compIdx
);
if
(
scvf
.
boundary
())
if
(
scvf
.
boundary
())
{
{
const
auto
bcTypes
=
problem
.
boundaryTypesAtPos
(
scvf
.
center
());
const
auto
bcTypes
=
problem
.
boundaryTypesAtPos
(
scvf
.
center
());
if
(
bcTypes
.
isOutflow
(
momentumBalanceIdx
)
||
bcTypes
.
isNeumann
(
eqIdx
))
// TODO: catch neumann and outflow in localResidual's evalBoundary_(
)
if
(
bcTypes
.
isOutflow
(
eqIdx
)
&&
eqIdx
!=
pressureIdx
)
return
flux
;
return
flux
;
}
}
const
Scalar
tij
=
transmissibility_
(
problem
,
fvGeometry
,
elemVolVars
,
scvf
,
compIdx
);
const
Scalar
insideMoleFraction
=
insideVolVars
.
moleFraction
(
phaseIdx
,
compIdx
);
const
Scalar
outsideMolarDensity
=
scvf
.
boundary
()
?
insideVolVars
.
molarDensity
()
:
outsideVolVars
.
molarDensity
();
const
Scalar
outsideMolarDensity
=
scvf
.
boundary
()
?
insideVolVars
.
molarDensity
()
:
outsideVolVars
.
molarDensity
();
const
Scalar
avgDensity
=
0.5
*
(
insideMolarDensity
+
outsideMolarDensity
);
const
Scalar
avgDensity
=
0.5
*
(
insideMolarDensity
+
outsideMolarDensity
);
const
Scalar
outsideMoleFraction
=
outsideVolVars
.
moleFraction
(
phaseIdx
,
compIdx
);
const
Scalar
outsideMoleFraction
=
outsideVolVars
.
moleFraction
(
phaseIdx
,
compIdx
);
flux
[
compIdx
]
=
avgDensity
*
tij
*
(
insideMoleFraction
-
outsideMoleFraction
);
flux
[
compIdx
]
=
avgDensity
*
tij
*
(
insideMoleFraction
-
outsideMoleFraction
);
++
eqIdx
;
}
}
if
(
!
(
useMoles
&&
replaceCompEqIdx
==
mainCompIdx
))
if
(
!
(
useMoles
&&
replaceCompEqIdx
==
mainCompIdx
))
...
...
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