version 3.8
porenetwork/1p/iofields.hh
Go to the documentation of this file.
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//
12#ifndef DUMUX_PNM_ONEP_IO_FIELDS_HH
13#define DUMUX_PNM_ONEP_IO_FIELDS_HH
14
17
18namespace Dumux::PoreNetwork {
19
25{
26public:
27 template<class OutputModule>
28 static void initOutputModule(OutputModule& out)
29 {
32
33 out.addFluxVariable([](const auto& fluxVars, const auto& fluxVarsCache)
34 { return fluxVarsCache.transmissibility(0); }, "transmissibility");
35
36 auto volumeFlux = [](const auto& fluxVars, const auto& fluxVarsCache)
37 {
38 auto upwindTerm = [](const auto& volVars) { return volVars.mobility(0); };
39 using std::abs;
40 return abs(fluxVars.advectiveFlux(0, upwindTerm));
41 };
42 out.addFluxVariable(volumeFlux, "volumeFlux");
43 }
44};
45
46} // end namespace Dumux::PoreNetwork
47
48#endif
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/1p/iofields.hh:28
static void initOutputModule(OutputModule &out)
Definition: porenetwork/common/iofields.hh:28
Adds output fields specific to the PNM 1p model.
Definition: porenetwork/1p/iofields.hh:25
static void initOutputModule(OutputModule &out)
Definition: porenetwork/1p/iofields.hh:28
Definition: discretization/porenetwork/fvelementgeometry.hh:24
Adds I/O fields specific to the one phase model.