version 3.11-dev
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//
51#ifndef DUMUX_SOLIDMECHANICS_HYPERELASTIC_MODEL_HH
52#define DUMUX_SOLIDMECHANICS_HYPERELASTIC_MODEL_HH
53
57
58#include "spatialparams.hh"
59#include "localresidual.hh"
60#include "variables.hh"
61
62namespace Dumux {
63
64template<class PV, class MT>
70
72{
73 static constexpr int displacementIdx(int i) { return i; };
74 static constexpr int equationIdx(int i) { return i; };
75};
76
81template<int dim>
83{
85 static constexpr int numEq() { return dim; }
86};
87
88namespace Properties {
89
90// Create new type tags
91namespace TTag {
92struct Hyperelastic { using InheritsFrom = std::tuple<ModelProperties>; };
93} // end namespace TTag
94
95template<class TypeTag>
98
99template<class TypeTag>
100struct LocalResidual<TypeTag, TTag::Hyperelastic>
102
103template<class TypeTag>
111
113template<class TypeTag>
114struct VolumeVariables<TypeTag, TTag::Hyperelastic>
116
118template<class TypeTag>
119struct GridVariables<TypeTag, TTag::Hyperelastic>
121
122// Set the default spatial parameters
123template<class TypeTag>
130
131} // end namespace Properties
132} // end namespace Dumux
133
134#endif
Definition solidmechanics/hyperelastic/spatialparams.hh:36
Local residual of the hyperelastic model.
Definition solidmechanics/hyperelastic/localresidual.hh:59
Variables of the hyperelastic model: the displacement at a local dof.
Definition solidmechanics/hyperelastic/variables.hh:25
Defines a type tags and some fundamental properties for all models.
Defines all properties used in Dumux.
Grid variables with the variables cache selected depending on the element discretization.
GridVariables< GetPropType< TypeTag, Properties::GridGeometry >, DefaultGridVariablesCache< GetPropType< TypeTag, Properties::GridGeometry >, GetPropType< TypeTag, Properties::Problem >, Variables, getPropValue< TypeTag, Properties::EnableGridVolumeVariablesCache >() > > DefaultGridVariables
The grid variables of a model whose variables are defined per local degree of freedom.
Definition defaultgridvariables.hh:82
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 of the hyperelastic model.
Default implementation of the spatial params.
Variables of the hyperelastic model.
Definition solidmechanics/hyperelastic/model.hh:72
static constexpr int displacementIdx(int i)
Definition solidmechanics/hyperelastic/model.hh:73
static constexpr int equationIdx(int i)
Definition solidmechanics/hyperelastic/model.hh:74
HyperelasticModelTraits.
Definition solidmechanics/hyperelastic/model.hh:83
static constexpr int numEq()
Definition solidmechanics/hyperelastic/model.hh:85
HyperelasticIndices Indices
Definition solidmechanics/hyperelastic/model.hh:84
Definition solidmechanics/hyperelastic/model.hh:66
PV PrimaryVariables
Definition solidmechanics/hyperelastic/model.hh:67
MT ModelTraits
Definition solidmechanics/hyperelastic/model.hh:68
Dumux::Experimental::DefaultGridVariables< TypeTag > type
Definition solidmechanics/hyperelastic/model.hh:120
HyperelasticLocalResidual< TypeTag > type
Definition solidmechanics/hyperelastic/model.hh:101
HyperelasticModelTraits< GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimension > type
Definition solidmechanics/hyperelastic/model.hh:97
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition solidmechanics/hyperelastic/model.hh:126
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition solidmechanics/hyperelastic/model.hh:127
DefaultHyperelasticSpatialParams< GridGeometry, Scalar > type
Definition solidmechanics/hyperelastic/model.hh:128
Definition solidmechanics/hyperelastic/model.hh:92
std::tuple< ModelProperties > InheritsFrom
Definition solidmechanics/hyperelastic/model.hh:92
HyperelasticVolumeVariablesTraits< PV, MT > Traits
Definition solidmechanics/hyperelastic/model.hh:108
GetPropType< TypeTag, Properties::ModelTraits > MT
Definition solidmechanics/hyperelastic/model.hh:107
HyperelasticVariables< Traits > type
Definition solidmechanics/hyperelastic/model.hh:109
GetPropType< TypeTag, Properties::PrimaryVariables > PV
Definition solidmechanics/hyperelastic/model.hh:106
GetPropType< TypeTag, Properties::Variables > type
Definition solidmechanics/hyperelastic/model.hh:115