Commit a48c93fd authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

[test][porousmediumflow][richardsnc] use new base spatial params

parent 91dae18d
......@@ -156,14 +156,6 @@ public:
const std::string& name() const
{ return name_; }
/*!
* \brief Returns the temperature [K] within a finite volume
*
* This problem assumes a temperature of 10 degrees Celsius.
*/
Scalar temperature() const
{ return 273.15 + 10; }; // -> 10°C
/*!
* \brief Returns the reference pressure [Pa] of the nonwetting
* fluid phase within a finite volume
......
......@@ -25,7 +25,7 @@
#ifndef DUMUX_RICHARDS_LENS_SPATIAL_PARAMETERS_HH
#define DUMUX_RICHARDS_LENS_SPATIAL_PARAMETERS_HH
#include <dumux/material/spatialparams/fv.hh>
#include <dumux/porousmediumflow/fvspatialparamsmp.hh>
#include <dumux/material/fluidmatrixinteractions/2p/vangenuchten.hh>
#include <dumux/porousmediumflow/richards/model.hh>
......@@ -39,11 +39,11 @@ namespace Dumux {
*/
template<class GridGeometry, class Scalar>
class RichardsWellTracerSpatialParams
: public FVSpatialParams<GridGeometry, Scalar,
: public FVPorousMediumSpatialParamsMP<GridGeometry, Scalar,
RichardsWellTracerSpatialParams<GridGeometry, Scalar>>
{
using GridView = typename GridGeometry::GridView;
using ParentType = FVSpatialParams<GridGeometry, Scalar,
using ParentType = FVPorousMediumSpatialParamsMP<GridGeometry, Scalar,
RichardsWellTracerSpatialParams<GridGeometry, Scalar>>;
enum { dimWorld=GridView::dimensionworld };
......@@ -105,6 +105,14 @@ public:
return makeFluidMatrixInteraction(outerPcKrSwCurve_);
}
/*!
* \brief Returns the temperature [K] at a given location
*
* \param globalPos The global coordinates for the given location
*/
Scalar temperatureAtPos(const GlobalPosition& globalPos) const
{ return 273.15 + 10.0; }; // -> 10°C
private:
bool isInLens_(const GlobalPosition &globalPos) const
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment