Skip to content
Snippets Groups Projects
Commit 2c0a10ff authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Ned Coltman
Browse files

[freeflow] Add TurbulenceModel enum

parent e0e2c0fc
No related branches found
No related tags found
1 merge request!1391Freeflow/rans problem redevelopment
......@@ -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()>;
};
......
......@@ -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 {
......
// -*- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment