version 3.10-dev
porousmediumflow/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//
13#ifndef DUMUX_ONEP_IO_FIELDS_HH
14#define DUMUX_ONEP_IO_FIELDS_HH
15
16#include <dumux/io/name.hh>
17
18namespace Dumux {
19
25{
26public:
27 template <class OutputModule>
28 static void initOutputModule(OutputModule& out)
29 {
30 out.addVolumeVariable([](const auto& volVars){ return volVars.pressure(); },
32 }
33
34 template <class ModelTraits = void, class FluidSystem = void, class SolidSystem = void>
35 static std::string primaryVariableName(int pvIdx = 0, int state = 0)
36 {
37 return IOName::pressure();
38 }
39};
40
41} // end namespace Dumux
42
43#endif
Adds I/O fields specific to the one phase model.
Definition: porousmediumflow/1p/iofields.hh:25
static std::string primaryVariableName(int pvIdx=0, int state=0)
Definition: porousmediumflow/1p/iofields.hh:35
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/1p/iofields.hh:28
A collection of input/output field names for common physical quantities.
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:22
Definition: adapt.hh:17