19#ifndef DUMUX_FVVELOCITY_HH
20#define DUMUX_FVVELOCITY_HH
58 velocity_.initialize();
70 template<
class MultiWriter>
73 velocity_.addOutputVtkFields(writer);
81 problem_(problem), velocity_(problem)
95template<
class TypeTag,
class Velocity>
98 for (
const auto& element : elements(problem_.gridView()))
101 int globalIdxI = problem_.variables().index(element);
102 CellData& cellDataI = problem_.variables().cellData(globalIdxI);
106 for (
const auto& intersection :
intersections(problem_.gridView(), element))
109 if (intersection.neighbor())
111 int isIndex = intersection.indexInInside();
113 if (!cellDataI.fluxData().haveVelocity(isIndex))
114 velocity_.calculateVelocity(intersection, cellDataI);
120 velocity_.calculateVelocityOnBoundary(intersection, cellDataI);
#define GET_PROP_TYPE(TypeTag, PropTagName)
Definition: propertysystemmacros.hh:283
Define some often used mathematical functions.
Default implementation of velocity class.
Dune::IteratorRange< typename MultiDomainGlue< DomainGridView, TargetGridView, DomainMapper, TargetMapper >::Intersections::const_iterator > intersections(const MultiDomainGlue< DomainGridView, TargetGridView, DomainMapper, TargetMapper > &glue)
Range generator to iterate with range-based for loops over all intersections as follows: for (const a...
Definition: glue.hh:62
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Property tag Velocity
The type velocity reconstruction.
Definition: porousmediumflow/sequential/properties.hh:67
Base class for finite volume velocity reconstruction.
Definition: sequential/cellcentered/velocity.hh:48
void addOutputVtkFields(MultiWriter &writer)
Adds velocity output to the output file.
Definition: sequential/cellcentered/velocity.hh:71
void calculateVelocity()
Function which reconstructs a global velocity field.
Definition: sequential/cellcentered/velocity.hh:96
void initialize()
Initialize velocity implementation.
Definition: sequential/cellcentered/velocity.hh:56
FVVelocity(Problem &problem)
Constructs a FVVelocity object.
Definition: sequential/cellcentered/velocity.hh:80
Base file for properties related to sequential IMPET algorithms.