3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
velocityintransport.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
19#ifndef DUMUX_FVMPFAVELOCITYINTRANSPORT_HH
20#define DUMUX_FVMPFAVELOCITYINTRANSPORT_HH
21
27#include <dune/grid/common/gridenums.hh>
29#include "properties.hh"
30
31namespace Dumux
32{
34
40template<class TypeTag>
42{
45
47 using Intersection = typename GridView::Intersection;
48
49
50public:
52
55 FvMpfaVelocityInTransport(Problem& problem):
56 problem_(problem)
57 {
58 calcVelocityInTransport_ = getParam<bool>("MPFA.CalcVelocityInTransport");
59 }
60
63 {}
64
66 void calculateVelocity(const Intersection& intersection, CellData& cellData)
67 {
68 problem_.pressureModel().calculateVelocity(intersection, cellData);
69 }
70
72 void calculateVelocityOnBoundary(const Intersection& intersection, CellData& cellData)
73 {
74 problem_.pressureModel().calculateVelocityOnBoundary(intersection, cellData);
75 }
76
79 {
80 return calcVelocityInTransport_;
81 }
82
89 template<class MultiWriter>
90 void addOutputVtkFields(MultiWriter &writer)
91 {}
92
93private:
94 Problem& problem_;
95 bool calcVelocityInTransport_;
96};
97}
98#endif
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:149
Implementation of a interface velocity class for MPFA models.
Definition: velocityintransport.hh:42
void calculateVelocity(const Intersection &intersection, CellData &cellData)
Local velocity calculation.
Definition: velocityintransport.hh:66
FvMpfaVelocityInTransport(Problem &problem)
Constructs a FvMpfaVelocityInTransport object.
Definition: velocityintransport.hh:55
void calculateVelocityOnBoundary(const Intersection &intersection, CellData &cellData)
Local velocity calculation.
Definition: velocityintransport.hh:72
bool calculateVelocityInTransport()
Indicates if velocity is reconstructed the transport step.
Definition: velocityintransport.hh:78
void addOutputVtkFields(MultiWriter &writer)
Adds velocity output to the output file.
Definition: velocityintransport.hh:90
void initialize()
For initialization.
Definition: velocityintransport.hh:62
Base file for properties related to sequential models.