version 3.8
freeflow/rans/oneeq/iofields.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-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_ONEEQ_IO_FIELDS_HH
13#define DUMUX_ONEEQ_IO_FIELDS_HH
14
16
17namespace Dumux {
18
24{
26 template <class OutputModule>
27 static void initOutputModule(OutputModule& out)
28 {
30 out.addVolumeVariable([](const auto& v){ return v.viscosityTilde(); }, "nu_tilde");
31 }
32
34 template <class ModelTraits, class FluidSystem>
35 static std::string primaryVariableName(int pvIdx = 0, int state = 0)
36 {
37 if (pvIdx < ModelTraits::dim() + 1)
38 return RANSIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state);
39 else
40 return "nu_tilde";
41 }
42};
43
44} // end namespace Dumux
45
46#endif
Definition: adapt.hh:17
Adds I/O fields for the one-equation turbulence model by Spalart-Allmaras.
Definition: freeflow/rans/oneeq/iofields.hh:24
static void initOutputModule(OutputModule &out)
Initialize the OneEq specific output fields.
Definition: freeflow/rans/oneeq/iofields.hh:27
static std::string primaryVariableName(int pvIdx=0, int state=0)
return the names of the primary variables
Definition: freeflow/rans/oneeq/iofields.hh:35
static void initOutputModule(OutputModule &out)
Initialize the RANS specific output fields.
Definition: freeflow/rans/iofields.hh:27