www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SolidMechanicsMaterial Class Reference

SolidMechanics material for use in simple applications that don't need material properties. More...

#include <SolidMechanicsMaterial.h>

Inheritance diagram for SolidMechanicsMaterial:
[legend]

Public Member Functions

 SolidMechanicsMaterial (const InputParameters &parameters)
 

Protected Member Functions

virtual void initQpStatefulProperties () override
 
template<typename T >
MaterialProperty< T > & createProperty (const std::string &prop_name)
 
template<typename T >
const MaterialProperty< T > & getPropertyOld (const std::string &prop_name)
 

Protected Attributes

const std::string _appended_property_name
 
const VariableGradient & _grad_disp_x
 
const VariableGradient & _grad_disp_y
 
const VariableGradient & _grad_disp_z
 
bool _has_temp
 
const VariableValue & _temp
 
bool _has_c
 
const VariableValue & _c
 
std::vector< VolumetricModel * > _volumetric_models
 
MaterialProperty< SymmTensor > & _stress
 
MaterialProperty< SymmElasticityTensor > & _elasticity_tensor
 
MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
 
SymmTensor _d_strain_dT
 
MaterialProperty< SymmTensor > & _d_stress_dT
 
MaterialProperty< SymmTensor > & _elastic_strain
 

Detailed Description

SolidMechanics material for use in simple applications that don't need material properties.

Definition at line 26 of file SolidMechanicsMaterial.h.

Constructor & Destructor Documentation

◆ SolidMechanicsMaterial()

SolidMechanicsMaterial::SolidMechanicsMaterial ( const InputParameters &  parameters)

Definition at line 36 of file SolidMechanicsMaterial.C.

37  : Material(parameters),
38  _appended_property_name(getParam<std::string>("appended_property_name")),
39  _grad_disp_x(coupledGradient("disp_x")),
40  _grad_disp_y(coupledGradient("disp_y")),
41  _grad_disp_z(_mesh.dimension() == 3 ? coupledGradient("disp_z") : _grad_zero),
42  _has_temp(isCoupled("temp")),
43  _temp(_has_temp ? coupledValue("temp") : _zero),
44  _has_c(isCoupled("c")),
45  _c(_has_c ? coupledValue("c") : _zero),
47  _stress(createProperty<SymmTensor>("stress")),
50  _d_strain_dT(),
51  _d_stress_dT(createProperty<SymmTensor>("d_stress_dT")),
52  _elastic_strain(createProperty<SymmTensor>("elastic_strain"))
53 {
54 }
This class defines a basic set of capabilities any elasticity tensor should have. ...
const VariableValue & _c
std::vector< VolumetricModel * > _volumetric_models
MaterialProperty< SymmTensor > & _elastic_strain
const VariableValue & _temp
const VariableGradient & _grad_disp_y
const VariableGradient & _grad_disp_x
MaterialProperty< SymmElasticityTensor > & _elasticity_tensor
const std::string _appended_property_name
MaterialProperty< T > & createProperty(const std::string &prop_name)
MaterialProperty< SymmTensor > & _stress
const VariableGradient & _grad_disp_z
MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
MaterialProperty< SymmTensor > & _d_stress_dT

Member Function Documentation

◆ createProperty()

template<typename T >
MaterialProperty<T>& SolidMechanicsMaterial::createProperty ( const std::string &  prop_name)
inlineprotected

Definition at line 59 of file SolidMechanicsMaterial.h.

60  {
61  std::string name(prop_name + _appended_property_name);
62  return declareProperty<T>(name);
63  }
const std::string name
Definition: Setup.h:22
const std::string _appended_property_name

◆ getPropertyOld()

template<typename T >
const MaterialProperty<T>& SolidMechanicsMaterial::getPropertyOld ( const std::string &  prop_name)
inlineprotected

Definition at line 66 of file SolidMechanicsMaterial.h.

67  {
68  std::string name(prop_name + _appended_property_name);
69  return getMaterialPropertyOld<T>(name);
70  }
const std::string name
Definition: Setup.h:22
const std::string _appended_property_name

◆ initQpStatefulProperties()

void SolidMechanicsMaterial::initQpStatefulProperties ( )
overrideprotectedvirtual

Definition at line 32 of file SolidMechanicsMaterial.C.

33 {
34 }

Member Data Documentation

◆ _appended_property_name

const std::string SolidMechanicsMaterial::_appended_property_name
protected

Definition at line 33 of file SolidMechanicsMaterial.h.

Referenced by createProperty(), and getPropertyOld().

◆ _c

const VariableValue& SolidMechanicsMaterial::_c
protected

◆ _d_strain_dT

SymmTensor SolidMechanicsMaterial::_d_strain_dT
protected

◆ _d_stress_dT

MaterialProperty<SymmTensor>& SolidMechanicsMaterial::_d_stress_dT
protected

Definition at line 54 of file SolidMechanicsMaterial.h.

Referenced by LinearIsotropicMaterial::computeStrain().

◆ _elastic_strain

MaterialProperty<SymmTensor>& SolidMechanicsMaterial::_elastic_strain
protected

◆ _elasticity_tensor

MaterialProperty<SymmElasticityTensor>& SolidMechanicsMaterial::_elasticity_tensor
protected

◆ _grad_disp_x

const VariableGradient& SolidMechanicsMaterial::_grad_disp_x
protected

◆ _grad_disp_y

const VariableGradient& SolidMechanicsMaterial::_grad_disp_y
protected

◆ _grad_disp_z

const VariableGradient& SolidMechanicsMaterial::_grad_disp_z
protected

◆ _has_c

bool SolidMechanicsMaterial::_has_c
protected

Definition at line 41 of file SolidMechanicsMaterial.h.

◆ _has_temp

bool SolidMechanicsMaterial::_has_temp
protected

Definition at line 38 of file SolidMechanicsMaterial.h.

Referenced by LinearIsotropicMaterial::computeProperties().

◆ _Jacobian_mult

MaterialProperty<SymmElasticityTensor>& SolidMechanicsMaterial::_Jacobian_mult
protected

◆ _stress

MaterialProperty<SymmTensor>& SolidMechanicsMaterial::_stress
protected

◆ _temp

const VariableValue& SolidMechanicsMaterial::_temp
protected

Definition at line 39 of file SolidMechanicsMaterial.h.

Referenced by LinearIsotropicMaterial::computeProperties().

◆ _volumetric_models

std::vector<VolumetricModel *> SolidMechanicsMaterial::_volumetric_models
protected

Definition at line 44 of file SolidMechanicsMaterial.h.


The documentation for this class was generated from the following files: