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
e8203712
Commit
e8203712
authored
6 years ago
by
Sina Ackermann
Browse files
Options
Downloads
Patches
Plain Diff
[tracer] Use NumEqVector for storage and flux
parent
2d867446
No related branches found
No related tags found
1 merge request
!888
Feature/primaryvariables numeqvector
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/porousmediumflow/tracer/localresidual.hh
+5
-5
5 additions, 5 deletions
dumux/porousmediumflow/tracer/localresidual.hh
with
5 additions
and
5 deletions
dumux/porousmediumflow/tracer/localresidual.hh
+
5
−
5
View file @
e8203712
...
...
@@ -47,7 +47,7 @@ class TracerLocalResidual: public GET_PROP_TYPE(TypeTag, BaseLocalResidual)
using
FVElementGeometry
=
typename
GET_PROP_TYPE
(
TypeTag
,
FVGridGeometry
)
::
LocalView
;
using
SubControlVolume
=
typename
FVElementGeometry
::
SubControlVolume
;
using
SubControlVolumeFace
=
typename
FVElementGeometry
::
SubControlVolumeFace
;
using
PrimaryVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
PrimaryVariables
);
using
NumEqVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
NumEqVector
);
using
FluxVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
FluxVariables
);
using
ElementFluxVariablesCache
=
typename
GET_PROP_TYPE
(
TypeTag
,
ElementFluxVariablesCache
);
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
);
...
...
@@ -74,11 +74,11 @@ public:
* \param scv The sub control volume
* \param volVars The primary and secondary varaibles on the scv
*/
PrimaryVariables
computeStorage
(
const
Problem
&
problem
,
NumEqVector
computeStorage
(
const
Problem
&
problem
,
const
SubControlVolume
&
scv
,
const
VolumeVariables
&
volVars
)
const
{
PrimaryVariables
storage
(
0.0
);
NumEqVector
storage
(
0.0
);
// formulation with mole balances
if
(
useMoles
)
...
...
@@ -111,7 +111,7 @@ public:
* \param scvf The sub control volume face
* \param elemFluxVarsCache The cache related to flux compuation
*/
PrimaryVariables
computeFlux
(
const
Problem
&
problem
,
NumEqVector
computeFlux
(
const
Problem
&
problem
,
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
...
...
@@ -121,7 +121,7 @@ public:
FluxVariables
fluxVars
;
fluxVars
.
init
(
problem
,
element
,
fvGeometry
,
elemVolVars
,
scvf
,
elemFluxVarsCache
);
PrimaryVariables
flux
(
0.0
);
NumEqVector
flux
(
0.0
);
const
auto
diffusiveFluxes
=
fluxVars
.
molecularDiffusionFlux
(
phaseIdx
);
// formulation with mole balances
...
...
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