3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
1p/sequential/celldata.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_CELLDATA1P_HH
26#define DUMUX_CELLDATA1P_HH
27
28#include "properties.hh"
29#include "fluxdata.hh"
30
31
32namespace Dumux {
33template<class TypeTag>
34class FluxData1P;
35
46template<class TypeTag>
48{
49private:
50 using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar);
52
53private:
54 Scalar pressure_;
55 FluxData fluxData_;
56
57public:
58
61 pressure_(0.0)
62 {
63 }
66 {
67 return fluxData_;
68 }
70 const FluxData& fluxData() const
71 {
72 return fluxData_;
73 }
74
76 // functions returning primary variables
78
80 Scalar pressure()
81 {
82 return pressure_;
83 }
85 Scalar pressure() const
86 {
87 return pressure_;
88 }
90 void setPressure(Scalar press)
91 {
92 pressure_ = press;
93 }
94};
95
96} // end namespace Dumux
97#endif
#define GET_PROP_TYPE(TypeTag, PropTagName)
Definition: propertysystemmacros.hh:283
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Class storing data assigned to a cell-cell interfaces, so-called flux-data.
Definition: 1p/sequential/fluxdata.hh:42
Class including data of one grid cell.
Definition: 1p/sequential/celldata.hh:48
const FluxData & fluxData() const
Returns the flux data of the cell.
Definition: 1p/sequential/celldata.hh:70
void setPressure(Scalar press)
Sets the cell pressure.
Definition: 1p/sequential/celldata.hh:90
FluxData & fluxData()
Returns the flux data of the cell.
Definition: 1p/sequential/celldata.hh:65
CellData1P()
Constructs a CellData1P object.
Definition: 1p/sequential/celldata.hh:60
Scalar pressure()
Returns the cell pressure.
Definition: 1p/sequential/celldata.hh:80
Scalar pressure() const
Returns the cell pressure.
Definition: 1p/sequential/celldata.hh:85
Base file for properties related to sequential models.
Class including the variables and data of discretized data of the constitutive relations.