// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- // vi: set et ts=4 sw=4 sts=4: // // SPDX-FileCopyrightText: Copyright © DuMux-Course contributors, see AUTHORS.md in root folder // SPDX-License-Identifier: GPL-3.0-or-later // /*! * \file * * \brief The two-phase nonisothermal porousmediumflow properties file for exercise-basic */ #ifndef DUMUX_EX_BASIC_PROPERTIES_2PNI_HH #define DUMUX_EX_BASIC_PROPERTIES_2PNI_HH #include <dune/grid/yaspgrid.hh> #include <dumux/discretization/cctpfa.hh> #include <dumux/porousmediumflow/2p/model.hh> #include <dumux/material/fluidsystems/h2on2.hh> #include "injection2pniproblem.hh" #include "injection2pspatialparams.hh" namespace Dumux::Properties { /*! * TODO: dumux-course-task 4: * Inherit from the TwoPNI model instead of TwoP here */ // Create new type tags namespace TTag { struct Injection2pNITypeTag { using InheritsFrom = std::tuple<TwoP>; }; struct Injection2pNICC { using InheritsFrom = std::tuple<Injection2pNITypeTag, CCTpfaModel>; }; } // end namespace TTag // Set the grid type template<class TypeTag> struct Grid<TypeTag, TTag::Injection2pNITypeTag> { using type = Dune::YaspGrid<2>; }; // Set the problem property template<class TypeTag> struct Problem<TypeTag, TTag::Injection2pNITypeTag> { using type = Injection2PNIProblem<TypeTag>; }; // Set the spatial parameters template<class TypeTag> struct SpatialParams<TypeTag, TTag::Injection2pNITypeTag> { private: using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; using Scalar = GetPropType<TypeTag, Properties::Scalar>; public: using type = InjectionSpatialParams<GridGeometry, Scalar>; }; // Set fluid configuration template<class TypeTag> struct FluidSystem<TypeTag, TTag::Injection2pNITypeTag> { using type = FluidSystems::H2ON2< GetPropType<TypeTag, Properties::Scalar>, FluidSystems::H2ON2DefaultPolicy</*fastButSimplifiedRelations=*/true> >; }; } // end namespace Dumux::Properties #endif