version 3.8
geomechanics/elastic/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// 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_ELASTIC_INDICES_HH
13#define DUMUX_ELASTIC_INDICES_HH
14
15namespace Dumux {
16
22{
23 // returns the equation index for a given space direction
24 static constexpr int momentum(int dirIdx) { return dirIdx; };
25
26 // returns the primary variable index for a given space direction
27 static constexpr int u(int dirIdx) { return dirIdx; };
28
29 // Equation indices
30 static constexpr int momentumXEqIdx = 0;
31 static constexpr int momentumYEqIdx = 1;
32 static constexpr int momentumZEqIdx = 2;
33
34 // primary variable indices
35 static constexpr int uxIdx = 0;
36 static constexpr int uyIdx = 1;
37 static constexpr int uzIdx = 2;
38};
39
40} // end namespace Dumux
41
42#endif
Definition: adapt.hh:17
The indices for the linear elasticity model.
Definition: geomechanics/elastic/indices.hh:22
static constexpr int momentumZEqIdx
Definition: geomechanics/elastic/indices.hh:32
static constexpr int momentumXEqIdx
Definition: geomechanics/elastic/indices.hh:30
static constexpr int uyIdx
Definition: geomechanics/elastic/indices.hh:36
static constexpr int uxIdx
Definition: geomechanics/elastic/indices.hh:35
static constexpr int momentum(int dirIdx)
Definition: geomechanics/elastic/indices.hh:24
static constexpr int u(int dirIdx)
Definition: geomechanics/elastic/indices.hh:27
static constexpr int uzIdx
Definition: geomechanics/elastic/indices.hh:37
static constexpr int momentumYEqIdx
Definition: geomechanics/elastic/indices.hh:31