https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
ComputeDeformGradBasedStress Class Reference

ComputeDeformGradBasedStress computes stress based on lagrangian strain definition. More...

#include <ComputeDeformGradBasedStress.h>

Inheritance diagram for ComputeDeformGradBasedStress:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 ComputeDeformGradBasedStress (const InputParameters &parameters)
 
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialPropertyByName (const std::string &name)
 
void validateDerivativeMaterialPropertyBase (const std::string &base)
 
const MaterialPropertyName derivativePropertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName derivativePropertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName derivativePropertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName derivativePropertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, unsigned int v2, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, unsigned int v1, unsigned int v2=libMesh::invalid_uint, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, unsigned int v2, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, unsigned int v1, unsigned int v2=libMesh::invalid_uint, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
void validateCoupling (const MaterialPropertyName &base, const std::vector< VariableName > &c, bool validate_aux=true)
 
void validateCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateCoupling (const MaterialPropertyName &base, const std::vector< VariableName > &c, bool validate_aux=true)
 
void validateCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateNonlinearCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateNonlinearCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
const MaterialPropertyName propertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName propertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName propertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName propertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName propertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName propertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName propertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 
const MaterialPropertyName propertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

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

Protected Attributes

const MaterialProperty< RankTwoTensor > & _deformation_gradient
 
const MaterialProperty< RankFourTensor > & _elasticity_tensor
 
MaterialProperty< RankTwoTensor > & _stress
 The stress tensor to be calculated.
 
MaterialProperty< RankFourTensor > & _Jacobian_mult
 

Private Member Functions

bool haveMaterialProperty (const std::string &prop_name)
 
std::vector< VariableName > buildVariableVector (const VariableName &c1, const VariableName &c2, const VariableName &c3)
 
void validateCouplingHelper (const MaterialPropertyName &base, const std::vector< VariableName > &c, const System &system, std::vector< VariableName > &missing)
 
bool isNotObjectVariable (const VariableName &name)
 

Private Attributes

FEProblemBase_dmi_fe_problem
 

Detailed Description

ComputeDeformGradBasedStress computes stress based on lagrangian strain definition.

Definition at line 21 of file ComputeDeformGradBasedStress.h.

Constructor & Destructor Documentation

◆ ComputeDeformGradBasedStress()

ComputeDeformGradBasedStress::ComputeDeformGradBasedStress ( const InputParameters parameters)

Definition at line 28 of file ComputeDeformGradBasedStress.C.

30 _deformation_gradient(getMaterialProperty<RankTwoTensor>("deform_grad_name")),
31 _elasticity_tensor(getMaterialProperty<RankFourTensor>("elasticity_tensor_name")),
32 _stress(declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("stress_name"))),
33 _Jacobian_mult(declareProperty<RankFourTensor>(getParam<MaterialPropertyName>("jacobian_name")))
34{
35}
MaterialProperty< RankTwoTensor > & _stress
The stress tensor to be calculated.
MaterialProperty< RankFourTensor > & _Jacobian_mult
const MaterialProperty< RankFourTensor > & _elasticity_tensor
const MaterialProperty< RankTwoTensor > & _deformation_gradient

Member Function Documentation

◆ computeQpProperties()

void ComputeDeformGradBasedStress::computeQpProperties ( )
protectedvirtual

Definition at line 44 of file ComputeDeformGradBasedStress.C.

◆ computeQpStress()

void ComputeDeformGradBasedStress::computeQpStress ( )
protectedvirtual

Definition at line 50 of file ComputeDeformGradBasedStress.C.

51{
53 RankTwoTensor ee =
54 0.5 * (_deformation_gradient[_qp].transpose() * _deformation_gradient[_qp] - iden);
55 RankTwoTensor pk2 = _elasticity_tensor[_qp] * ee;
56
58 _deformation_gradient[_qp].det();
60}
RankTwoTensorTempl< T > transpose() const

Referenced by computeQpProperties().

◆ initQpStatefulProperties()

void ComputeDeformGradBasedStress::initQpStatefulProperties ( )
protectedvirtual

Definition at line 38 of file ComputeDeformGradBasedStress.C.

39{
40 _stress[_qp].zero();
41}

◆ validParams()

InputParameters ComputeDeformGradBasedStress::validParams ( )
static

Definition at line 15 of file ComputeDeformGradBasedStress.C.

16{
18 params.addClassDescription("Computes stress based on Lagrangian strain");
19 params.addRequiredParam<MaterialPropertyName>("deform_grad_name",
20 "Name of deformation gradient variable");
21 params.addRequiredParam<MaterialPropertyName>("elasticity_tensor_name",
22 "Name of elasticity tensor variable");
23 params.addRequiredParam<MaterialPropertyName>("stress_name", "Name of stress variable");
24 params.addRequiredParam<MaterialPropertyName>("jacobian_name", "Name of Jacobian variable");
25 return params;
26}
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()

Member Data Documentation

◆ _deformation_gradient

const MaterialProperty<RankTwoTensor>& ComputeDeformGradBasedStress::_deformation_gradient
protected

Definition at line 33 of file ComputeDeformGradBasedStress.h.

Referenced by computeQpStress().

◆ _elasticity_tensor

const MaterialProperty<RankFourTensor>& ComputeDeformGradBasedStress::_elasticity_tensor
protected

Definition at line 34 of file ComputeDeformGradBasedStress.h.

Referenced by computeQpStress().

◆ _Jacobian_mult

MaterialProperty<RankFourTensor>& ComputeDeformGradBasedStress::_Jacobian_mult
protected

Definition at line 39 of file ComputeDeformGradBasedStress.h.

Referenced by computeQpStress().

◆ _stress

MaterialProperty<RankTwoTensor>& ComputeDeformGradBasedStress::_stress
protected

The stress tensor to be calculated.

Definition at line 37 of file ComputeDeformGradBasedStress.h.

Referenced by computeQpStress(), and initQpStatefulProperties().


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