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;
72 virtual std::string
phaseName(
int phaseIdx)
const {
return "none"; }
83 const Element& element,
84 const FVElementGeometry& fvGeometry,
85 const ElementVolumeVariables& elemVolVars,
86 const ElementFluxVarsCache& elemFluxVarsCache,
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
Velocity output for implicit (porous media) models.
Definition: io/velocityoutput.hh:41
virtual FieldType fieldType() const
returns the field type
Definition: io/velocityoutput.hh:75
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:72
FieldType
A container for possible velocity data types.
Definition: io/velocityoutput.hh:56
VelocityOutput()=default
Default constructor.
virtual bool enableOutput() const
returns whether or not velocity output is enabled
Definition: io/velocityoutput.hh:69
virtual int numFluidPhases() const
returns the number of phases
Definition: io/velocityoutput.hh:78
virtual void calculateVelocity(VelocityVector &velocity, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementFluxVarsCache &elemFluxVarsCache, int phaseIdx) const
Definition: io/velocityoutput.hh:82
virtual ~VelocityOutput()
virtual destructor
Definition: io/velocityoutput.hh:66