25#ifndef DUMUX_TEST_TPFAFACETCOUPLING_TRACER_SPATIALPARAMS_HH
26#define DUMUX_TEST_TPFAFACETCOUPLING_TRACER_SPATIALPARAMS_HH
37template<
class Gr
idGeometry,
class Scalar>
40 TracerSpatialParams<GridGeometry, Scalar>>
42 using GridView =
typename GridGeometry::GridView;
43 using FVElementGeometry =
typename GridGeometry::LocalView;
44 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
45 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
46 using Element =
typename GridView::template Codim<0>::Entity;
51 static constexpr int dimWorld = GridView::dimensionworld;
52 using GlobalPosition =
typename Dune::FieldVector<Scalar, dimWorld>;
57 const std::vector< std::vector<Scalar> >& volumeFluxes,
58 const std::string& paramGroup =
"")
60 , volumeFlux_(volumeFluxes)
76 const SubControlVolume& scv)
const
81 const SubControlVolume& scv)
const
88 template<
class ElementVolumeVariables>
90 const FVElementGeometry& fvGeometry,
91 const ElementVolumeVariables& elemVolVars,
92 const SubControlVolumeFace& scvf)
const
94 return isBox ? volumeFlux_[this->
gridGeometry().elementMapper().index(element)][scvf.index()]
95 : volumeFlux_[scvf.index()][0];
99 std::vector< std::vector<Scalar> > volumeFlux_;
The base class for spatial parameters of one-phase problems using a fully implicit discretization met...
T getParamFromGroup(Args &&... args)
A free function to get a parameter from the parameter tree singleton with a model group.
Definition: parameters.hh:438
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
The base class for spatial parameters of one-phase problems using a fully implicit discretization met...
Definition: fv1p.hh:77
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fv1p.hh:334
Definition of the spatial parameters for the tracer problem.
Definition: multidomain/facet/tracer_tracer/spatialparams_tracer.hh:41
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity .
Definition: multidomain/facet/tracer_tracer/spatialparams_tracer.hh:69
TracerSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry, const std::vector< std::vector< Scalar > > &volumeFluxes, const std::string ¶mGroup="")
Definition: multidomain/facet/tracer_tracer/spatialparams_tracer.hh:56
Scalar fluidMolarMass(const GlobalPosition &globalPos) const
Definition: multidomain/facet/tracer_tracer/spatialparams_tracer.hh:84
Scalar fluidDensity(const Element &element, const SubControlVolume &scv) const
Definition: multidomain/facet/tracer_tracer/spatialparams_tracer.hh:75
Scalar fluidMolarMass(const Element &element, const SubControlVolume &scv) const
Fluid molar mass.
Definition: multidomain/facet/tracer_tracer/spatialparams_tracer.hh:80
Scalar volumeFlux(const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf) const
Velocity field.
Definition: multidomain/facet/tracer_tracer/spatialparams_tracer.hh:89
Defines a type tag and some properties for models using the box scheme.