3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
multidomain/boundary/freeflowporousmedium/traits.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
25#ifndef DUMUX_MD_FREEFLOW_POROUSMEDIUM_TRAITS_HH
26#define DUMUX_MD_FREEFLOW_POROUSMEDIUM_TRAITS_HH
27
28#include <type_traits>
30
32
40template<class FFFS, class PMFS>
42{
43 static_assert(FFFS::numPhases == 1, "Only single-phase fluidsystems may be used for free flow.");
44 static constexpr bool value = std::is_same<typename FFFS::MultiPhaseFluidSystem, PMFS>::value;
45};
46
52template<class FS>
53struct IsSameFluidSystem<FS, FS>
54{
55 static_assert(FS::numPhases == 1, "Only single-phase fluidsystems may be used for free flow.");
56 static constexpr bool value = std::is_same<FS, FS>::value; // always true
57};
58
64template<class DiffLaw>
65struct IsFicksLaw : public std::false_type {};
66
72template<class T>
73struct IsFicksLaw<Dumux::FicksLaw<T>> : public std::true_type {};
74
75} // end namespace Dumux::FreeFlowPorousMediumCoupling
76
77#endif
Fick's law specialized for different discretization schemes. This file contains the data which is req...
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
Definition: indexhelper.hh:30
forward declaration of the method-specific implementation
Definition: flux/box/fickslaw.hh:44
This structs helps to check if the two sub models use the same fluidsystem. Specialization for the ca...
Definition: multidomain/boundary/freeflowporousmedium/traits.hh:42
static constexpr bool value
Definition: multidomain/boundary/freeflowporousmedium/traits.hh:44
This structs indicates that Fick's law is not used for diffusion.
Definition: multidomain/boundary/freeflowporousmedium/traits.hh:65