version 3.10-dev
freeflow/navierstokes/energy/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_FREEFLOW_NAVIERSTOKES_ENERGY_IO_FIELDS_HH
13#define DUMUX_FREEFLOW_NAVIERSTOKES_ENERGY_IO_FIELDS_HH
14
15#include <dumux/io/name.hh>
16
17namespace Dumux {
18
23template<class IsothermalIOFields>
25{
26
28 template <class OutputModule>
29 static void initOutputModule(OutputModule& out)
30 {
31 IsothermalIOFields::initOutputModule(out);
32
33 out.addVolumeVariable([](const auto& v){ return v.temperature(); }, IOName::temperature());
34 out.addVolumeVariable([](const auto& v){ return v.fluidThermalConductivity(); }, "lambda");
35 }
36
38 template<class ModelTraits, class FluidSystem = void>
39 static std::string primaryVariableName(int pvIdx, int state = 0)
40 {
41 if (pvIdx < ModelTraits::numEq() - 1)
42 return IsothermalIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state);
43 else
44 return IOName::temperature();
45 }
46};
47
48} // end namespace Dumux
49
50#endif
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: adapt.hh:17
Adds I/O fields specific to non-isothermal free-flow models.
Definition: freeflow/navierstokes/energy/iofields.hh:25
static void initOutputModule(OutputModule &out)
Add the non-isothermal specific output fields.
Definition: freeflow/navierstokes/energy/iofields.hh:29
static std::string primaryVariableName(int pvIdx, int state=0)
return the names of the primary variables
Definition: freeflow/navierstokes/energy/iofields.hh:39