Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
2c0a10ff
Commit
2c0a10ff
authored
6 years ago
by
Kilian Weishaupt
Committed by
Ned Coltman
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[freeflow] Add TurbulenceModel enum
parent
e0e2c0fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1391
Freeflow/rans problem redevelopment
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dumux/freeflow/navierstokes/model.hh
+4
-0
4 additions, 0 deletions
dumux/freeflow/navierstokes/model.hh
dumux/freeflow/properties.hh
+1
-0
1 addition, 0 deletions
dumux/freeflow/properties.hh
dumux/freeflow/turbulencemodel.hh
+51
-0
51 additions, 0 deletions
dumux/freeflow/turbulencemodel.hh
with
56 additions
and
0 deletions
dumux/freeflow/navierstokes/model.hh
+
4
−
0
View file @
2c0a10ff
...
...
@@ -101,6 +101,10 @@ struct NavierStokesModelTraits
//! The model does not include a turbulence model
static
constexpr
bool
usesTurbulenceModel
()
{
return
false
;
}
//! return the type of turbulence model used
static
constexpr
auto
turbulenceModel
()
{
return
TurbulenceModel
::
none
;
}
//! the indices
using
Indices
=
NavierStokesIndices
<
dim
()
>
;
};
...
...
This diff is collapsed.
Click to expand it.
dumux/freeflow/properties.hh
+
1
−
0
View file @
2c0a10ff
...
...
@@ -28,6 +28,7 @@
#include
<dumux/common/properties.hh>
#include
<dumux/common/properties/model.hh>
#include
<dumux/flux/fourierslaw.hh>
#include
"turbulencemodel.hh"
namespace
Dumux
{
namespace
Properties
{
...
...
This diff is collapsed.
Click to expand it.
dumux/freeflow/turbulencemodel.hh
0 → 100644
+
51
−
0
View file @
2c0a10ff
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
* \ingroup FreeflowModels
* \brief The available free flow turbulence models in Dumux
*/
#ifndef DUMUX_FREEFLOW_TURBLENCEMODEL_HH
#define DUMUX_FREEFLOW_TURBLENCEMODEL_HH
namespace
Dumux
{
/*!
* \brief The available free flow turbulence models in Dumux
* \ingroup FreeflowModels
* \note Use none for plain (Navier-) Stokes models (DNS)
*/
enum
class
TurbulenceModel
{
none
,
zeroeq
,
oneeq
,
kepsilon
,
lowrekepsilon
,
komega
};
constexpr
unsigned
int
numTurbulenceEq
(
TurbulenceModel
model
)
{
if
(
model
==
TurbulenceModel
::
none
||
model
==
TurbulenceModel
::
zeroeq
)
return
0
;
else
if
(
model
==
TurbulenceModel
::
oneeq
)
return
1
;
else
return
2
;
}
}
// end namespace Dumux
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment