3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/richardsextended/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 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
25#ifndef DUMUX_RICHARDSEXTENDED_IO_FIELDS_HH
26#define DUMUX_RICHARDSEXTENDED_IO_FIELDS_HH
27
28#include <dumux/io/name.hh>
30
31namespace Dumux {
32
38{
40public:
41 template <class OutputModule>
42 static void initOutputModule(OutputModule& out)
43 {
44 using VV = typename OutputModule::VolumeVariables;
45 using FS = typename VV::FluidSystem;
46
47 // TODO: replace by a call to the base class plus code specific to extended model after release (3.6)
48 out.addVolumeVariable([](const auto& v){ return v.saturation(FS::phase0Idx); },
49 IOName::saturation<FS>(FS::phase0Idx));
50 out.addVolumeVariable([](const auto& v){ return v.saturation(FS::phase1Idx); },
51 IOName::saturation<FS>(FS::phase1Idx));
52 out.addVolumeVariable([](const auto& v){ return v.pressure(FS::phase0Idx); },
53 IOName::pressure<FS>(FS::phase0Idx));
54 out.addVolumeVariable([](const auto& v){ return v.pressure(FS::phase1Idx); },
55 IOName::pressure<FS>(FS::phase1Idx));
56 out.addVolumeVariable([](const auto& v){ return v.capillaryPressure(); },
58 out.addVolumeVariable([](const auto& v){ return v.density(FS::phase0Idx); },
59 IOName::density<FS>(FS::phase0Idx));
60 out.addVolumeVariable([](const auto& v){ return v.mobility(FS::phase0Idx); },
61 IOName::mobility<FS>(FS::phase0Idx));
62 out.addVolumeVariable([](const auto& v){ return v.relativePermeability(FS::phase0Idx); },
63 IOName::relativePermeability<FS>(FS::phase0Idx));
64 out.addVolumeVariable([](const auto& v){ return v.porosity(); },
66
67 static const bool gravity = getParamFromGroup<bool>(out.paramGroup(), "Problem.EnableGravity");
68
69 if(gravity)
70 out.addVolumeVariable([](const auto& v){ return v.pressureHead(FS::phase0Idx); },
72 out.addVolumeVariable([](const auto& v){ return v.moleFraction(FS::phase1Idx, FS::comp0Idx); },
73 IOName::moleFraction<FS>(FS::phase1Idx, FS::comp0Idx));
74 out.addVolumeVariable([](const auto& v){ return v.waterContent(FS::phase0Idx); },
76 out.addVolumeVariable([](const auto& v){ return v.priVars().state(); },
78 }
79};
80
81} // end namespace Dumux
82
83#endif
A collection of input/output field names for common physical quantities.
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
std::string waterContent() noexcept
I/O name of water content.
Definition: name.hh:155
std::string capillaryPressure() noexcept
I/O name of capillary pressure.
Definition: name.hh:135
std::string phasePresence() noexcept
I/O name of phase presence.
Definition: name.hh:147
std::string pressureHead() noexcept
I/O name of pressure head.
Definition: name.hh:151
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:139
Adds I/O fields specific to the Richards model.
Definition: porousmediumflow/richards/iofields.hh:40
Adds I/O fields specific to the extended Richards model.
Definition: porousmediumflow/richardsextended/iofields.hh:38
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/richardsextended/iofields.hh:42
Adds I/O fields specific to the Richards model.