12#ifndef DUMUX_IO_VELOCITYOUTPUT_HH
13#define DUMUX_IO_VELOCITYOUTPUT_HH
17#include <dune/common/fvector.hh>
18#include <dune/common/exceptions.hh>
27template<
class Gr
idVariables>
30 using Scalar =
typename GridVariables::Scalar;
31 static constexpr int dimWorld = GridVariables::GridGeometry::GridView::dimensionworld;
32 using ElementVolumeVariables =
typename GridVariables::GridVolumeVariables::LocalView;
33 using ElementFluxVarsCache =
typename GridVariables::GridFluxVariablesCache::LocalView;
34 using FVElementGeometry =
typename GridVariables::GridGeometry::LocalView;
35 using Element =
typename GridVariables::GridGeometry::GridView::template Codim<0>::Entity;
60 virtual std::string
phaseName(
int phaseIdx)
const {
return "none"; }
71 const Element& element,
72 const FVElementGeometry& fvGeometry,
73 const ElementVolumeVariables& elemVolVars,
74 const ElementFluxVarsCache& elemFluxVarsCache,
Velocity output for implicit (porous media) models.
Definition: io/velocityoutput.hh:29
virtual FieldType fieldType() const
returns the field type
Definition: io/velocityoutput.hh:63
std::vector< Dune::FieldVector< Scalar, dimWorld > > VelocityVector
Definition: io/velocityoutput.hh:38
virtual std::string phaseName(int phaseIdx) const
returns the phase name of a given phase index
Definition: io/velocityoutput.hh:60
FieldType
A container for possible velocity data types.
Definition: io/velocityoutput.hh:44
VelocityOutput()=default
Default constructor.
virtual bool enableOutput() const
returns whether or not velocity output is enabled
Definition: io/velocityoutput.hh:57
virtual int numFluidPhases() const
returns the number of phases
Definition: io/velocityoutput.hh:66
virtual void calculateVelocity(VelocityVector &velocity, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementFluxVarsCache &elemFluxVarsCache, int phaseIdx) const
Definition: io/velocityoutput.hh:70
virtual ~VelocityOutput()
virtual destructor
Definition: io/velocityoutput.hh:54
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.