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 some often used mathematical functions.
Default implementation of velocity class.
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
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.