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
850c1a63
Commit
850c1a63
authored
7 years ago
by
Katharina Heck
Committed by
Kilian Weishaupt
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[1p] remove typtag in vtkoutput
parent
56c58935
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!840
Feature/less typetag in vtkoutputfields
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dumux/io/vtkoutputmodule.hh
+8
-2
8 additions, 2 deletions
dumux/io/vtkoutputmodule.hh
dumux/porousmediumflow/1p/model.hh
+2
-2
2 additions, 2 deletions
dumux/porousmediumflow/1p/model.hh
dumux/porousmediumflow/1p/vtkoutputfields.hh
+0
-1
0 additions, 1 deletion
dumux/porousmediumflow/1p/vtkoutputfields.hh
with
10 additions
and
5 deletions
dumux/io/vtkoutputmodule.hh
+
8
−
2
View file @
850c1a63
...
...
@@ -253,6 +253,7 @@ public:
const
GridVariables
&
gridVariables
,
const
SolutionVector
&
sol
,
const
std
::
string
&
name
,
const
std
::
string
&
paramGroup
=
""
,
bool
verbose
=
true
,
Dune
::
VTK
::
DataMode
dm
=
Dune
::
VTK
::
conforming
)
:
problem_
(
problem
)
...
...
@@ -260,11 +261,16 @@ public:
,
gridVariables_
(
gridVariables
)
,
sol_
(
sol
)
,
name_
(
name
)
,
paramGroup_
(
paramGroup
)
,
verbose_
(
fvGridGeometry
.
gridView
().
comm
().
rank
()
==
0
&&
verbose
)
,
writer_
(
std
::
make_shared
<
Dune
::
VTKWriter
<
GridView
>>
(
fvGridGeometry
.
gridView
(),
dm
))
,
sequenceWriter_
(
writer_
,
name
)
{}
//! the parameter group for getting parameter from the parameter tree
const
std
::
string
&
paramGroup
()
const
{
return
paramGroup_
;
}
//////////////////////////////////////////////////////////////////////////////////////////////
//! Methods to conveniently add primary and secondary variables upon initialization
//! Do not call these methods after initialization i.e. _not_ within the time loop
...
...
@@ -356,8 +362,7 @@ public:
std
::
array
<
std
::
vector
<
GlobalPosition
>
,
numPhases
>
velocity
;
// process rank
static
const
std
::
string
modelParamGroup
=
GET_PROP_VALUE
(
TypeTag
,
ModelParameterGroup
);
static
bool
addProcessRank
=
getParamFromGroup
<
bool
>
(
modelParamGroup
,
"Vtk.AddProcessRank"
);
static
bool
addProcessRank
=
getParamFromGroup
<
bool
>
(
paramGroup_
,
"Vtk.AddProcessRank"
);
std
::
vector
<
double
>
rank
;
// volume variable data
...
...
@@ -540,6 +545,7 @@ private:
const
SolutionVector
&
sol_
;
std
::
string
name_
;
std
::
string
paramGroup_
;
bool
verbose_
;
std
::
shared_ptr
<
Dune
::
VTKWriter
<
GridView
>>
writer_
;
...
...
This diff is collapsed.
Click to expand it.
dumux/porousmediumflow/1p/model.hh
+
2
−
2
View file @
850c1a63
...
...
@@ -75,7 +75,7 @@ SET_BOOL_PROP(OneP, EnableAdvection, true); //!< The o
SET_BOOL_PROP
(
OneP
,
EnableMolecularDiffusion
,
false
);
//!< The one-phase model has no molecular diffusion
SET_BOOL_PROP
(
OneP
,
EnableEnergyBalance
,
false
);
//!< Isothermal model by default
SET_TYPE_PROP
(
OneP
,
Indices
,
OnePIndices
);
//!< The indices required by the isothermal single-phase model
SET_TYPE_PROP
(
OneP
,
VtkOutputFields
,
OnePVtkOutputFields
<
TypeTag
>
);
//!< Set the vtk output fields specific to this model
SET_TYPE_PROP
(
OneP
,
VtkOutputFields
,
OnePVtkOutputFields
);
//!< Set the vtk output fields specific to this model
/*!
* \brief The fluid state which is used by the volume variables to
...
...
@@ -97,7 +97,7 @@ public:
///////////////////////////////////////////////////////////////////////////
SET_INT_PROP
(
OnePNI
,
IsothermalNumEq
,
1
);
//!< set number of equations of isothermal model
SET_BOOL_PROP
(
OnePNI
,
EnableEnergyBalance
,
true
);
//!< we do solve for the energy balance here
SET_TYPE_PROP
(
OnePNI
,
IsothermalVtkOutputFields
,
OnePVtkOutputFields
<
TypeTag
>
);
//!< the isothermal vtk output fields
SET_TYPE_PROP
(
OnePNI
,
IsothermalVtkOutputFields
,
OnePVtkOutputFields
);
//!< the isothermal vtk output fields
SET_TYPE_PROP
(
OnePNI
,
IsothermalVolumeVariables
,
OnePVolumeVariables
<
TypeTag
>
);
//!< Vol vars of the isothermal model
SET_TYPE_PROP
(
OnePNI
,
IsothermalLocalResidual
,
ImmiscibleLocalResidual
<
TypeTag
>
);
//!< Local residual of the isothermal model
SET_TYPE_PROP
(
OnePNI
,
IsothermalIndices
,
OnePIndices
);
//!< Indices of the isothermal model
...
...
This diff is collapsed.
Click to expand it.
dumux/porousmediumflow/1p/vtkoutputfields.hh
+
0
−
1
View file @
850c1a63
...
...
@@ -30,7 +30,6 @@ namespace Dumux {
* \ingroup OnePModel
* \brief Adds vtk output fields specific to the one phase model
*/
template
<
class
TypeTag
>
class
OnePVtkOutputFields
{
public:
...
...
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