Line |
Branch |
Exec |
Source |
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 |
|
|
// |
7 |
|
|
/*! |
8 |
|
|
* \file |
9 |
|
|
* \ingroup Elastic |
10 |
|
|
* \brief Defines the indices for the elastic model |
11 |
|
|
*/ |
12 |
|
|
#ifndef DUMUX_ELASTIC_INDICES_HH |
13 |
|
|
#define DUMUX_ELASTIC_INDICES_HH |
14 |
|
|
|
15 |
|
|
namespace Dumux { |
16 |
|
|
|
17 |
|
|
/*! |
18 |
|
|
* \ingroup Elastic |
19 |
|
|
* \brief The indices for the linear elasticity model. |
20 |
|
|
*/ |
21 |
|
|
struct ElasticIndices |
22 |
|
|
{ |
23 |
|
|
// returns the equation index for a given space direction |
24 |
|
29546368 |
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 |
43 |
|
|
|