version 3.10.0
Loading...
Searching...
No Matches
solidmechanics/hyperelastic/model.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-FileCopyrightText: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
49#ifndef DUMUX_SOLIDMECHANICS_HYPERELASTIC_MODEL_HH
50#define DUMUX_SOLIDMECHANICS_HYPERELASTIC_MODEL_HH
51
54
55#include "spatialparams.hh"
56#include "localresidual.hh"
57#include "volumevariables.hh"
58
59namespace Dumux {
60
61template<class PV, class MT>
67
69{
70 static constexpr int displacementIdx(int i) { return i; };
71 static constexpr int equationIdx(int i) { return i; };
72};
73
78template<int dim>
80{
82 static constexpr int numEq() { return dim; }
83};
84
85namespace Properties {
86
87// Create new type tags
88namespace TTag {
89struct Hyperelastic { using InheritsFrom = std::tuple<ModelProperties>; };
90} // end namespace TTag
91
92template<class TypeTag>
95
96template<class TypeTag>
97struct LocalResidual<TypeTag, TTag::Hyperelastic>
99
101template<class TypeTag>
109
110// Set the default spatial parameters
111template<class TypeTag>
118
119} // end namespace Properties
120} // end namespace Dumux
121
122#endif
Definition solidmechanics/hyperelastic/spatialparams.hh:22
Local residual for the hyperelastic model.
Definition solidmechanics/hyperelastic/localresidual.hh:55
Volume variables for the hyperelasticity model.
Definition solidmechanics/hyperelastic/volumevariables.hh:26
Defines a type tags and some fundamental properties for all models.
Defines all properties used in Dumux.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition propertysystem.hh:296
Type tag for numeric models.
Definition grid.hh:24
Definition adapt.hh:17
Local residual for the hyperelastic model.
Default implementation of the spatial params.
Volume variables for the hyperelasticity model.
Definition solidmechanics/hyperelastic/model.hh:69
static constexpr int displacementIdx(int i)
Definition solidmechanics/hyperelastic/model.hh:70
static constexpr int equationIdx(int i)
Definition solidmechanics/hyperelastic/model.hh:71
HyperelasticModelTraits.
Definition solidmechanics/hyperelastic/model.hh:80
static constexpr int numEq()
Definition solidmechanics/hyperelastic/model.hh:82
HyperelasticIndices Indices
Definition solidmechanics/hyperelastic/model.hh:81
Definition solidmechanics/hyperelastic/model.hh:63
PV PrimaryVariables
Definition solidmechanics/hyperelastic/model.hh:64
MT ModelTraits
Definition solidmechanics/hyperelastic/model.hh:65
HyperelasticLocalResidual< TypeTag > type
Definition solidmechanics/hyperelastic/model.hh:98
HyperelasticModelTraits< GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimension > type
Definition solidmechanics/hyperelastic/model.hh:94
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition solidmechanics/hyperelastic/model.hh:114
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition solidmechanics/hyperelastic/model.hh:115
DefaultHyperelasticSpatialParams< GridGeometry, Scalar > type
Definition solidmechanics/hyperelastic/model.hh:116
Definition solidmechanics/hyperelastic/model.hh:89
std::tuple< ModelProperties > InheritsFrom
Definition solidmechanics/hyperelastic/model.hh:89
HyperelasticVolumeVariablesTraits< PV, MT > Traits
Definition solidmechanics/hyperelastic/model.hh:106
GetPropType< TypeTag, Properties::ModelTraits > MT
Definition solidmechanics/hyperelastic/model.hh:105
HyperelasticVolumeVariables< Traits > type
Definition solidmechanics/hyperelastic/model.hh:107
GetPropType< TypeTag, Properties::PrimaryVariables > PV
Definition solidmechanics/hyperelastic/model.hh:104