version 3.10.0
Loading...
Searching...
No Matches
freeflow/rans/twoeq/komega/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// SPDX-FileCopyrightText: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
58#ifndef DUMUX_KOMEGA_MODEL_HH
59#define DUMUX_KOMEGA_MODEL_HH
60
66
67#include "problem.hh"
68#include "fluxvariables.hh"
69#include "localresidual.hh"
70#include "volumevariables.hh"
71#include "iofields.hh"
72
73namespace Dumux {
74namespace Properties {
75
82template<int dimension>
84{
86 static constexpr int dim() { return dimension; }
87
90 static constexpr int numEq() { return dim()+1+2; }
91
93 static constexpr int numFluidComponents() { return 1; }
94
97
99 static constexpr auto turbulenceModel()
100 { return TurbulenceModel::komega; }
101};
102
104// default property values for the isothermal k-omega single phase model
106
107// Create new type tags
108namespace TTag {
110struct KOmega { using InheritsFrom = std::tuple<RANS>; };
111} // end namespace TTag
112
114template<class TypeTag>
115struct ModelTraits<TypeTag, TTag::KOmega>
116{
117private:
119 static constexpr int dim = GridView::dimension;
120public:
122};
123
125template<class TypeTag>
126struct FluxVariables<TypeTag, TTag::KOmega>
127{
128private:
129 using BaseFluxVariables = NavierStokesFluxVariables<TypeTag>;
130public:
132};
133
135template<class TypeTag>
136struct LocalResidual<TypeTag, TTag::KOmega>
137{
138private:
139 using BaseLocalResidual = NavierStokesResidual<TypeTag>;
140public:
142};
143
145template<class TypeTag>
146struct VolumeVariables<TypeTag, TTag::KOmega>
147{
148private:
153
154 static_assert(FSY::numPhases == MT::numFluidPhases(), "Number of phases mismatch between model and fluid system");
155 static_assert(FST::numPhases == MT::numFluidPhases(), "Number of phases mismatch between model and fluid state");
156 static_assert(!FSY::isMiscible(), "The Navier-Stokes model only works with immiscible fluid systems.");
157
159 using NSVolVars = NavierStokesVolumeVariables<Traits>;
160public:
162};
163
165template<class TypeTag>
166struct IOFields<TypeTag, TTag::KOmega> { using type = KOmegaIOFields; };
167
169// default property values for the non-isothermal k-omega single phase model
171
172
173// Create new type tags
174namespace TTag {
176struct KOmegaNI { using InheritsFrom = std::tuple<KOmega, RANSNI>; };
177} // end namespace TTag
178
180template<class TypeTag>
181struct ModelTraits<TypeTag, TTag::KOmegaNI>
182{
183private:
185 static constexpr int dim = GridView::dimension;
186 using IsothermalTraits = KOmegaModelTraits<dim>;
187public:
189};
190
192template<class TypeTag>
193struct VolumeVariables<TypeTag, TTag::KOmegaNI>
194{
195private:
200
201 static_assert(FSY::numPhases == MT::numFluidPhases(), "Number of phases mismatch between model and fluid system");
202 static_assert(FST::numPhases == MT::numFluidPhases(), "Number of phases mismatch between model and fluid state");
203 static_assert(!FSY::isMiscible(), "The Navier-Stokes model only works with immiscible fluid systems.");
204
206 using NSVolVars = NavierStokesVolumeVariables<Traits>;
207public:
209};
210
212template<class TypeTag>
213struct IOFields<TypeTag, TTag::KOmegaNI> { using type = FreeflowNonIsothermalIOFields<KOmegaIOFields, true/*turbulenceModel*/>; };
214
215} // end properties
216} // end namespace
217
218#endif
Volume variables for the isothermal single-phase k-omega 2-Eq model.
Definition freeflow/rans/twoeq/komega/volumevariables.hh:29
Volume variables for the single-phase Navier-Stokes model.
Definition freeflow/navierstokes/volumevariables.hh:26
Defines 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.
The common indices for isothermal two-equation RANS models.
The flux variables class for the k-omega model. This is a convenience alias for that actual,...
Adds I/O fields for the Reynolds-Averaged Navier-Stokes model.
The local residual class for the k-omega model. This is a convenience alias for the actual,...
K-Omega turbulence model problem base class.
Volume variables for the isothermal single-phase k-omega 2-Eq model.
@ komega
Definition turbulencemodel.hh:27
KOmegaFluxVariablesImpl< TypeTag, BaseFluxVariables, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod > KOmegaFluxVariables
The flux variables class for the k-omega model. This is a convenience alias for that actual,...
Definition freeflow/rans/twoeq/komega/fluxvariables.hh:32
KOmegaResidualImpl< TypeTag, BaseLocalResidual, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod > KOmegaResidual
The local residual class for the k-omega model. This is a convenience alias for the actual,...
Definition freeflow/rans/twoeq/komega/localresidual.hh:34
NavierStokesResidualImpl< TypeTag, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod > NavierStokesResidual
The local residual class for the Navier-Stokes model (balance equations). This is a convenience alias...
Definition freeflow/navierstokes/localresidual.hh:33
NavierStokesFluxVariablesImpl< TypeTag, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod > NavierStokesFluxVariables
The flux variables class for the Navier-Stokes model. This is a convenience alias for that actual,...
Definition freeflow/navierstokes/fluxvariables.hh:33
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition propertysystem.hh:296
Type tag for numeric models.
Definition grid.hh:24
The energy balance equation for a porous solid.
Definition common/properties.hh:26
Definition adapt.hh:17
Specifies a number properties of non-isothermal free-flow flow models based on the specifics of a giv...
Definition freeflow/nonisothermal/model.hh:47
Adds I/O fields specific to non-isothermal free-flow models.
Definition freeflow/nonisothermal/iofields.hh:26
Adds I/O fields for the Reynolds-Averaged Navier-Stokes model.
Definition freeflow/rans/twoeq/komega/iofields.hh:24
Traits class for the volume variables of the Navier-Stokes model.
Definition freeflow/navierstokes/model.hh:111
KOmegaFluxVariables< TypeTag, BaseFluxVariables > type
Definition freeflow/rans/twoeq/komega/model.hh:131
KOmegaIOFields type
Definition freeflow/rans/twoeq/komega/model.hh:166
FreeflowNonIsothermalIOFields< KOmegaIOFields, true > type
Definition freeflow/rans/twoeq/komega/model.hh:213
Traits for the k-omega model.
Definition freeflow/rans/twoeq/komega/model.hh:84
static constexpr int numEq()
Definition freeflow/rans/twoeq/komega/model.hh:90
RANSTwoEqIndices< dim(), numFluidComponents()> Indices
The indices.
Definition freeflow/rans/twoeq/komega/model.hh:96
static constexpr int numFluidComponents()
The number of components.
Definition freeflow/rans/twoeq/komega/model.hh:93
static constexpr int dim()
The dimension of the model.
Definition freeflow/rans/twoeq/komega/model.hh:86
static constexpr auto turbulenceModel()
return the type of turbulence model used
Definition freeflow/rans/twoeq/komega/model.hh:99
KOmegaResidual< TypeTag, BaseLocalResidual > type
Definition freeflow/rans/twoeq/komega/model.hh:141
KOmegaModelTraits< dim > type
Definition freeflow/rans/twoeq/komega/model.hh:121
FreeflowNIModelTraits< IsothermalTraits > type
Definition freeflow/rans/twoeq/komega/model.hh:188
Traits for the Reynolds-averaged Navier-Stokes model.
Definition freeflow/rans/model.hh:61
The type tag for the single-phase, isothermal k-omega model.
Definition freeflow/rans/twoeq/komega/model.hh:110
std::tuple< RANS > InheritsFrom
Definition freeflow/rans/twoeq/komega/model.hh:110
The type tag for the single-phase, non-isothermal k-omega 2-Eq. model.
Definition freeflow/rans/twoeq/komega/model.hh:176
std::tuple< KOmega, RANSNI > InheritsFrom
Definition freeflow/rans/twoeq/komega/model.hh:176
KOmegaVolumeVariables< Traits, NSVolVars > type
Definition freeflow/rans/twoeq/komega/model.hh:161
KOmegaVolumeVariables< Traits, NSVolVars > type
Definition freeflow/rans/twoeq/komega/model.hh:208
The common indices for isothermal two-equation RANS models.
Definition freeflow/rans/twoeq/indices.hh:29
The available free flow turbulence models in Dumux.