Commit 3cc88ee5 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

[test][richards] use new base spatial params in lens test

parent 42d52aea
Pipeline #11268 waiting for manual action with stages
......@@ -106,14 +106,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>
......@@ -38,10 +38,10 @@ namespace Dumux {
*/
template<class GridGeometry, class Scalar>
class RichardsLensSpatialParams
: public FVSpatialParams<GridGeometry, Scalar, RichardsLensSpatialParams<GridGeometry, Scalar>>
: public FVPorousMediumSpatialParamsMP<GridGeometry, Scalar, RichardsLensSpatialParams<GridGeometry, Scalar>>
{
using ThisType = RichardsLensSpatialParams<GridGeometry, Scalar>;
using ParentType = FVSpatialParams<GridGeometry, Scalar, ThisType>;
using ParentType = FVPorousMediumSpatialParamsMP<GridGeometry, Scalar, ThisType>;
using GridView = typename GridGeometry::GridView;
using FVElementGeometry = typename GridGeometry::LocalView;
using SubControlVolume = typename FVElementGeometry::SubControlVolume;
......@@ -117,6 +117,13 @@ public:
return makeFluidMatrixInteraction(pcKrSwCurveOuterDomain_);
}
/*!
* \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