24#ifndef DUMUX_IO_VELOCITYOUTPUT_HH
25#define DUMUX_IO_VELOCITYOUTPUT_HH
29#include <dune/common/fvector.hh>
30#include <dune/common/exceptions.hh>
39template<
class Gr
idVariables>
42 using Scalar =
typename GridVariables::Scalar;
43 static constexpr int dimWorld = GridVariables::GridGeometry::GridView::dimensionworld;
44 using ElementVolumeVariables =
typename GridVariables::GridVolumeVariables::LocalView;
45 using ElementFluxVarsCache =
typename GridVariables::GridFluxVariablesCache::LocalView;
46 using FVElementGeometry =
typename GridVariables::GridGeometry::LocalView;
47 using Element =
typename GridVariables::GridGeometry::GridView::template Codim<0>::Entity;
64 virtual std::string
phaseName(
int phaseIdx)
const {
return "none"; }
72 const Element& element,
73 const FVElementGeometry& fvGeometry,
74 const ElementVolumeVariables& elemVolVars,
75 const ElementFluxVarsCache& elemFluxVarsCache,
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
Velocity output for implicit (porous media) models.
Definition: io/velocityoutput.hh:41
std::vector< Dune::FieldVector< Scalar, dimWorld > > VelocityVector
Definition: io/velocityoutput.hh:50
virtual std::string phaseName(int phaseIdx) const
returns the phase name of a given phase index
Definition: io/velocityoutput.hh:64
VelocityOutput()=default
Default constructor.
virtual bool enableOutput() const
returns whether or not velocity output is enabled
Definition: io/velocityoutput.hh:61
virtual int numFluidPhases() const
returns the number of phases
Definition: io/velocityoutput.hh:67
virtual void calculateVelocity(VelocityVector &velocity, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementFluxVarsCache &elemFluxVarsCache, int phaseIdx) const
Definition: io/velocityoutput.hh:71
virtual ~VelocityOutput()
virtual destructor
Definition: io/velocityoutput.hh:58