24#ifndef DUMUX_FREEFLOW_SHALLOW_WATER_FLUXVARIABLES_HH
25#define DUMUX_FREEFLOW_SHALLOW_WATER_FLUXVARIABLES_HH
37template<
class TypeTag>
40 typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView,
41 typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView,
42 typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView>
51 using GridVolumeVariables =
typename GridVariables::GridVolumeVariables;
53 using FVElementGeometry =
typename GridGeometry::LocalView;
54 using GridView =
typename GridGeometry::GridView;
56 using Element =
typename GridView::template Codim<0>::Entity;
57 using ElementVolumeVariables =
typename GridVolumeVariables::LocalView;
58 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
60 static constexpr bool enableAdvection = ModelTraits::enableAdvection();
61 static constexpr bool enableDiffusion = ModelTraits::enableDiffusion();
73 const SubControlVolumeFace& scvf)
const
78 return NumEqVector(0.0);
89 const SubControlVolumeFace& scvf)
const
93 return NumEqVector(0.0);
95 return NumEqVector(0.0);
Base class for the flux variables living on a sub control volume face.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
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 the flux variables living on a sub control volume face.
Definition: fluxvariablesbase.hh:45
const GetPropType< TypeTag, Properties::GridVolumeVariables >::LocalView & elemVolVars() const
Definition: fluxvariablesbase.hh:81
const GetPropType< TypeTag, Properties::GridGeometry >::LocalView & fvGeometry() const
Definition: fluxvariablesbase.hh:78
const Element & element() const
Definition: fluxvariablesbase.hh:72
const GetPropType< TypeTag, Properties::Problem > & problem() const
Definition: fluxvariablesbase.hh:69
The flux variables class for the shallow water model.
Definition: freeflow/shallowwater/fluxvariables.hh:43
NumEqVector diffusiveFlux(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf) const
Returns the diffusive flux (e.g. diffusion of tracer)
Definition: freeflow/shallowwater/fluxvariables.hh:85
NumEqVector advectiveFlux(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf) const
Returns the advective flux computed by the Riemann solver.
Definition: freeflow/shallowwater/fluxvariables.hh:69
Declares all properties used in Dumux.