Skip to content
Snippets Groups Projects
Commit 90c3d579 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[test][3pni] Adapt spatial params

parent b9de103e
No related branches found
No related tags found
1 merge request!1607Feature/new materiallaw 2p
...@@ -19,3 +19,11 @@ AddVelocity = true #Enable velocity output ...@@ -19,3 +19,11 @@ AddVelocity = true #Enable velocity output
SolidDensity = 2700 SolidDensity = 2700
SolidThermalConductivity = 2.8 SolidThermalConductivity = 2.8
SolidHeatCapacity = 790 SolidHeatCapacity = 790
[SpatialParams]
Swr = 0.12
Snr = 0.10
Sgr = 0.01
ParkerVanGenuchtenAlpha = 0.5
ParkerVanGenuchtenN = 4
ParkerVanGenuchtenRegardSnrForKrn = true
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
#include <dumux/porousmediumflow/properties.hh> #include <dumux/porousmediumflow/properties.hh>
#include <dumux/material/spatialparams/fv.hh> #include <dumux/material/spatialparams/fv.hh>
#include <dumux/material/fluidmatrixinteractions/3p/regularizedparkervangen3p.hh> #include <dumux/material/fluidmatrixinteractions/3p/parkervangenuchten.hh>
#include <dumux/material/fluidmatrixinteractions/3p/regularizedparkervangen3pparams.hh>
#include <dumux/material/fluidmatrixinteractions/3p/efftoabslaw.hh>
namespace Dumux { namespace Dumux {
...@@ -49,36 +47,20 @@ class ThreePNISpatialParams ...@@ -49,36 +47,20 @@ class ThreePNISpatialParams
using ParentType = FVSpatialParams<GridGeometry, Scalar, using ParentType = FVSpatialParams<GridGeometry, Scalar,
ThreePNISpatialParams<GridGeometry, Scalar>>; ThreePNISpatialParams<GridGeometry, Scalar>>;
using EffectiveLaw = RegularizedParkerVanGen3P<Scalar>;
using GlobalPosition = typename Element::Geometry::GlobalCoordinate; using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
using ThreePhasePcKrSw = FluidMatrix::ParkerVanGenuchten3PDefault<Scalar>;
public: public:
//! Export permeability type //! Export permeability type
using PermeabilityType = Scalar; using PermeabilityType = Scalar;
using MaterialLaw = EffToAbsLaw<EffectiveLaw>;
using MaterialLawParams = typename MaterialLaw::Params;
ThreePNISpatialParams(std::shared_ptr<const GridGeometry> gridGeometry) ThreePNISpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
: ParentType(gridGeometry) : ParentType(gridGeometry)
, pcKrSwCurve_("SpatialParams")
{ {
permeability_ = 1e-10; permeability_ = 1e-10;
porosity_ = 0.4; porosity_ = 0.4;
// residual saturations
materialParams_.setSwr(0.12);
materialParams_.setSnr(0.10);
materialParams_.setSgr(0.01);
// parameters for the 3phase van Genuchten law
materialParams_.setVgAlpha(0.5);
materialParams_.setVgn(4.0);
materialParams_.setKrRegardsSnr(true);
// parameters for adsorption
materialParams_.setKdNAPL(0.);
materialParams_.setRhoBulk(1500.);
} }
/*! /*!
...@@ -102,18 +84,18 @@ public: ...@@ -102,18 +84,18 @@ public:
} }
/*! /*!
* \brief Returns the parameter object for the Brooks-Corey material law * \brief Returns the fluid-matrix interaction law at a given location
* *
* \param globalPos The global position * \param globalPos The global coordinates for the given location
*/ */
const MaterialLawParams& materialLawParamsAtPos(const GlobalPosition& globalPos) const auto fluidMatrixInteractionAtPos(const GlobalPosition& globalPos) const
{ {
return materialParams_; return makeFluidMatrixInteraction(pcKrSwCurve_);
} }
private: private:
MaterialLawParams materialParams_; const ThreePhasePcKrSw pcKrSwCurve_;
Scalar permeability_; Scalar permeability_;
Scalar porosity_; Scalar porosity_;
}; };
......
...@@ -20,3 +20,11 @@ AddVelocity = true #Enable velocity output ...@@ -20,3 +20,11 @@ AddVelocity = true #Enable velocity output
SolidDensity = 2700 SolidDensity = 2700
SolidThermalConductivity = 2.8 SolidThermalConductivity = 2.8
SolidHeatCapacity = 790 SolidHeatCapacity = 790
[SpatialParams]
Swr = 0.12
Snr = 0.10
Sgr = 0.01
ParkerVanGenuchtenAlpha = 0.5
ParkerVanGenuchtenN = 4
ParkerVanGenuchtenRegardSnrForKrn = true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment