3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/co2/model.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_TWOP_TWOC_CO2_MODEL_HH
26#define DUMUX_TWOP_TWOC_CO2_MODEL_HH
27
30#include "volumevariables.hh"
31
50namespace Dumux {
51namespace Properties {
52
53// Create new type tags
54namespace TTag {
55struct TwoPTwoCCO2 { using InheritsFrom = std::tuple<TwoPTwoC>; };
56struct TwoPTwoCCO2NI { using InheritsFrom = std::tuple<TwoPTwoCNI>; };
57} // end namespace TTag
58
60template<class TypeTag>
61struct VolumeVariables<TypeTag, TTag::TwoPTwoCCO2>
62{
63private:
72 static constexpr bool enableIS = getPropValue<TypeTag, Properties::EnableBoxInterfaceSolver>();
73 // class used for scv-wise reconstruction of nonwetting phase saturations
76
79 template<class BaseTraits, class DT, class EDM>
80 struct NCTraits : public BaseTraits
81 {
82 using DiffusionType = DT;
83 using EffectiveDiffusivityModel = EDM;
84 };
85
86public:
88};
89
90template<class TypeTag>
91struct VolumeVariables<TypeTag, TTag::TwoPTwoCCO2NI>
92{
93private:
102 static constexpr bool enableIS = getPropValue<TypeTag, Properties::EnableBoxInterfaceSolver>();
103 // class used for scv-wise reconstruction of nonwetting phase saturations
106
110 template<class BaseTraits, class DT, class EDM, class ETCM>
111 struct NCNITraits : public BaseTraits
112 {
113 using DiffusionType = DT;
114 using EffectiveDiffusivityModel = EDM;
115 using EffectiveThermalConductivityModel = ETCM;
116 };
117
118public:
120};
121
122} // end namespace Properties
123} // end namespace Dumux
124
125#endif
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:180
The secondary variables within a sub-control volume.
Definition: common/properties.hh:105
The employed model for the computation of the effective diffusivity.
Definition: common/properties.hh:168
Traits class for the two-phase model.
Definition: porousmediumflow/2p/model.hh:109
Class that computes the nonwetting saturation in an scv from the saturation at the global degree of f...
Definition: saturationreconstruction.hh:43
Definition: porousmediumflow/co2/model.hh:55
std::tuple< TwoPTwoC > InheritsFrom
Definition: porousmediumflow/co2/model.hh:55
Definition: porousmediumflow/co2/model.hh:56
std::tuple< TwoPTwoCNI > InheritsFrom
Definition: porousmediumflow/co2/model.hh:56
Contains the quantities which are are constant within a finite volume in the CO2 model.
Definition: porousmediumflow/co2/volumevariables.hh:51
Declares all properties used in Dumux.
Properties for a two-phase, two-component model for flow in porous media.
Python wrapper for volume variables (finite volume schemes)