MFEM  v4.6.0
Finite element discretization library
Public Member Functions | Public Attributes | List of all members
LinearElasticMaterial< dim > Struct Template Reference

Linear elastic material. More...

#include <linear_elastic.hpp>

Public Member Functions

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

Public Attributes

double lambda = 100
 First Lame parameter. More...
 
double mu = 50
 Second Lame parameter. More...
 

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<double, dim, dim> MFEM_HOST_DEVICE LinearElasticMaterial< dim >::action_of_gradient ( const tensor< double, dim, dim > &  ,
const tensor< double, 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<double, dim, dim, dim, dim> MFEM_HOST_DEVICE LinearElasticMaterial< dim >::gradient ( tensor< double, 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<double, dim, dim> MFEM_HOST_DEVICE LinearElasticMaterial< dim >::stress ( const tensor< double, 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>
double LinearElasticMaterial< dim >::lambda = 100

First Lame parameter.

Definition at line 73 of file linear_elastic.hpp.

◆ mu

template<int dim>
double 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: