GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/geomechanics/hyperelastic/volumevariables.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 0 0 -%
Branches: 0 0 -%

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 Hyperelastic
10 * \brief Volume variables for the hyperelasticity model
11 */
12
13 #ifndef DUMUX_GEOMECHANICS_HYPERELASTIC_VOLUME_VARIABLES_HH
14 #define DUMUX_GEOMECHANICS_HYPERELASTIC_VOLUME_VARIABLES_HH
15
16 #include <dumux/common/volumevariables.hh>
17
18 namespace Dumux {
19 /*!
20 * \ingroup Hyperelastic
21 * \brief Volume variables for the hyperelasticity model
22 */
23 template <class Traits>
24 98304 class HyperelasticVolumeVariables
25 : public BasicVolumeVariables<Traits>
26 {
27 using Scalar = typename Traits::PrimaryVariables::value_type;
28
29 static_assert(Traits::PrimaryVariables::dimension == Traits::ModelTraits::numEq());
30
31 public:
32 //! export the type used for the primary variables
33 using PrimaryVariables = typename Traits::PrimaryVariables;
34
35 //! export the indices type
36 using Indices = typename Traits::ModelTraits::Indices;
37
38 Scalar displacement(int i) const
39 707788800 { return this->priVar(i); }
40
41 const PrimaryVariables& displacement() const
42 { return this->priVars(); }
43 };
44
45 } // end namespace Dumux
46
47 #endif
48