version 3.8
geomechanics/hyperelastic/volumevariables.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//
13#ifndef DUMUX_GEOMECHANICS_HYPERELASTIC_VOLUME_VARIABLES_HH
14#define DUMUX_GEOMECHANICS_HYPERELASTIC_VOLUME_VARIABLES_HH
15
17
18namespace Dumux {
23template <class Traits>
25: public BasicVolumeVariables<Traits>
26{
27 using Scalar = typename Traits::PrimaryVariables::value_type;
28
29 static_assert(Traits::PrimaryVariables::dimension == Traits::ModelTraits::numEq());
30
31public:
33 using PrimaryVariables = typename Traits::PrimaryVariables;
34
36 using Indices = typename Traits::ModelTraits::Indices;
37
38 Scalar displacement(int i) const
39 { return this->priVar(i); }
40
42 { return this->priVars(); }
43};
44
45} // end namespace Dumux
46
47#endif
Definition: common/volumevariables.hh:21
const PrimaryVariables & priVars() const
Definition: common/volumevariables.hh:42
Scalar priVar(const int pvIdx) const
Definition: common/volumevariables.hh:39
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition: common/volumevariables.hh:25
Volume variables for the hyperelasticity model.
Definition: geomechanics/hyperelastic/volumevariables.hh:26
Scalar displacement(int i) const
Definition: geomechanics/hyperelastic/volumevariables.hh:38
const PrimaryVariables & displacement() const
Definition: geomechanics/hyperelastic/volumevariables.hh:41
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: geomechanics/hyperelastic/volumevariables.hh:36
Basic volume variables for finite volume methods.
Definition: adapt.hh:17