version 3.8
lameparams.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_GEOMECHANICS_LAME_PARAMS_HH
13#define DUMUX_GEOMECHANICS_LAME_PARAMS_HH
14
15namespace Dumux {
16
21template<class Scalar>
23{
25 LameParams() = default;
26
28 LameParams(Scalar lambda, Scalar mu)
29 : lambda_(lambda) , mu_(mu)
30 {}
31
33 Scalar lambda() const
34 { return lambda_; }
35
37 Scalar mu() const
38 { return mu_; }
39
41 void setLambda(Scalar lambda)
42 { lambda_ = lambda; }
43
45 void setMu(Scalar mu)
46 { mu_ = mu; }
47
48private:
49 Scalar lambda_;
50 Scalar mu_;
51};
52} // end namespace Dumux
53#endif
Definition: adapt.hh:17
Structure encapsulating the lame parameters.
Definition: lameparams.hh:23
void setMu(Scalar mu)
set the second lame parameter
Definition: lameparams.hh:45
Scalar mu() const
Return the second lame parameter.
Definition: lameparams.hh:37
Scalar lambda() const
Return the first lame parameter.
Definition: lameparams.hh:33
void setLambda(Scalar lambda)
set the first lame parameter
Definition: lameparams.hh:41
LameParams(Scalar lambda, Scalar mu)
Constructor taking lambda and mu directly.
Definition: lameparams.hh:28
LameParams()=default
Default constructor.