25#ifndef DUMUX_TRACER_TEST_SPATIAL_PARAMS_HH
26#define DUMUX_TRACER_TEST_SPATIAL_PARAMS_HH
37template<
class Gr
idGeometry,
class Scalar>
40 TracerTestSpatialParams<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;
50 static const int dimWorld = GridView::dimensionworld;
51 using GlobalPosition =
typename Dune::FieldVector<Scalar, dimWorld>;
73 template<
class ElementSolution>
75 const SubControlVolume& scv,
76 const ElementSolution& elemSol)
const
84 const SubControlVolume& scv)
const
89 const SubControlVolume& scv)
const
96 template<
class ElementVolumeVariables>
98 const FVElementGeometry& fvGeometry,
99 const ElementVolumeVariables& elemVolVars,
100 const SubControlVolumeFace& scvf)
const
102 return volumeFlux_[scvf.index()];
109 std::vector<Scalar> volumeFlux_;
The base class for spatial parameters of one-phase problems using a fully implicit discretization met...
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: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:41
Scalar fluidMolarMass(const Element &element, const SubControlVolume &scv) const
Fluid molar mass.
Definition: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:88
Scalar dispersivity(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Defines the dispersivity.
Definition: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:74
Scalar fluidMolarMass(const GlobalPosition &globalPos) const
Definition: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:92
void setVolumeFlux(const std::vector< Scalar > &f)
Definition: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:105
Scalar volumeFlux(const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf) const
Velocity field.
Definition: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:97
TracerTestSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:55
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity .
Definition: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:63
Scalar fluidDensity(const Element &element, const SubControlVolume &scv) const
Fluid density.
Definition: porousmediumflow/tracer/1ptracer/spatialparams_tracer.hh:83
Defines a type tag and some properties for models using the box scheme.