version 3.8
freeflow/rans/twoeq/sst/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_SST_IO_FIELDS_HH
13#define DUMUX_SST_IO_FIELDS_HH
14
16
17namespace Dumux {
18
24{
26 template <class OutputModule>
27 static void initOutputModule(OutputModule& out)
28 {
30
31 out.addVolumeVariable([](const auto& v){ return v.turbulentKineticEnergy(); }, "k");
32 out.addVolumeVariable([](const auto& v){ return v.dissipation(); }, "omega");
33 }
34
36 template <class ModelTraits, class FluidSystem>
37 static std::string primaryVariableName(int pvIdx = 0, int state = 0)
38 {
39 if (pvIdx < ModelTraits::dim() + ModelTraits::numFluidComponents())
40 return RANSIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state);
41 else if (pvIdx == ModelTraits::dim() + ModelTraits::numFluidComponents())
42 return "k";
43 else
44 return "omega";
45 }
46};
47
48} // end namespace Dumux
49
50#endif
Definition: adapt.hh:17
static void initOutputModule(OutputModule &out)
Initialize the RANS specific output fields.
Definition: freeflow/rans/iofields.hh:27
Adds I/O fields for the Reynolds-Averaged Navier-Stokes model.
Definition: freeflow/rans/twoeq/sst/iofields.hh:24
static std::string primaryVariableName(int pvIdx=0, int state=0)
return the names of the primary variables
Definition: freeflow/rans/twoeq/sst/iofields.hh:37
static void initOutputModule(OutputModule &out)
Initialize the SSTModel specific output fields.
Definition: freeflow/rans/twoeq/sst/iofields.hh:27