Line | Branch | Exec | Source |
---|---|---|---|
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 | // | ||
7 | /*! | ||
8 | * \file | ||
9 | * \ingroup KEpsilonModel | ||
10 | * \copydoc Dumux::KEpsilonIOFields | ||
11 | */ | ||
12 | #ifndef DUMUX_KEPSILON_IO_FIELDS_HH | ||
13 | #define DUMUX_KEPSILON_IO_FIELDS_HH | ||
14 | |||
15 | #include <dumux/freeflow/rans/iofields.hh> | ||
16 | |||
17 | namespace Dumux { | ||
18 | |||
19 | /*! | ||
20 | * \ingroup KEpsilonModel | ||
21 | * \brief Adds I/O fields for the k-epsilon turbulence model | ||
22 | */ | ||
23 | struct KEpsilonIOFields | ||
24 | { | ||
25 | //! Initialize the KEpsilon specific output fields. | ||
26 | template <class OutputModule> | ||
27 | 8 | static void initOutputModule(OutputModule& out) | |
28 | { | ||
29 | 8 | RANSIOFields::initOutputModule(out); | |
30 | |||
31 |
7/18✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 8 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 8 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 8 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 8 times.
✓ Branch 17 taken 8 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
|
24 | out.addVolumeVariable([](const auto& v){ return v.turbulentKineticEnergy(); }, "k"); |
32 |
7/18✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 8 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 8 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 8 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 8 times.
✓ Branch 17 taken 8 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
|
24 | out.addVolumeVariable([](const auto& v){ return v.dissipation(); }, "epsilon"); |
33 |
7/18✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 8 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 8 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 8 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 8 times.
✓ Branch 17 taken 8 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
|
24 | out.addVolumeVariable([](const auto& v){ return v.yPlusNominal(); }, "y^+_nom"); |
34 |
7/18✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 8 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 8 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 8 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 8 times.
✓ Branch 17 taken 8 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
|
24 | out.addVolumeVariable([](const auto& v){ return v.uPlusNominal(); }, "u^+_nom"); |
35 |
7/18✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 8 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 8 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 8 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 8 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 8 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
|
32 | out.addVolumeVariable([](const auto& v){ return v.inNearWallRegion(); }, "inNearWallRegion"); |
36 |
6/16✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 8 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 8 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 8 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 8 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
|
24 | out.addVolumeVariable([](const auto& v){ return v.isMatchingPoint(); }, "isMatchingPoint"); |
37 | 8 | } | |
38 | |||
39 | //! return the names of the primary variables | ||
40 | template <class ModelTraits, class FluidSystem> | ||
41 | ✗ | static std::string primaryVariableName(int pvIdx = 0, int state = 0) | |
42 | { | ||
43 | ✗ | if (pvIdx < ModelTraits::dim() + ModelTraits::numFluidComponents()) | |
44 | ✗ | return RANSIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state); | |
45 | ✗ | else if (pvIdx == ModelTraits::dim() + ModelTraits::numFluidComponents()) | |
46 | ✗ | return "k"; | |
47 | else | ||
48 | ✗ | return "epsilon"; | |
49 | } | ||
50 | }; | ||
51 | |||
52 | } // end namespace Dumux | ||
53 | |||
54 | #endif | ||
55 |