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 PNMOnePModel | ||
10 | * \copydoc Dumux::PoreNetwork::OnePIOFields | ||
11 | */ | ||
12 | #ifndef DUMUX_PNM_ONEP_IO_FIELDS_HH | ||
13 | #define DUMUX_PNM_ONEP_IO_FIELDS_HH | ||
14 | |||
15 | #include <dumux/porenetwork/common/iofields.hh> | ||
16 | #include <dumux/porousmediumflow/1p/iofields.hh> | ||
17 | |||
18 | namespace Dumux::PoreNetwork { | ||
19 | |||
20 | /*! | ||
21 | * \ingroup PNMOnePModel | ||
22 | * \brief Adds output fields specific to the PNM 1p model | ||
23 | */ | ||
24 | class OnePIOFields | ||
25 | { | ||
26 | public: | ||
27 | template<class OutputModule> | ||
28 | 12 | static void initOutputModule(OutputModule& out) | |
29 | { | ||
30 | 12 | Dumux::OnePIOFields::initOutputModule(out); | |
31 | 12 | CommonIOFields::initOutputModule(out); | |
32 | |||
33 |
7/18✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 10 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 10 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 10 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 10 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 10 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 10 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
|
48 | out.addFluxVariable([](const auto& fluxVars, const auto& fluxVarsCache) |
34 | 37656 | { return fluxVarsCache.transmissibility(0); }, "transmissibility"); | |
35 | |||
36 | ✗ | auto volumeFlux = [](const auto& fluxVars, const auto& fluxVarsCache) | |
37 | { | ||
38 | 150624 | auto upwindTerm = [](const auto& volVars) { return volVars.mobility(0); }; | |
39 | using std::abs; | ||
40 |
0/5✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
|
37656 | return abs(fluxVars.advectiveFlux(0, upwindTerm)); |
41 | }; | ||
42 |
6/16✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 10 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 10 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 10 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 10 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 10 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
|
36 | out.addFluxVariable(volumeFlux, "volumeFlux"); |
43 | 12 | } | |
44 | }; | ||
45 | |||
46 | } // end namespace Dumux::PoreNetwork | ||
47 | |||
48 | #endif | ||
49 |