3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
freeflow/shallowwater/indices.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 2 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 *****************************************************************************/
24#ifndef DUMUX_FREEFLOW_SHALLOW_WATER_INDICES_HH
25#define DUMUX_FREEFLOW_SHALLOW_WATER_INDICES_HH
26
27namespace Dumux {
28
29// \{
35{
36 static constexpr int dimXIdx = 0;
37 static constexpr int dimYIdx = 1;
38
39 static constexpr int massBalanceIdx = 0;
40 static constexpr int momentumXBalanceIdx = 1;
41 static constexpr int momentumYBalanceIdx = 2;
42
43 static constexpr int waterdepthIdx = massBalanceIdx;
44 static constexpr int velocityXIdx = momentumXBalanceIdx;
45 static constexpr int velocityYIdx = momentumYBalanceIdx;
46 static constexpr int velocityOffset = velocityXIdx;
47};
48
49// \}
50} // end namespace Dumux
51
52#endif
Definition: adapt.hh:29
The common indices for the shallow water equations model.
Definition: freeflow/shallowwater/indices.hh:35
static constexpr int dimYIdx
Index of the y-component of a vector of size dim.
Definition: freeflow/shallowwater/indices.hh:37
static constexpr int waterdepthIdx
Index of the velocity in a solution vector.
Definition: freeflow/shallowwater/indices.hh:43
static constexpr int velocityXIdx
Index of the velocity in a solution vector.
Definition: freeflow/shallowwater/indices.hh:44
static constexpr int momentumYBalanceIdx
Index of the y momentum balance equation.
Definition: freeflow/shallowwater/indices.hh:41
static constexpr int massBalanceIdx
Index of the mass balance equation.
Definition: freeflow/shallowwater/indices.hh:39
static constexpr int velocityYIdx
Index of the velocity in a solution vector.
Definition: freeflow/shallowwater/indices.hh:45
static constexpr int momentumXBalanceIdx
Index of the x momentum balance equation.
Definition: freeflow/shallowwater/indices.hh:40
static constexpr int velocityOffset
Offset vor the velocity index.
Definition: freeflow/shallowwater/indices.hh:46
static constexpr int dimXIdx
Index of the x-component of a vector of size dim.
Definition: freeflow/shallowwater/indices.hh:36