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
5a7e382b
Commit
5a7e382b
authored
4 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[doc][mineralization] Fix doc and solid terminology
solid phases->solidComponents
parent
fe47be42
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!2170
[doc][mineralization] Fix doc and solid terminology
,
!2134
WIP Feature/timestepper test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/porousmediumflow/mineralization/localresidual.hh
+7
-7
7 additions, 7 deletions
dumux/porousmediumflow/mineralization/localresidual.hh
with
7 additions
and
7 deletions
dumux/porousmediumflow/mineralization/localresidual.hh
+
7
−
7
View file @
5a7e382b
...
@@ -76,15 +76,15 @@ public:
...
@@ -76,15 +76,15 @@ public:
{
{
auto
storage
=
ParentType
::
computeStorage
(
problem
,
scv
,
volVars
);
auto
storage
=
ParentType
::
computeStorage
(
problem
,
scv
,
volVars
);
const
auto
massOrMoleDensity
=
[](
const
auto
&
volVars
,
const
int
phase
Idx
)
const
auto
massOrMole
Solid
Density
=
[](
const
auto
&
volVars
,
const
int
sComp
Idx
)
{
return
useMoles
?
volVars
.
solidComponentMolarDensity
(
phase
Idx
)
:
volVars
.
solidComponentDensity
(
phase
Idx
);
};
{
return
useMoles
?
volVars
.
solidComponentMolarDensity
(
sComp
Idx
)
:
volVars
.
solidComponentDensity
(
sComp
Idx
);
};
// compute storage term of all components
within all fluid phases
// compute storage term of all
solid
components
for
(
int
phase
Idx
=
0
;
phase
Idx
<
numSolidComps
-
numInertSolidComps
;
++
phase
Idx
)
for
(
int
sComp
Idx
=
0
;
sComp
Idx
<
numSolidComps
-
numInertSolidComps
;
++
sComp
Idx
)
{
{
auto
eqIdx
=
Indices
::
conti0EqIdx
+
numComponents
+
phase
Idx
;
auto
eqIdx
=
Indices
::
conti0EqIdx
+
numComponents
+
sComp
Idx
;
storage
[
eqIdx
]
+=
volVars
.
solidVolumeFraction
(
phase
Idx
)
storage
[
eqIdx
]
+=
volVars
.
solidVolumeFraction
(
sComp
Idx
)
*
massOrMoleDensity
(
volVars
,
phase
Idx
);
*
massOrMole
Solid
Density
(
volVars
,
sComp
Idx
);
}
}
return
storage
;
return
storage
;
...
...
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