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 RichardsModel | ||
10 | * \brief Adds I/O fields specific to the Richards model. | ||
11 | */ | ||
12 | |||
13 | #ifndef DUMUX_RICHARDS_IO_FIELDS_HH | ||
14 | #define DUMUX_RICHARDS_IO_FIELDS_HH | ||
15 | |||
16 | #include <dumux/common/parameters.hh> | ||
17 | #include <dumux/common/typetraits/state.hh> | ||
18 | #include <dumux/io/name.hh> | ||
19 | |||
20 | namespace Dumux { | ||
21 | |||
22 | /*! | ||
23 | * \ingroup RichardsModel | ||
24 | * \brief Adds I/O fields specific to the Richards model. | ||
25 | */ | ||
26 | class RichardsIOFields | ||
27 | { | ||
28 | public: | ||
29 | template <class OutputModule> | ||
30 | 38 | static void initOutputModule(OutputModule& out) | |
31 | { | ||
32 | using VV = typename OutputModule::VolumeVariables; | ||
33 | using FS = typename VV::FluidSystem; | ||
34 | |||
35 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.saturation(FS::phase0Idx); }, |
36 | IOName::saturation<FS>(FS::phase0Idx)); | ||
37 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.saturation(FS::phase1Idx); }, |
38 | IOName::saturation<FS>(FS::phase1Idx)); | ||
39 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.pressure(FS::phase0Idx); }, |
40 | IOName::pressure<FS>(FS::phase0Idx)); | ||
41 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.pressure(FS::phase1Idx); }, |
42 | IOName::pressure<FS>(FS::phase1Idx)); | ||
43 |
6/16✓ Branch 0 taken 418440 times.
✓ Branch 1 taken 42920 times.
✓ Branch 4 taken 38 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 38 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✓ Branch 12 taken 38 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
|
461436 | out.addVolumeVariable([](const auto& v){ return v.capillaryPressure(); }, |
44 | IOName::capillaryPressure()); | ||
45 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.density(FS::phase0Idx); }, |
46 | IOName::density<FS>(FS::phase0Idx)); | ||
47 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.mobility(FS::phase0Idx); }, |
48 | IOName::mobility<FS>(FS::phase0Idx)); | ||
49 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.relativePermeability(FS::phase0Idx); }, |
50 | IOName::relativePermeability<FS>(FS::phase0Idx)); | ||
51 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.porosity(); }, |
52 | IOName::porosity()); | ||
53 | |||
54 |
4/8✓ Branch 0 taken 38 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 38 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 38 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 38 times.
✗ Branch 10 not taken.
|
38 | static const bool gravity = getParamFromGroup<bool>(out.paramGroup(), "Problem.EnableGravity"); |
55 | |||
56 |
2/2✓ Branch 0 taken 24 times.
✓ Branch 1 taken 14 times.
|
38 | if(gravity) |
57 |
4/12✓ Branch 2 taken 24 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 24 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 24 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 24 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
48 | out.addVolumeVariable([](const auto& v){ return v.pressureHead(FS::phase0Idx); }, |
58 | IOName::pressureHead()); | ||
59 |
4/12✓ Branch 2 taken 38 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 38 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 38 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 38 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
76 | out.addVolumeVariable([](const auto& v){ return v.waterContent(FS::phase0Idx); }, |
60 | IOName::waterContent()); | ||
61 | 38 | } | |
62 | |||
63 | template<class ModelTraits, class FluidSystem, class SolidSystem = void> | ||
64 | ✗ | static std::string primaryVariableName(int pvIdx, int state) | |
65 | { | ||
66 | ✗ | return IOName::pressure<FluidSystem>(FluidSystem::phase0Idx); | |
67 | } | ||
68 | }; | ||
69 | |||
70 | } // end namespace Dumux | ||
71 | |||
72 | #endif | ||
73 |