Skip to content
Snippets Groups Projects
Commit 71fb1d0d authored by Yue Wang's avatar Yue Wang Committed by Kilian Weishaupt
Browse files

[test][2p1c] new material law

parent 97cac9dc
No related branches found
No related tags found
1 merge request!1607Feature/new materiallaw 2p
......@@ -13,3 +13,9 @@ Name = test_boxsteaminjection # name passed to the output routines
SolidDensity = 2650
SolidThermalConductivity = 2.8
SolidHeatCapacity = 850.0
[SpatialParams]
Swr = 0.1
Snr = 0
VanGenuchtenAlpha = 0.0028
VanGenuchtenN = 2.0
......@@ -13,3 +13,9 @@ Name = test_ccsteaminjection # name passed to the output routines
SolidDensity = 2650
SolidThermalConductivity = 2.8
SolidHeatCapacity = 850.0
[SpatialParams]
Swr = 0.1
Snr = 0
VanGenuchtenAlpha = 0.0028
VanGenuchtenN = 2.0
......@@ -27,8 +27,7 @@
#include <dumux/porousmediumflow/properties.hh>
#include <dumux/material/spatialparams/fv.hh>
#include <dumux/material/fluidmatrixinteractions/2p/regularizedvangenuchten.hh>
#include <dumux/material/fluidmatrixinteractions/2p/efftoabslaw.hh>
#include <dumux/material/fluidmatrixinteractions/2p/vangenuchten.hh>
namespace Dumux {
/*!
......@@ -53,23 +52,16 @@ class InjectionProblemSpatialParams
using DimWorldMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
using EffectiveLaw = RegularizedVanGenuchten<Scalar>;
using PcKrSwCurve = FluidMatrix::VanGenuchtenDefault<Scalar>;
public:
using MaterialLaw = EffToAbsLaw<EffectiveLaw>;
using MaterialLawParams = typename MaterialLaw::Params;
using PermeabilityType = DimWorldMatrix;
InjectionProblemSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
: ParentType(gridGeometry)
, pcKrSwCurve_("SpatialParams")
{
gasWetting_ = getParam<bool>("SpatialParams.GasWetting", false);
// set Van Genuchten Parameters
materialParams_.setSwr(0.1);
materialParams_.setSnr(0.0);
materialParams_.setVgAlpha(0.0028);
materialParams_.setVgn(2.0);
}
/*!
......@@ -104,9 +96,9 @@ public:
*
* \param globalPos The global position
*/
const MaterialLawParams& materialLawParamsAtPos(const GlobalPosition& globalPos) const
auto fluidMatrixInteractionAtPos(const GlobalPosition& globalPos) const
{
return materialParams_;
return makeFluidMatrixInteraction(pcKrSwCurve_);
}
/*!
......@@ -126,7 +118,7 @@ public:
private:
bool gasWetting_;
MaterialLawParams materialParams_;
const PcKrSwCurve pcKrSwCurve_;
};
}
......
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