From b111fda2964959993584f5b988ee43567ac24508 Mon Sep 17 00:00:00 2001 From: Kilian <kilian.weishaupt@iws.uni-stuttgart.de> Date: Fri, 5 Jun 2020 08:45:09 +0200 Subject: [PATCH] [test][md][stokesdarcy] Use BoundaryTypes directly --- .../boundary/darcydarcy/1p_1p/problem.hh | 3 ++- .../boundary/darcydarcy/1p_2p/problem.hh | 3 ++- .../diffusionlawcomparison/problem_darcy.hh | 16 ++++++++-------- .../diffusionlawcomparison/problem_stokes.hh | 13 ++++++++----- .../stokesdarcy/1p2c_1p2c/problem_darcy.hh | 12 +++++++----- .../stokesdarcy/1p2c_1p2c/problem_stokes.hh | 12 +++++++----- .../stokesdarcy/1p2c_2p2c/problem_darcy.hh | 9 +++++---- .../stokesdarcy/1p2c_2p2c/problem_stokes.hh | 13 +++++++------ .../stokesdarcy/1p3c_1p3c/problem_darcy.hh | 12 ++++++------ .../stokesdarcy/1p3c_1p3c/problem_stokes.hh | 14 +++++++------- .../1p_1p/convergencetest/problem_darcy.hh | 10 ++++++---- .../1p_1p/convergencetest/problem_stokes.hh | 11 +++++++---- .../boundary/stokesdarcy/1p_1p/problem_darcy.hh | 10 ++++++---- .../boundary/stokesdarcy/1p_1p/problem_stokes.hh | 12 +++++++----- .../boundary/stokesdarcy/1p_2p/problem_darcy.hh | 4 +++- .../boundary/stokesdarcy/1p_2p/problem_stokes.hh | 6 ++++-- 16 files changed, 92 insertions(+), 68 deletions(-) diff --git a/test/multidomain/boundary/darcydarcy/1p_1p/problem.hh b/test/multidomain/boundary/darcydarcy/1p_1p/problem.hh index 287f1b1940..9d55dc44fb 100644 --- a/test/multidomain/boundary/darcydarcy/1p_1p/problem.hh +++ b/test/multidomain/boundary/darcydarcy/1p_1p/problem.hh @@ -26,6 +26,7 @@ #define DUMUX_ONEP_SUB_TEST_PROBLEM_HH #include <dune/common/indices.hh> +#include <dumux/common/boundarytypes.hh> #include <dumux/porousmediumflow/problem.hh> #include "spatialparams.hh" @@ -54,7 +55,7 @@ class OnePTestProblem using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; static constexpr int dimWorld = GridView::dimensionworld; using GlobalPosition = typename Element::Geometry::GlobalCoordinate; static constexpr auto domainIdx = Dune::index_constant<tag>{}; diff --git a/test/multidomain/boundary/darcydarcy/1p_2p/problem.hh b/test/multidomain/boundary/darcydarcy/1p_2p/problem.hh index 90a0063990..c1feda9add 100644 --- a/test/multidomain/boundary/darcydarcy/1p_2p/problem.hh +++ b/test/multidomain/boundary/darcydarcy/1p_2p/problem.hh @@ -26,6 +26,7 @@ #define DUMUX_ONEP_SUB_TEST_PROBLEM_HH #include <dune/common/indices.hh> +#include <dumux/common/boundarytypes.hh> #include <dumux/porousmediumflow/problem.hh> #include "spatialparams.hh" @@ -55,7 +56,7 @@ class OnePTestProblem using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; static constexpr int dimWorld = GridView::dimensionworld; using GlobalPosition = typename Element::Geometry::GlobalCoordinate; diff --git a/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/diffusionlawcomparison/problem_darcy.hh b/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/diffusionlawcomparison/problem_darcy.hh index 1b40699329..4ae5b9639c 100644 --- a/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/diffusionlawcomparison/problem_darcy.hh +++ b/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/diffusionlawcomparison/problem_darcy.hh @@ -29,19 +29,19 @@ #include <dune/grid/yaspgrid.hh> #include <dumux/discretization/cctpfa.hh> -#include <dumux/flux/maxwellstefanslaw.hh> -#include <dumux/porousmediumflow/1pnc/model.hh> -#include <dumux/porousmediumflow/problem.hh> +#include <dumux/common/boundarytypes.hh> -#include "./../spatialparams.hh" +#include <dumux/flux/maxwellstefanslaw.hh> +#include <dumux/material/fluidmatrixinteractions/diffusivityconstanttortuosity.hh> #include <dumux/material/fluidsystems/1padapter.hh> #include <dumux/material/fluidsystems/h2oair.hh> -#include <dumux/material/fluidmatrixinteractions/diffusivityconstanttortuosity.hh> -// for StokesDarcyCouplingOptions -#include <dumux/multidomain/boundary/stokesdarcy/couplingdata.hh> +#include <dumux/porousmediumflow/1pnc/model.hh> +#include <dumux/porousmediumflow/problem.hh> + +#include "./../spatialparams.hh" #ifndef DIFFUSIONTYPE #define DIFFUSIONTYPE FicksLaw<TypeTag> @@ -110,7 +110,7 @@ class DarcySubProblem : public PorousMediumFlowProblem<TypeTag> using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView; using SubControlVolume = typename FVElementGeometry::SubControlVolume; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; diff --git a/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/diffusionlawcomparison/problem_stokes.hh b/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/diffusionlawcomparison/problem_stokes.hh index 128fad0286..1d1ab1b7e3 100644 --- a/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/diffusionlawcomparison/problem_stokes.hh +++ b/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/diffusionlawcomparison/problem_stokes.hh @@ -32,13 +32,16 @@ #include <dune/grid/yaspgrid.hh> -#include <dumux/material/fluidsystems/1padapter.hh> -#include <dumux/material/fluidsystems/h2oair.hh> +#include <dumux/discretization/staggered/freeflow/properties.hh> + #include <dumux/flux/maxwellstefanslaw.hh> -#include <dumux/freeflow/navierstokes/problem.hh> -#include <dumux/discretization/staggered/freeflow/properties.hh> #include <dumux/freeflow/compositional/navierstokesncmodel.hh> +#include <dumux/freeflow/navierstokes/boundarytypes.hh> +#include <dumux/freeflow/navierstokes/problem.hh> + +#include <dumux/material/fluidsystems/1padapter.hh> +#include <dumux/material/fluidsystems/h2oair.hh> // for StokesDarcyCouplingOptions #include <dumux/multidomain/boundary/stokesdarcy/couplingdata.hh> @@ -108,7 +111,7 @@ class StokesSubProblem : public NavierStokesProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::NavierStokesBoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; using FVElementGeometry = typename GridGeometry::LocalView; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; diff --git a/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/problem_darcy.hh b/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/problem_darcy.hh index f536c2dbf1..ce1ac8bf01 100644 --- a/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/problem_darcy.hh +++ b/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/problem_darcy.hh @@ -29,15 +29,17 @@ #include <dumux/discretization/cctpfa.hh> +#include <dumux/common/boundarytypes.hh> + +#include <dumux/material/fluidmatrixinteractions/diffusivityconstanttortuosity.hh> +#include <dumux/material/fluidsystems/1padapter.hh> +#include <dumux/material/fluidsystems/h2oair.hh> + #include <dumux/porousmediumflow/1pnc/model.hh> #include <dumux/porousmediumflow/problem.hh> #include "spatialparams.hh" -#include <dumux/material/fluidsystems/1padapter.hh> -#include <dumux/material/fluidsystems/h2oair.hh> -#include <dumux/material/fluidmatrixinteractions/diffusivityconstanttortuosity.hh> - namespace Dumux { template <class TypeTag> class DarcySubProblem; @@ -97,7 +99,7 @@ class DarcySubProblem : public PorousMediumFlowProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView; using SubControlVolume = typename FVElementGeometry::SubControlVolume; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; diff --git a/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/problem_stokes.hh b/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/problem_stokes.hh index 4ac51cebda..e5456d4dce 100644 --- a/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/problem_stokes.hh +++ b/test/multidomain/boundary/stokesdarcy/1p2c_1p2c/problem_stokes.hh @@ -27,12 +27,14 @@ #include <dune/grid/yaspgrid.hh> -#include <dumux/material/fluidsystems/1padapter.hh> -#include <dumux/material/fluidsystems/h2oair.hh> - -#include <dumux/freeflow/navierstokes/problem.hh> #include <dumux/discretization/staggered/freeflow/properties.hh> + #include <dumux/freeflow/compositional/navierstokesncmodel.hh> +#include <dumux/freeflow/navierstokes/boundarytypes.hh> +#include <dumux/freeflow/navierstokes/problem.hh> + +#include <dumux/material/fluidsystems/1padapter.hh> +#include <dumux/material/fluidsystems/h2oair.hh> namespace Dumux { template <class TypeTag> @@ -90,7 +92,7 @@ class StokesSubProblem : public NavierStokesProblem<TypeTag> using GridView = typename GetPropType<TypeTag, Properties::GridGeometry>::GridView; using Scalar = GetPropType<TypeTag, Properties::Scalar>; using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::NavierStokesBoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; using FVElementGeometry = typename GridGeometry::LocalView; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; diff --git a/test/multidomain/boundary/stokesdarcy/1p2c_2p2c/problem_darcy.hh b/test/multidomain/boundary/stokesdarcy/1p2c_2p2c/problem_darcy.hh index e7c3aa40ac..e861194670 100644 --- a/test/multidomain/boundary/stokesdarcy/1p2c_2p2c/problem_darcy.hh +++ b/test/multidomain/boundary/stokesdarcy/1p2c_2p2c/problem_darcy.hh @@ -28,13 +28,14 @@ #include <dune/grid/yaspgrid.hh> #include <dumux/discretization/cctpfa.hh> -#include <dumux/multidomain/boundary/stokesdarcy/couplingdata.hh> -#include <dumux/porousmediumflow/2p2c/model.hh> -#include <dumux/porousmediumflow/problem.hh> +#include <dumux/common/boundarytypes.hh> #include <dumux/material/fluidsystems/h2oair.hh> +#include <dumux/porousmediumflow/problem.hh> +#include <dumux/porousmediumflow/2p2c/model.hh> + #include "spatialparams.hh" namespace Dumux { @@ -93,7 +94,7 @@ class DarcySubProblem : public PorousMediumFlowProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using VolumeVariables = GetPropType<TypeTag, Properties::VolumeVariables>; using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView; using SubControlVolume = typename FVElementGeometry::SubControlVolume; diff --git a/test/multidomain/boundary/stokesdarcy/1p2c_2p2c/problem_stokes.hh b/test/multidomain/boundary/stokesdarcy/1p2c_2p2c/problem_stokes.hh index 870acc8f3e..1dfcb69a13 100644 --- a/test/multidomain/boundary/stokesdarcy/1p2c_2p2c/problem_stokes.hh +++ b/test/multidomain/boundary/stokesdarcy/1p2c_2p2c/problem_stokes.hh @@ -27,13 +27,14 @@ #include <dune/grid/yaspgrid.hh> -#include <dumux/material/fluidsystems/1padapter.hh> -#include <dumux/material/fluidsystems/h2oair.hh> - -#include <dumux/freeflow/navierstokes/problem.hh> #include <dumux/discretization/staggered/freeflow/properties.hh> + #include <dumux/freeflow/compositional/navierstokesncmodel.hh> -#include <dumux/multidomain/boundary/stokesdarcy/couplingdata.hh> +#include <dumux/freeflow/navierstokes/boundarytypes.hh> +#include <dumux/freeflow/navierstokes/problem.hh> + +#include <dumux/material/fluidsystems/1padapter.hh> +#include <dumux/material/fluidsystems/h2oair.hh> namespace Dumux { template <class TypeTag> @@ -97,7 +98,7 @@ class StokesSubProblem : public NavierStokesProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::NavierStokesBoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; using FVElementGeometry = typename GridGeometry::LocalView; diff --git a/test/multidomain/boundary/stokesdarcy/1p3c_1p3c/problem_darcy.hh b/test/multidomain/boundary/stokesdarcy/1p3c_1p3c/problem_darcy.hh index 8a6e9b2573..13555be963 100644 --- a/test/multidomain/boundary/stokesdarcy/1p3c_1p3c/problem_darcy.hh +++ b/test/multidomain/boundary/stokesdarcy/1p3c_1p3c/problem_darcy.hh @@ -28,15 +28,15 @@ #include <dune/grid/yaspgrid.hh> #include <dumux/discretization/cctpfa.hh> -#include <dumux/flux/maxwellstefanslaw.hh> -#include <dumux/porousmediumflow/1pnc/model.hh> -#include <dumux/porousmediumflow/problem.hh> +#include <dumux/common/boundarytypes.hh> + +#include <dumux/flux/maxwellstefanslaw.hh> #include <dumux/material/fluidmatrixinteractions/diffusivityconstanttortuosity.hh> -// for StokesDarcyCouplingOptions -#include <dumux/multidomain/boundary/stokesdarcy/couplingdata.hh> +#include <dumux/porousmediumflow/1pnc/model.hh> +#include <dumux/porousmediumflow/problem.hh> #include "../1p2c_1p2c/spatialparams.hh" #include "h2n2co2fluidsystem.hh" @@ -101,7 +101,7 @@ class DarcySubProblem : public PorousMediumFlowProblem<TypeTag> using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView; using SubControlVolume = typename FVElementGeometry::SubControlVolume; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; diff --git a/test/multidomain/boundary/stokesdarcy/1p3c_1p3c/problem_stokes.hh b/test/multidomain/boundary/stokesdarcy/1p3c_1p3c/problem_stokes.hh index 02bbddeb37..5b16159b3a 100644 --- a/test/multidomain/boundary/stokesdarcy/1p3c_1p3c/problem_stokes.hh +++ b/test/multidomain/boundary/stokesdarcy/1p3c_1p3c/problem_stokes.hh @@ -27,15 +27,15 @@ #include <dune/grid/yaspgrid.hh> -#include "h2n2co2fluidsystem.hh" -#include <dumux/flux/maxwellstefanslaw.hh> - -#include <dumux/freeflow/navierstokes/problem.hh> #include <dumux/discretization/staggered/freeflow/properties.hh> + #include <dumux/freeflow/compositional/navierstokesncmodel.hh> +#include <dumux/freeflow/navierstokes/boundarytypes.hh> +#include <dumux/freeflow/navierstokes/problem.hh> + +#include <dumux/flux/maxwellstefanslaw.hh> -// for StokesDarcyCouplingOptions -#include <dumux/multidomain/boundary/stokesdarcy/couplingdata.hh> +#include "h2n2co2fluidsystem.hh" namespace Dumux { template <class TypeTag> @@ -93,7 +93,7 @@ class StokesSubProblem : public NavierStokesProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::NavierStokesBoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; using FVElementGeometry = typename GridGeometry::LocalView; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; diff --git a/test/multidomain/boundary/stokesdarcy/1p_1p/convergencetest/problem_darcy.hh b/test/multidomain/boundary/stokesdarcy/1p_1p/convergencetest/problem_darcy.hh index f11e18d02a..e1a116a2ff 100644 --- a/test/multidomain/boundary/stokesdarcy/1p_1p/convergencetest/problem_darcy.hh +++ b/test/multidomain/boundary/stokesdarcy/1p_1p/convergencetest/problem_darcy.hh @@ -30,15 +30,17 @@ #include <dumux/discretization/cctpfa.hh> +#include <dumux/common/boundarytypes.hh> + +#include <dumux/material/components/constant.hh> +#include <dumux/material/fluidsystems/1pliquid.hh> + #include <dumux/porousmediumflow/1p/model.hh> #include <dumux/porousmediumflow/problem.hh> #include "spatialparams.hh" #include "testcase.hh" -#include <dumux/material/components/constant.hh> -#include <dumux/material/fluidsystems/1pliquid.hh> - namespace Dumux { template <class TypeTag> class DarcySubProblem; @@ -86,7 +88,7 @@ class DarcySubProblem : public PorousMediumFlowProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using VolumeVariables = GetPropType<TypeTag, Properties::VolumeVariables>; using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView; using SubControlVolume = typename FVElementGeometry::SubControlVolume; diff --git a/test/multidomain/boundary/stokesdarcy/1p_1p/convergencetest/problem_stokes.hh b/test/multidomain/boundary/stokesdarcy/1p_1p/convergencetest/problem_stokes.hh index dd2d66d2ec..8c03263bdf 100644 --- a/test/multidomain/boundary/stokesdarcy/1p_1p/convergencetest/problem_stokes.hh +++ b/test/multidomain/boundary/stokesdarcy/1p_1p/convergencetest/problem_stokes.hh @@ -28,12 +28,15 @@ #include <dune/common/fvector.hh> #include <dune/grid/yaspgrid.hh> +#include <dumux/discretization/staggered/freeflow/properties.hh> + +#include <dumux/freeflow/navierstokes/boundarytypes.hh> +#include <dumux/freeflow/navierstokes/model.hh> +#include <dumux/freeflow/navierstokes/problem.hh> + #include <dumux/material/fluidsystems/1pliquid.hh> #include <dumux/material/components/constant.hh> -#include <dumux/freeflow/navierstokes/problem.hh> -#include <dumux/discretization/staggered/freeflow/properties.hh> -#include <dumux/freeflow/navierstokes/model.hh> #include "testcase.hh" namespace Dumux { @@ -79,7 +82,7 @@ class FreeFlowSubProblem : public NavierStokesProblem<TypeTag> { using ParentType = NavierStokesProblem<TypeTag>; using Scalar = GetPropType<TypeTag, Properties::Scalar>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::NavierStokesBoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; using GridView = typename GridGeometry::GridView; using FVElementGeometry = typename GridGeometry::LocalView; diff --git a/test/multidomain/boundary/stokesdarcy/1p_1p/problem_darcy.hh b/test/multidomain/boundary/stokesdarcy/1p_1p/problem_darcy.hh index 2d55392b55..bfeb060efd 100644 --- a/test/multidomain/boundary/stokesdarcy/1p_1p/problem_darcy.hh +++ b/test/multidomain/boundary/stokesdarcy/1p_1p/problem_darcy.hh @@ -29,14 +29,16 @@ #include <dumux/discretization/cctpfa.hh> +#include <dumux/common/boundarytypes.hh> + +#include <dumux/material/fluidsystems/1pliquid.hh> +#include <dumux/material/components/simpleh2o.hh> + #include <dumux/porousmediumflow/1p/model.hh> #include <dumux/porousmediumflow/problem.hh> #include "spatialparams.hh" -#include <dumux/material/components/simpleh2o.hh> -#include <dumux/material/fluidsystems/1pliquid.hh> - namespace Dumux { template <class TypeTag> class DarcySubProblem; @@ -80,7 +82,7 @@ class DarcySubProblem : public PorousMediumFlowProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using VolumeVariables = GetPropType<TypeTag, Properties::VolumeVariables>; using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView; using SubControlVolume = typename FVElementGeometry::SubControlVolume; diff --git a/test/multidomain/boundary/stokesdarcy/1p_1p/problem_stokes.hh b/test/multidomain/boundary/stokesdarcy/1p_1p/problem_stokes.hh index 2b2f7170d7..bdfc62aaca 100644 --- a/test/multidomain/boundary/stokesdarcy/1p_1p/problem_stokes.hh +++ b/test/multidomain/boundary/stokesdarcy/1p_1p/problem_stokes.hh @@ -27,12 +27,14 @@ #include <dune/grid/yaspgrid.hh> -#include <dumux/material/fluidsystems/1pliquid.hh> -#include <dumux/material/components/simpleh2o.hh> - -#include <dumux/freeflow/navierstokes/problem.hh> #include <dumux/discretization/staggered/freeflow/properties.hh> + +#include <dumux/freeflow/navierstokes/boundarytypes.hh> #include <dumux/freeflow/navierstokes/model.hh> +#include <dumux/freeflow/navierstokes/problem.hh> + +#include <dumux/material/fluidsystems/1pliquid.hh> +#include <dumux/material/components/simpleh2o.hh> namespace Dumux { template <class TypeTag> @@ -84,7 +86,7 @@ class StokesSubProblem : public NavierStokesProblem<TypeTag> using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::NavierStokesBoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; using FVElementGeometry = typename GridGeometry::LocalView; diff --git a/test/multidomain/boundary/stokesdarcy/1p_2p/problem_darcy.hh b/test/multidomain/boundary/stokesdarcy/1p_2p/problem_darcy.hh index ccd7513a64..f92a3933ea 100644 --- a/test/multidomain/boundary/stokesdarcy/1p_2p/problem_darcy.hh +++ b/test/multidomain/boundary/stokesdarcy/1p_2p/problem_darcy.hh @@ -29,6 +29,8 @@ #include <dumux/discretization/cctpfa.hh> +#include <dumux/common/boundarytypes.hh> + #include <dumux/porousmediumflow/2p/model.hh> #include <dumux/porousmediumflow/problem.hh> @@ -82,7 +84,7 @@ class DarcySubProblem : public PorousMediumFlowProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridVariables = GetPropType<TypeTag, Properties::GridVariables>; using ElementVolumeVariables = typename GridVariables::GridVolumeVariables::LocalView; using ElementFluxVariablesCache = typename GridVariables::GridFluxVariablesCache::LocalView; diff --git a/test/multidomain/boundary/stokesdarcy/1p_2p/problem_stokes.hh b/test/multidomain/boundary/stokesdarcy/1p_2p/problem_stokes.hh index 7b61225cdc..78757dad66 100644 --- a/test/multidomain/boundary/stokesdarcy/1p_2p/problem_stokes.hh +++ b/test/multidomain/boundary/stokesdarcy/1p_2p/problem_stokes.hh @@ -27,9 +27,11 @@ #include <dune/grid/yaspgrid.hh> -#include <dumux/freeflow/navierstokes/problem.hh> #include <dumux/discretization/staggered/freeflow/properties.hh> + +#include <dumux/freeflow/navierstokes/boundarytypes.hh> #include <dumux/freeflow/navierstokes/model.hh> +#include <dumux/freeflow/navierstokes/problem.hh> namespace Dumux { template <class TypeTag> @@ -75,7 +77,7 @@ class StokesSubProblem : public NavierStokesProblem<TypeTag> using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::NavierStokesBoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; using FVElementGeometry = typename GridGeometry::LocalView; -- GitLab