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 23 of file SolidMechanicsMaterial.h.

Constructor & Destructor Documentation

SolidMechanicsMaterial::SolidMechanicsMaterial ( const InputParameters &  parameters)

Definition at line 34 of file SolidMechanicsMaterial.C.

35  : Material(parameters),
36  _appended_property_name(getParam<std::string>("appended_property_name")),
37  _grad_disp_x(coupledGradient("disp_x")),
38  _grad_disp_y(coupledGradient("disp_y")),
39  _grad_disp_z(_mesh.dimension() == 3 ? coupledGradient("disp_z") : _grad_zero),
40  _has_temp(isCoupled("temp")),
41  _temp(_has_temp ? coupledValue("temp") : _zero),
42  _has_c(isCoupled("c")),
43  _c(_has_c ? coupledValue("c") : _zero),
45  _stress(createProperty<SymmTensor>("stress")),
48  _d_strain_dT(),
49  _d_stress_dT(createProperty<SymmTensor>("d_stress_dT")),
50  _elastic_strain(createProperty<SymmTensor>("elastic_strain"))
51 {
52 }
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

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

Definition at line 56 of file SolidMechanicsMaterial.h.

57  {
58  std::string name(prop_name + _appended_property_name);
59  return declareProperty<T>(name);
60  }
const std::string _appended_property_name
template<typename T >
const MaterialProperty<T>& SolidMechanicsMaterial::getPropertyOld ( const std::string &  prop_name)
inlineprotected

Definition at line 63 of file SolidMechanicsMaterial.h.

64  {
65  std::string name(prop_name + _appended_property_name);
66  return getMaterialPropertyOld<T>(name);
67  }
const std::string _appended_property_name
void SolidMechanicsMaterial::initQpStatefulProperties ( )
overrideprotectedvirtual

Definition at line 30 of file SolidMechanicsMaterial.C.

31 {
32 }

Member Data Documentation

const std::string SolidMechanicsMaterial::_appended_property_name
protected

Definition at line 30 of file SolidMechanicsMaterial.h.

const VariableValue& SolidMechanicsMaterial::_c
protected
SymmTensor SolidMechanicsMaterial::_d_strain_dT
protected
MaterialProperty<SymmTensor>& SolidMechanicsMaterial::_d_stress_dT
protected

Definition at line 51 of file SolidMechanicsMaterial.h.

Referenced by LinearIsotropicMaterial::computeStrain().

MaterialProperty<SymmTensor>& SolidMechanicsMaterial::_elastic_strain
protected
MaterialProperty<SymmElasticityTensor>& SolidMechanicsMaterial::_elasticity_tensor
protected
const VariableGradient& SolidMechanicsMaterial::_grad_disp_x
protected
const VariableGradient& SolidMechanicsMaterial::_grad_disp_y
protected
const VariableGradient& SolidMechanicsMaterial::_grad_disp_z
protected
bool SolidMechanicsMaterial::_has_c
protected

Definition at line 38 of file SolidMechanicsMaterial.h.

bool SolidMechanicsMaterial::_has_temp
protected

Definition at line 35 of file SolidMechanicsMaterial.h.

Referenced by LinearIsotropicMaterial::computeProperties().

MaterialProperty<SymmElasticityTensor>& SolidMechanicsMaterial::_Jacobian_mult
protected
MaterialProperty<SymmTensor>& SolidMechanicsMaterial::_stress
protected
const VariableValue& SolidMechanicsMaterial::_temp
protected

Definition at line 36 of file SolidMechanicsMaterial.h.

Referenced by LinearIsotropicMaterial::computeProperties().

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

Definition at line 41 of file SolidMechanicsMaterial.h.


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