GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/freeflow/nonisothermal/iofields.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 6 10 60.0%
Functions: 25 69 36.2%
Branches: 17 49 34.7%

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 40 static void initOutputModule(OutputModule& out)
31 {
32 40 IsothermalIOFields::initOutputModule(out);
33
34
4/12
✓ Branch 2 taken 28 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 28 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 28 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 28 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
680 out.addVolumeVariable([](const auto& v){ return v.temperature(); }, IOName::temperature());
35
7/19
✓ Branch 1 taken 28 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 28 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 28 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 28 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 28 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 28 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 25 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
420 out.addVolumeVariable([](const auto& v){ return v.thermalConductivity(); }, "lambda");
36 if (turbulenceModel)
37
6/16
✓ Branch 1 taken 25 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 25 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 25 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 25 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 25 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 25 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
855 out.addVolumeVariable([](const auto& v){ return v.effectiveThermalConductivity() - v.thermalConductivity(); }, "lambda_t");
38 40 }
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