From a2ce25180de68803fd295d3d21519c8d1b3f2fb4 Mon Sep 17 00:00:00 2001 From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de> Date: Fri, 30 Dec 2016 09:02:34 +0100 Subject: [PATCH] [1p][fracturetest] use AtPos() methods in spatial params --- .../porousmediumflow/1p/implicit/fracturespatialparams.hh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/porousmediumflow/1p/implicit/fracturespatialparams.hh b/test/porousmediumflow/1p/implicit/fracturespatialparams.hh index 6b11d48943..8099bd5703 100644 --- a/test/porousmediumflow/1p/implicit/fracturespatialparams.hh +++ b/test/porousmediumflow/1p/implicit/fracturespatialparams.hh @@ -59,6 +59,9 @@ class FractureSpatialParams : public ImplicitSpatialParamsOneP<TypeTag> using SubControlVolume = typename GET_PROP_TYPE(TypeTag, SubControlVolume); using VolumeVariables = typename GET_PROP_TYPE(TypeTag, VolumeVariables); + static constexpr int dimWorld = GridView::dimensionworld; + using GlobalPosition = Dune::FieldVector<Scalar, dimWorld>; + public: /*! @@ -77,8 +80,7 @@ public: * \param fvGeometry The finite volume geometry of the element * \param scvIdx The local index of the sub-control volume */ - Scalar intrinsicPermeability (const SubControlVolume &scv, - const VolumeVariables& volVars) const + Scalar permeabilityAtPos (const GlobalPosition& globalPos) const { return 1e-12; } /*! @@ -88,7 +90,7 @@ public: * \param fvGeometry The finite volume geometry of the element * \param scvIdx The local index of the sub-control volume */ - Scalar porosity(const SubControlVolume &scv) const + Scalar porosityAtPos(const GlobalPosition& globalPos) const { return 0.4; } }; -- GitLab