3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
freeflow/rans/twoeq/sst/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 *****************************************************************************/
63#ifndef DUMUX_SST_MODEL_HH
64#define DUMUX_SST_MODEL_HH
65
70
73
74#include "fluxvariables.hh"
75#include "localresidual.hh"
76#include "volumevariables.hh"
77#include "iofields.hh"
78
79namespace Dumux {
80namespace Properties {
81
88template<int dimension>
90{
92 static constexpr int dim() { return dimension; }
93
96 static constexpr int numEq() { return dim()+1+2; }
97
99 static constexpr int numFluidComponents() { return 1; }
100
103
105 static constexpr auto turbulenceModel()
106 { return TurbulenceModel::sst; }
107};
108
110// default property values for the isothermal SST single phase model
112
113// Create new type tags
114namespace TTag {
116struct SST { using InheritsFrom = std::tuple<RANS>; };
117} // end namespace TTag
118
120template<class TypeTag>
121struct ModelTraits<TypeTag, TTag::SST>
122{
123private:
125 static constexpr int dim = GridView::dimension;
126public:
128};
129
131template<class TypeTag>
132struct FluxVariables<TypeTag, TTag::SST>
133{
134private:
136public:
138};
139
141template<class TypeTag>
142struct LocalResidual<TypeTag, TTag::SST>
143{
144private:
146public:
148};
149
151template<class TypeTag>
152struct VolumeVariables<TypeTag, TTag::SST>
153{
154private:
159
160 static_assert(FSY::numPhases == MT::numFluidPhases(), "Number of phases mismatch between model and fluid system");
161 static_assert(FST::numPhases == MT::numFluidPhases(), "Number of phases mismatch between model and fluid state");
162 static_assert(!FSY::isMiscible(), "The Navier-Stokes model only works with immiscible fluid systems.");
163
166public:
168};
169
171template<class TypeTag>
172struct IOFields<TypeTag, TTag::SST> { using type = SSTIOFields; };
173
175// default property values for the non-isothermal SST single phase model
177
178
179// Create new type tags
180namespace TTag {
182struct SSTNI { using InheritsFrom = std::tuple<SST, RANSNI>; };
183} // end namespace TTag
184
186template<class TypeTag>
187struct ModelTraits<TypeTag, TTag::SSTNI>
188{
189private:
191 static constexpr int dim = GridView::dimension;
193public:
195};
196
198template<class TypeTag>
199struct VolumeVariables<TypeTag, TTag::SSTNI>
200{
201private:
206
207 static_assert(FSY::numPhases == MT::numFluidPhases(), "Number of phases mismatch between model and fluid system");
208 static_assert(FST::numPhases == MT::numFluidPhases(), "Number of phases mismatch between model and fluid state");
209 static_assert(!FSY::isMiscible(), "The Navier-Stokes model only works with immiscible fluid systems.");
210
213public:
215};
216
218template<class TypeTag>
219struct IOFields<TypeTag, TTag::SSTNI> { using type = FreeflowNonIsothermalIOFields<SSTIOFields, true/*turbulenceModel*/>; };
220
221} // end properties
222} // end namespace
223
224#endif
The available free flow turbulence models in Dumux.
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:150
Traits class encapsulating model specifications.
Definition: common/properties.hh:53
A class helping models to define input and output fields.
Definition: common/properties.hh:63
Definition: common/properties.hh:74
The secondary variables within a sub-control volume.
Definition: common/properties.hh:107
Container storing the different types of flux variables.
Definition: common/properties.hh:113
The flux variables class for the Navier-Stokes model using the staggered grid discretization.
Definition: freeflow/navierstokes/fluxvariables.hh:35
The common indices for the isothermal Navier-Stokes model.
Definition: freeflow/navierstokes/indices.hh:37
Element-wise calculation of the Navier-Stokes residual for models using the staggered discretization.
Definition: freeflow/navierstokes/localresidual.hh:35
Traits class for the volume variables of the Navier-Stokes model.
Definition: freeflow/navierstokes/model.hh:123
Volume variables for the single-phase Navier-Stokes model.
Definition: freeflow/navierstokes/volumevariables.hh:38
Adds I/O fields specific to non-isothermal free-flow models.
Definition: freeflow/nonisothermal/iofields.hh:38
Specifies a number properties of non-isothermal free-flow flow models based on the specifics of a giv...
Definition: freeflow/nonisothermal/model.hh:59
Traits for the Reynolds-averaged Navier-Stokes model.
Definition: freeflow/rans/model.hh:73
The common indices for isothermal two-equation RANS models.
Definition: freeflow/rans/twoeq/indices.hh:41
The flux variables class for the SST model using the staggered grid discretization.
Definition: freeflow/rans/twoeq/sst/fluxvariables.hh:34
Adds I/O fields for the Reynolds-Averaged Navier-Stokes model.
Definition: freeflow/rans/twoeq/sst/iofields.hh:36
Element-wise calculation of the residual for SST models using the staggered discretization.
Definition: freeflow/rans/twoeq/sst/localresidual.hh:36
Traits for the sst model.
Definition: freeflow/rans/twoeq/sst/model.hh:90
static constexpr int numEq()
Definition: freeflow/rans/twoeq/sst/model.hh:96
static constexpr int dim()
The dimension of the model.
Definition: freeflow/rans/twoeq/sst/model.hh:92
static constexpr int numFluidComponents()
The number of components.
Definition: freeflow/rans/twoeq/sst/model.hh:99
static constexpr auto turbulenceModel()
return the type of turbulence model used
Definition: freeflow/rans/twoeq/sst/model.hh:105
The type tag for the single-phase, isothermal SST model.
Definition: freeflow/rans/twoeq/sst/model.hh:116
std::tuple< RANS > InheritsFrom
Definition: freeflow/rans/twoeq/sst/model.hh:116
The type tag for the single-phase, non-isothermal SST 2-Eq. model.
Definition: freeflow/rans/twoeq/sst/model.hh:182
std::tuple< SST, RANSNI > InheritsFrom
Definition: freeflow/rans/twoeq/sst/model.hh:182
Volume variables for the isothermal single-phase SST 2-Eq model.
Definition: freeflow/rans/twoeq/sst/volumevariables.hh:42
Declares all properties used in Dumux.
Defines a type tag and some properties for free flow models.
A single-phase, isothermal Reynolds-Averaged Navier-Stokes model.
Adds I/O fields specific to the tracer model.
Base class for the flux variables in porous medium models.
Element-wise calculation of the local residual for problems using fully implicit tracer model.