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 FreeflowNIModel | ||
10 | * \copydoc Dumux::FreeflowNonIsothermalIOFields | ||
11 | */ | ||
12 | #ifndef DUMUX_FREEFLOW_NI_IO_FIELDS_HH | ||
13 | #define DUMUX_FREEFLOW_NI_IO_FIELDS_HH | ||
14 | |||
15 | |||
16 | #include <dumux/io/name.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | |||
20 | /*! | ||
21 | * \ingroup FreeflowNIModel | ||
22 | * \brief Adds I/O fields specific to non-isothermal free-flow models | ||
23 | */ | ||
24 | template<class IsothermalIOFields, bool turbulenceModel = false> | ||
25 | struct FreeflowNonIsothermalIOFields | ||
26 | { | ||
27 | |||
28 | //! Add the non-isothermal specific output fields. | ||
29 | template <class OutputModule> | ||
30 | 15 | static void initOutputModule(OutputModule& out) | |
31 | { | ||
32 | 15 | IsothermalIOFields::initOutputModule(out); | |
33 | |||
34 |
4/12✓ Branch 2 taken 15 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 15 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 15 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 15 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
30 | out.addVolumeVariable([](const auto& v){ return v.temperature(); }, IOName::temperature()); |
35 |
7/19✓ Branch 1 taken 15 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 15 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 15 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 15 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 15 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 15 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 14 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
|
45 | out.addVolumeVariable([](const auto& v){ return v.thermalConductivity(); }, "lambda"); |
36 | if (turbulenceModel) | ||
37 |
6/16✓ Branch 1 taken 14 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 14 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 14 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 14 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 14 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 14 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
|
42 | out.addVolumeVariable([](const auto& v){ return v.effectiveThermalConductivity() - v.thermalConductivity(); }, "lambda_t"); |
38 | 15 | } | |
39 | |||
40 | //! return the names of the primary variables | ||
41 | template<class ModelTraits, class FluidSystem = void> | ||
42 | ✗ | static std::string primaryVariableName(int pvIdx, int state = 0) | |
43 | { | ||
44 | ✗ | if (pvIdx < ModelTraits::numEq() - 1) | |
45 | ✗ | return IsothermalIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state); | |
46 | else | ||
47 | ✗ | return IOName::temperature(); | |
48 | } | ||
49 | }; | ||
50 | |||
51 | } // end namespace Dumux | ||
52 | |||
53 | #endif | ||
54 |