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

ComputeLinearElasticStress computes the stress following linear elasticity theory (small strains) More...

#include <ComputeLinearElasticStress.h>

Inheritance diagram for ComputeLinearElasticStress:
[legend]

Public Member Functions

 ComputeLinearElasticStress (const InputParameters &parameters)
 
virtual void initialSetup ()
 

Protected Member Functions

virtual void computeQpStress ()
 
virtual void initQpStatefulProperties () override
 
virtual void computeQpProperties () override
 

Protected Attributes

const MaterialProperty< RankTwoTensor > & _mechanical_strain
 
const std::string _base_name
 
const std::string _elasticity_tensor_name
 
MaterialProperty< RankTwoTensor > & _stress
 
MaterialProperty< RankTwoTensor > & _elastic_strain
 
const MaterialProperty< RankFourTensor > & _elasticity_tensor
 
const MaterialProperty< RankTwoTensor > & _extra_stress
 Extra stress tensor. More...
 
std::vector< Function * > _initial_stress_fcn
 initial stress components More...
 
MaterialProperty< RankFourTensor > & _Jacobian_mult
 derivative of stress w.r.t. strain (_dstress_dstrain) More...
 

Detailed Description

ComputeLinearElasticStress computes the stress following linear elasticity theory (small strains)

Definition at line 23 of file ComputeLinearElasticStress.h.

Constructor & Destructor Documentation

◆ ComputeLinearElasticStress()

ComputeLinearElasticStress::ComputeLinearElasticStress ( const InputParameters &  parameters)

Definition at line 23 of file ComputeLinearElasticStress.C.

24  : ComputeStressBase(parameters),
25  _mechanical_strain(getMaterialPropertyByName<RankTwoTensor>(_base_name + "mechanical_strain"))
26 {
27 }
const MaterialProperty< RankTwoTensor > & _mechanical_strain
const std::string _base_name
ComputeStressBase(const InputParameters &parameters)

Member Function Documentation

◆ computeQpProperties()

void ComputeStressBase::computeQpProperties ( )
overrideprotectedvirtualinherited

Definition at line 51 of file ComputeStressBase.C.

52 {
54 
55  // Add in extra stress
56  _stress[_qp] += _extra_stress[_qp];
57 }
virtual void computeQpStress()=0
MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankTwoTensor > & _extra_stress
Extra stress tensor.

◆ computeQpStress()

void ComputeLinearElasticStress::computeQpStress ( )
protectedvirtual

Implements ComputeStressBase.

Reimplemented in ComputeLinearViscoelasticStress.

Definition at line 39 of file ComputeLinearElasticStress.C.

40 {
41  // stress = C * e
43 
44  // Assign value for elastic strain, which is equal to the mechanical strain
46 
47  // Compute dstress_dstrain
49 }
MaterialProperty< RankFourTensor > & _Jacobian_mult
derivative of stress w.r.t. strain (_dstress_dstrain)
MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankTwoTensor > & _mechanical_strain
const MaterialProperty< RankFourTensor > & _elasticity_tensor
MaterialProperty< RankTwoTensor > & _elastic_strain

◆ initialSetup()

void ComputeLinearElasticStress::initialSetup ( )
virtual

Definition at line 30 of file ComputeLinearElasticStress.C.

31 {
32  if (hasBlockMaterialProperty<RankTwoTensor>(_base_name + "strain_increment"))
33  mooseError("This linear elastic stress calculation only works for small strains; use "
34  "ComputeFiniteStrainElasticStress for simulations using incremental and finite "
35  "strains.");
36 }
const std::string _base_name

◆ initQpStatefulProperties()

void ComputeStressBase::initQpStatefulProperties ( )
overrideprotectedvirtualinherited

Member Data Documentation

◆ _base_name

const std::string ComputeStressBase::_base_name
protectedinherited

◆ _elastic_strain

MaterialProperty<RankTwoTensor>& ComputeStressBase::_elastic_strain
protectedinherited

◆ _elasticity_tensor

const MaterialProperty<RankFourTensor>& ComputeStressBase::_elasticity_tensor
protectedinherited

◆ _elasticity_tensor_name

const std::string ComputeStressBase::_elasticity_tensor_name
protectedinherited

◆ _extra_stress

const MaterialProperty<RankTwoTensor>& ComputeStressBase::_extra_stress
protectedinherited

Extra stress tensor.

Definition at line 47 of file ComputeStressBase.h.

Referenced by ComputeStressBase::computeQpProperties().

◆ _initial_stress_fcn

std::vector<Function *> ComputeStressBase::_initial_stress_fcn
protectedinherited

initial stress components

Definition at line 50 of file ComputeStressBase.h.

◆ _Jacobian_mult

MaterialProperty<RankFourTensor>& ComputeStressBase::_Jacobian_mult
protectedinherited

◆ _mechanical_strain

const MaterialProperty<RankTwoTensor>& ComputeLinearElasticStress::_mechanical_strain
protected

◆ _stress

MaterialProperty<RankTwoTensor>& ComputeStressBase::_stress
protectedinherited

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