MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
LinearElasticMaterial< dim > Struct Template Reference

Linear elastic material. More...

#include <linear_elastic.hpp>

Public Member Functions

tensor< mfem::real_t, dim, dim > MFEM_HOST_DEVICE stress (const tensor< mfem::real_t, dim, dim > &dudx) const
 Compute the stress response.
 
tensor< mfem::real_t, dim, dim > MFEM_HOST_DEVICE action_of_gradient (const tensor< mfem::real_t, dim, dim > &, const tensor< mfem::real_t, dim, dim > &ddudx) const
 Apply the gradient of the stress.
 
tensor< mfem::real_t, dim, dim, dim, dim > MFEM_HOST_DEVICE gradient (tensor< mfem::real_t, dim, dim >) const
 Compute the gradient.
 

Public Attributes

mfem::real_t lambda = 100
 First Lame parameter.
 
mfem::real_t mu = 50
 Second Lame parameter.
 

Detailed Description

template<int dim>
struct LinearElasticMaterial< dim >

Linear elastic material.

Defines a linear elastic material response. It satisfies the material_type interface for ElasticityOperator::SetMaterial.

Definition at line 25 of file linear_elastic.hpp.

Member Function Documentation

◆ action_of_gradient()

template<int dim>
tensor< mfem::real_t, dim, dim > MFEM_HOST_DEVICE LinearElasticMaterial< dim >::action_of_gradient ( const tensor< mfem::real_t, dim, dim > & ,
const tensor< mfem::real_t, dim, dim > & ddudx ) const
inline

Apply the gradient of the stress.

Definition at line 46 of file linear_elastic.hpp.

◆ gradient()

template<int dim>
tensor< mfem::real_t, dim, dim, dim, dim > MFEM_HOST_DEVICE LinearElasticMaterial< dim >::gradient ( tensor< mfem::real_t, dim, dim > ) const
inline

Compute the gradient.

This method is used in the ElasticityDiagonalPreconditioner type to compute the gradient matrix entries of the current quadrature point, instead of the action.

Returns
tensor<double, dim, dim, dim, dim>

Definition at line 62 of file linear_elastic.hpp.

◆ stress()

template<int dim>
tensor< mfem::real_t, dim, dim > MFEM_HOST_DEVICE LinearElasticMaterial< dim >::stress ( const tensor< mfem::real_t, dim, dim > & dudx) const
inline

Compute the stress response.

Parameters
[in]dudxderivative of the displacement
Returns
tensor<double, dim, dim>

Definition at line 34 of file linear_elastic.hpp.

Member Data Documentation

◆ lambda

template<int dim>
mfem::real_t LinearElasticMaterial< dim >::lambda = 100

First Lame parameter.

Definition at line 73 of file linear_elastic.hpp.

◆ mu

template<int dim>
mfem::real_t LinearElasticMaterial< dim >::mu = 50

Second Lame parameter.

Definition at line 75 of file linear_elastic.hpp.


The documentation for this struct was generated from the following file: