www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ComputeExtraStressBase Class Referenceabstract

ComputeExtraStressBase is the base class for extra_stress, which is added to stress calculated by the material's constitutive model. More...

#include <ComputeExtraStressBase.h>

Inheritance diagram for ComputeExtraStressBase:
[legend]

Public Member Functions

 ComputeExtraStressBase (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties ()
 
virtual void computeQpExtraStress ()=0
 

Protected Attributes

std::string _base_name
 
std::string _extra_stress_name
 
MaterialProperty< RankTwoTensor > & _extra_stress
 

Detailed Description

ComputeExtraStressBase is the base class for extra_stress, which is added to stress calculated by the material's constitutive model.

Definition at line 25 of file ComputeExtraStressBase.h.

Constructor & Destructor Documentation

◆ ComputeExtraStressBase()

ComputeExtraStressBase::ComputeExtraStressBase ( const InputParameters &  parameters)

Definition at line 24 of file ComputeExtraStressBase.C.

25  : Material(parameters),
26  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
27  _extra_stress_name(_base_name + "extra_stress"),
28  _extra_stress(declareProperty<RankTwoTensor>(_base_name + "extra_stress"))
29 {
30 }
MaterialProperty< RankTwoTensor > & _extra_stress

Member Function Documentation

◆ computeQpExtraStress()

virtual void ComputeExtraStressBase::computeQpExtraStress ( )
protectedpure virtual

Implemented in ComputeExtraStressConstant.

Referenced by computeQpProperties().

◆ computeQpProperties()

void ComputeExtraStressBase::computeQpProperties ( )
protectedvirtual

Definition at line 33 of file ComputeExtraStressBase.C.

34 {
36 }
virtual void computeQpExtraStress()=0

Member Data Documentation

◆ _base_name

std::string ComputeExtraStressBase::_base_name
protected

Definition at line 34 of file ComputeExtraStressBase.h.

◆ _extra_stress

MaterialProperty<RankTwoTensor>& ComputeExtraStressBase::_extra_stress
protected

◆ _extra_stress_name

std::string ComputeExtraStressBase::_extra_stress_name
protected

Definition at line 35 of file ComputeExtraStressBase.h.


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