version 3.8
porenetwork/solidenergy/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_SOLID_ENERGY_IO_FIELDS_HH
13#define DUMUX_PNM_SOLID_ENERGY_IO_FIELDS_HH
14
16#include <dumux/io/name.hh>
17
18namespace Dumux::PoreNetwork {
19
25{
26public:
27
28 template <class OutputModule>
29 static void initOutputModule(OutputModule& out)
30 {
32 out.addVolumeVariable( [](const auto& v){ return v.temperature(); }, IOName::temperature());
33 }
34
35 template <class ModelTraits, class FluidSystem = void, class SolidSystem = void>
36 static std::string primaryVariableName(int pvIdx, int state = 0)
37 {
38 return IOName::temperature();
39 }
40};
41
42} // end namespace Dumux::PoreNetwork
43
44#endif
static void initOutputModule(OutputModule &out)
Definition: porenetwork/common/iofields.hh:28
Adds output fields specific to the PNM solid-energy model.
Definition: porenetwork/solidenergy/iofields.hh:25
static void initOutputModule(OutputModule &out)
Definition: porenetwork/solidenergy/iofields.hh:29
static std::string primaryVariableName(int pvIdx, int state=0)
Definition: porenetwork/solidenergy/iofields.hh:36
A collection of input/output field names for common physical quantities.
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39
Definition: discretization/porenetwork/fvelementgeometry.hh:24