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