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 GeomechanicsModels |
10 |
|
|
* \brief \copydoc Dumux::LameParams |
11 |
|
|
*/ |
12 |
|
|
#ifndef DUMUX_GEOMECHANICS_LAME_PARAMS_HH |
13 |
|
|
#define DUMUX_GEOMECHANICS_LAME_PARAMS_HH |
14 |
|
|
|
15 |
|
|
namespace Dumux { |
16 |
|
|
|
17 |
|
|
/*! |
18 |
|
|
* \ingroup GeomechanicsModels |
19 |
|
|
* \brief Structure encapsulating the lame parameters |
20 |
|
|
*/ |
21 |
|
|
template<class Scalar> |
22 |
|
|
struct LameParams |
23 |
|
|
{ |
24 |
|
|
//! Default constructor |
25 |
|
|
LameParams() = default; |
26 |
|
|
|
27 |
|
|
//! Constructor taking lambda and mu directly |
28 |
|
|
LameParams(Scalar lambda, Scalar mu) |
29 |
|
|
: lambda_(lambda) , mu_(mu) |
30 |
|
|
{} |
31 |
|
|
|
32 |
|
|
//! Return the first lame parameter |
33 |
|
✗ |
Scalar lambda() const |
34 |
|
✗ |
{ return lambda_; } |
35 |
|
|
|
36 |
|
|
//! Return the second lame parameter |
37 |
|
✗ |
Scalar mu() const |
38 |
|
✗ |
{ return mu_; } |
39 |
|
|
|
40 |
|
|
//! set the first lame parameter |
41 |
|
✗ |
void setLambda(Scalar lambda) |
42 |
|
5 |
{ lambda_ = lambda; } |
43 |
|
|
|
44 |
|
|
//! set the second lame parameter |
45 |
|
✗ |
void setMu(Scalar mu) |
46 |
|
4 |
{ mu_ = mu; } |
47 |
|
|
|
48 |
|
|
private: |
49 |
|
|
Scalar lambda_; |
50 |
|
|
Scalar mu_; |
51 |
|
|
}; |
52 |
|
|
} // end namespace Dumux |
53 |
|
|
#endif |
54 |
|
|
|