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
496acc50
Commit
496acc50
authored
7 years ago
by
Kilian Weishaupt
Browse files
Options
Downloads
Patches
Plain Diff
[freeflow] Remove vtk output module
* obsolete
parent
4ba327fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!617
[WIP] Next
,
!576
Feature/port staggered ff to next next
,
!571
Cleanup/next
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/freeflow/staggered/propertydefaults.hh
+0
-3
0 additions, 3 deletions
dumux/freeflow/staggered/propertydefaults.hh
dumux/freeflow/staggered/vtkoutputmodule.hh
+0
-86
0 additions, 86 deletions
dumux/freeflow/staggered/vtkoutputmodule.hh
with
0 additions
and
89 deletions
dumux/freeflow/staggered/propertydefaults.hh
+
0
−
3
View file @
496acc50
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#include
"fluxvariables.hh"
#include
"fluxvariables.hh"
#include
"fluxvariablescache.hh"
#include
"fluxvariablescache.hh"
#include
"velocityoutput.hh"
#include
"velocityoutput.hh"
#include
"vtkoutputmodule.hh"
#include
"vtkoutputfields.hh"
#include
"vtkoutputfields.hh"
#include
"boundarytypes.hh"
#include
"boundarytypes.hh"
...
@@ -189,8 +188,6 @@ SET_TYPE_PROP(NavierStokes,
...
@@ -189,8 +188,6 @@ SET_TYPE_PROP(NavierStokes,
BoundaryTypes
,
BoundaryTypes
,
StaggeredFreeFlowBoundaryTypes
<
GET_PROP_VALUE
(
TypeTag
,
NumEq
)
>
);
StaggeredFreeFlowBoundaryTypes
<
GET_PROP_VALUE
(
TypeTag
,
NumEq
)
>
);
SET_TYPE_PROP
(
NavierStokes
,
VtkOutputModule
,
FreeFlowStaggeredVtkOutputModule
<
TypeTag
>
);
SET_TYPE_PROP
(
NavierStokes
,
VelocityOutput
,
StaggeredFreeFlowVelocityOutput
<
TypeTag
>
);
SET_TYPE_PROP
(
NavierStokes
,
VelocityOutput
,
StaggeredFreeFlowVelocityOutput
<
TypeTag
>
);
SET_TYPE_PROP
(
NavierStokes
,
EnergyLocalResidual
,
FreeFlowEnergyLocalResidual
<
TypeTag
>
);
SET_TYPE_PROP
(
NavierStokes
,
EnergyLocalResidual
,
FreeFlowEnergyLocalResidual
<
TypeTag
>
);
...
...
This diff is collapsed.
Click to expand it.
dumux/freeflow/staggered/vtkoutputmodule.hh
deleted
100644 → 0
+
0
−
86
View file @
4ba327fc
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
* \brief A VTK output module to simplify writing dumux simulation data to VTK format.
* This is a specialization for a staggered free-flow implementation on a regular grid.
*/
#ifndef FREEFLOW_STAGGERED_VTK_OUTPUT_MODULE_HH
#define FREEFLOW_STAGGERED_VTK_OUTPUT_MODULE_HH
#include
<dune/common/fvector.hh>
#include
<dumux/io/staggeredvtkoutputmodule.hh>
#include
<dumux/discretization/staggered/freeflow/staggeredgeometryhelper.hh>
namespace
Properties
{
NEW_PROP_TAG
(
VtkAddVelocity
);
NEW_PROP_TAG
(
VtkAddProcessRank
);
}
namespace
Dumux
{
/*!
* \ingroup InputOutput
* \brief A VTK output module to simplify writing dumux simulation data to VTK format
* This is a specialization for a staggered free-flow implementation on a regular grid.
*/
template
<
typename
TypeTag
>
class
FreeFlowStaggeredVtkOutputModule
:
public
StaggeredVtkOutputModule
<
TypeTag
>
{
friend
class
StaggeredVtkOutputModule
<
TypeTag
>
;
using
ParentType
=
StaggeredVtkOutputModule
<
TypeTag
>
;
using
Problem
=
typename
GET_PROP_TYPE
(
TypeTag
,
Problem
);
using
Scalar
=
typename
GET_PROP_TYPE
(
TypeTag
,
Scalar
);
using
DofTypeIndices
=
typename
GET_PROP
(
TypeTag
,
DofTypeIndices
);
typename
DofTypeIndices
::
FaceIdx
faceIdx
;
using
Data
=
std
::
vector
<
std
::
vector
<
Scalar
>>
;
public:
FreeFlowStaggeredVtkOutputModule
(
const
Problem
&
problem
,
Dune
::
VTK
::
DataMode
dm
=
Dune
::
VTK
::
conforming
)
:
ParentType
(
problem
,
dm
)
{}
private
:
/*!
* \brief Retrives vector-valued data from the face. This is a specialization for a free-flow implementation on a regular grid.
*
* \param priVarVectorData Container to store the data
* \param face The face
*/
template
<
class
Face
>
void
getPrivarVectorData_
(
Data
&
priVarVectorData
,
const
Face
&
face
)
{
const
int
dofIdxGlobal
=
face
.
dofIndex
();
const
int
dirIdx
=
directionIndex
(
face
.
unitOuterNormal
());
const
Scalar
velocity
=
this
->
problem
().
model
().
curSol
()[
faceIdx
][
dofIdxGlobal
][
0
];
for
(
int
i
=
0
;
i
<
this
->
priVarVectorDataInfo_
.
size
();
++
i
)
priVarVectorData
[
i
][
dofIdxGlobal
*
this
->
priVarVectorDataInfo_
[
i
].
pvIdx
.
size
()
+
dirIdx
]
=
velocity
;
}
};
}
// end namespace Dumux
#endif
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