24#ifndef DUMUX_TWOP_TRACER_TEST_SPATIAL_PARAMS_HH
25#define DUMUX_TWOP_TRACER_TEST_SPATIAL_PARAMS_HH
37template<
class Gr
idGeometry,
class Scalar>
40 TwoPTracerTestSpatialParams<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>;
72 const SubControlVolume& scv)
const
73 {
return density_[this->
gridGeometry().elementMapper().index(element)];; }
80 const SubControlVolume& scv)
const
87 template<
class ElementVolumeVariables>
89 const FVElementGeometry& fvGeometry,
90 const ElementVolumeVariables& elemVolVars,
91 const SubControlVolumeFace& scvf)
const
92 {
return volumeFlux_[scvf.index()]; }
99 const SubControlVolume& scv)
const
100 {
return saturation_[scv.dofIndex()]; }
106 std::vector<Scalar> volumeFlux_;
107 std::vector<Scalar> density_;
108 std::vector<Scalar> saturation_;
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
Definition: fv.hh:57
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/2ptracer/spatialparams_tracer.hh:41
TwoPTracerTestSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:56
Scalar volumeFlux(const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf) const
Velocity field.
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:88
Scalar saturation(const Element &element, const SubControlVolume &scv) const
saturation from twoPProblem
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:98
void setDensity(const std::vector< Scalar > &d)
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:75
void setSaturation(const std::vector< Scalar > &s)
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:102
Scalar fluidDensity(const Element &element, const SubControlVolume &scv) const
Fluid density.
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:71
Scalar fluidMolarMass(const GlobalPosition &globalPos) const
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:83
Scalar fluidMolarMass(const Element &element, const SubControlVolume &scv) const
fluid molar mass
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:79
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity .
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:64
void setVolumeFlux(const std::vector< Scalar > &f)
Definition: porousmediumflow/tracer/2ptracer/spatialparams_tracer.hh:94
Defines a type tag and some properties for models using the box scheme.