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 NonEquilibriumModel | ||
10 | * \brief Adds I/O fields specific to non-equilibrium models | ||
11 | */ | ||
12 | |||
13 | #ifndef DUMUX_NONEQUILBRIUM_OUTPUT_FIELDS_HH | ||
14 | #define DUMUX_NONEQUILBRIUM_OUTPUT_FIELDS_HH | ||
15 | |||
16 | #include <dumux/io/name.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | |||
20 | template<class ModelTraits, class EquilibriumIOFields, bool enableThermalNonEquilibrium> | ||
21 | class NonEquilibriumIOFieldsImplementation; | ||
22 | |||
23 | template<class ModelTraits, class EquilibriumIOFields> | ||
24 | using NonEquilibriumIOFields = NonEquilibriumIOFieldsImplementation<ModelTraits, EquilibriumIOFields, ModelTraits::enableThermalNonEquilibrium()>; | ||
25 | /*! | ||
26 | * \ingroup NonEquilibriumModel | ||
27 | * \brief Adds I/O fields specific to non-equilibrium models with chemical and thermal nonequilbirum or thermal non-equilibrium only | ||
28 | */ | ||
29 | template<class ModelTraits, class EquilibriumIOFields> | ||
30 | class NonEquilibriumIOFieldsImplementation<ModelTraits, EquilibriumIOFields, true> | ||
31 | { | ||
32 | public: | ||
33 | template <class OutputModule> | ||
34 | 3 | static void initOutputModule(OutputModule& out) | |
35 | { | ||
36 | using FluidSystem = typename OutputModule::VolumeVariables::FluidSystem; | ||
37 | |||
38 | 3 | EquilibriumIOFields::initOutputModule(out); | |
39 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 2 taken 3 times.
|
7 | for (int i = 0; i < ModelTraits::numEnergyEqFluid(); ++i) |
40 | { | ||
41 |
4/12✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 4 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 4 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
8 | out.addVolumeVariable([i](const auto& v){ return v.temperatureFluid(i); }, |
42 | IOName::fluidTemperature<FluidSystem>(i)); | ||
43 | } | ||
44 | |||
45 |
4/12✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 3 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
6 | out.addVolumeVariable([](const auto& v){ return v.temperatureSolid(); }, |
46 | IOName::solidTemperature()); | ||
47 | |||
48 |
2/2✓ Branch 0 taken 4 times.
✓ Branch 1 taken 3 times.
|
7 | for (int i = 0; i < ModelTraits::numFluidPhases(); ++i) |
49 | { | ||
50 |
6/18✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 4 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 4 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 4 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 4 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
|
12 | out.addVolumeVariable( [i](const auto& v){ return v.reynoldsNumber(i); }, "reynoldsNumber_" + FluidSystem::phaseName(i) ); |
51 |
6/18✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 4 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 4 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 4 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 4 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
|
12 | out.addVolumeVariable( [i](const auto& v){ return v.nusseltNumber(i); }, "nusseltNumber_" + FluidSystem::phaseName(i) ); |
52 |
6/18✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 4 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 4 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 4 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 4 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
|
12 | out.addVolumeVariable( [i](const auto& v){ return v.prandtlNumber(i); }, "prandtlNumber_" + FluidSystem::phaseName(i) ); |
53 | } | ||
54 | 3 | } | |
55 | }; | ||
56 | |||
57 | template<class ModelTraits, class EquilibriumIOFields> | ||
58 | class NonEquilibriumIOFieldsImplementation<ModelTraits, EquilibriumIOFields, false> | ||
59 | { | ||
60 | public: | ||
61 | template <class OutputModule> | ||
62 | 2 | static void initOutputModule(OutputModule& out) | |
63 | { | ||
64 | using FluidSystem = typename OutputModule::VolumeVariables::FluidSystem; | ||
65 | |||
66 | 2 | EquilibriumIOFields::initOutputModule(out); | |
67 | |||
68 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 2 taken 2 times.
|
6 | for (int i = 0; i < ModelTraits::numFluidPhases(); ++i) |
69 | { | ||
70 |
6/18✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 4 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 4 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 4 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 4 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
|
12 | out.addVolumeVariable( [i](const auto& v){ return v.reynoldsNumber(i); }, "reynoldsNumber_" + FluidSystem::phaseName(i) ); |
71 | } | ||
72 | 2 | } | |
73 | }; | ||
74 | |||
75 | } // end namespace Dumux | ||
76 | |||
77 | #endif | ||
78 |