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
60b7fbb8
Commit
60b7fbb8
authored
7 years ago
by
Kilian Weishaupt
Committed by
Timo Koch
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[1pnc] Adapt volVars and outputfields
parent
f8a4622a
No related branches found
No related tags found
2 merge requests
!621
Feature/1pnc next
,
!617
[WIP] Next
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/porousmediumflow/1pnc/implicit/volumevariables.hh
+7
-0
7 additions, 0 deletions
dumux/porousmediumflow/1pnc/implicit/volumevariables.hh
dumux/porousmediumflow/1pnc/implicit/vtkoutputfields.hh
+3
-2
3 additions, 2 deletions
dumux/porousmediumflow/1pnc/implicit/vtkoutputfields.hh
with
10 additions
and
2 deletions
dumux/porousmediumflow/1pnc/implicit/volumevariables.hh
+
7
−
0
View file @
60b7fbb8
...
@@ -266,6 +266,13 @@ public:
...
@@ -266,6 +266,13 @@ public:
Scalar
mobility
(
int
pIdx
=
0
)
const
Scalar
mobility
(
int
pIdx
=
0
)
const
{
return
1.0
/
fluidState_
.
viscosity
(
phaseIdx
);
}
{
return
1.0
/
fluidState_
.
viscosity
(
phaseIdx
);
}
/*!
* \brief Return the dynamic viscosity \f$\mathrm{[Pa s]}\f$ of the fluid within the
* control volume.
*/
Scalar
viscosity
(
int
phaseIdx
=
0
)
const
{
return
fluidState_
.
viscosity
(
phaseIdx
);
}
/*!
/*!
* \brief Return the average porosity \f$\mathrm{[-]}\f$ within the control volume.
* \brief Return the average porosity \f$\mathrm{[-]}\f$ within the control volume.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
dumux/porousmediumflow/1pnc/implicit/vtkoutputfields.hh
+
3
−
2
View file @
60b7fbb8
...
@@ -43,9 +43,10 @@ public:
...
@@ -43,9 +43,10 @@ public:
template
<
class
VtkOutputModule
>
template
<
class
VtkOutputModule
>
static
void
init
(
VtkOutputModule
&
vtk
)
static
void
init
(
VtkOutputModule
&
vtk
)
{
{
vtk
.
addVolumeVariable
([](
const
auto
&
volVars
){
return
volVars
.
pressure
();
},
"pressure"
);
vtk
.
addVolumeVariable
([](
const
auto
&
volVars
){
return
volVars
.
pressure
(
phaseIdx
);
},
"pressure"
);
vtk
.
addVolumeVariable
([](
const
auto
&
volVars
){
return
volVars
.
density
(
phaseIdx
);
},
"rho"
);
vtk
.
addVolumeVariable
([](
const
auto
&
volVars
){
return
volVars
.
density
(
phaseIdx
);
},
"rho"
);
vtk
.
addVolumeVariable
([](
const
auto
&
volVars
){
return
volVars
.
porosity
();
},
"porosity"
);
vtk
.
addVolumeVariable
([](
const
auto
&
volVars
){
return
volVars
.
viscosity
(
phaseIdx
);
},
"mu"
);
vtk
.
addVolumeVariable
([](
const
auto
&
volVars
){
return
volVars
.
pressure
(
phaseIdx
)
-
1e5
;
},
"delp"
);
for
(
int
i
=
0
;
i
<
numComponents
;
++
i
)
for
(
int
i
=
0
;
i
<
numComponents
;
++
i
)
vtk
.
addVolumeVariable
([
i
](
const
auto
&
volVars
){
return
volVars
.
moleFraction
(
phaseIdx
,
i
);
},
vtk
.
addVolumeVariable
([
i
](
const
auto
&
volVars
){
return
volVars
.
moleFraction
(
phaseIdx
,
i
);
},
...
...
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