version 3.8
geomechanics/poroelastic/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_POROELASTIC_IO_FIELDS_HH
13#define DUMUX_POROELASTIC_IO_FIELDS_HH
14
15#include <dumux/io/name.hh>
16
17namespace Dumux {
18
24{
25public:
26 template <class OutputModule>
27 static void initOutputModule(OutputModule& out)
28 {
29 out.addVolumeVariable([](const auto& volVars){ return volVars.displacement(); },
31 out.addVolumeVariable([](const auto& volVars){ return volVars.porosity(); },
33 }
34
35};
36
37} // end namespace Dumux
38
39#endif
Adds I/O fields specific to the poro-elastic model.
Definition: geomechanics/poroelastic/iofields.hh:24
static void initOutputModule(OutputModule &out)
Definition: geomechanics/poroelastic/iofields.hh:27
A collection of input/output field names for common physical quantities.
std::string displacement() noexcept
I/O name of displacement.
Definition: name.hh:152
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:127
Definition: adapt.hh:17