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

#include <ElasticEnergyAux.h>

Inheritance diagram for ElasticEnergyAux:
[legend]

Public Member Functions

 ElasticEnergyAux (const InputParameters &parameters)
 
virtual ~ElasticEnergyAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

std::string _base_name
 
const MaterialProperty< RankTwoTensor > & _stress
 
const MaterialProperty< RankTwoTensor > & _elastic_strain
 

Detailed Description

Definition at line 22 of file ElasticEnergyAux.h.

Constructor & Destructor Documentation

◆ ElasticEnergyAux()

ElasticEnergyAux::ElasticEnergyAux ( const InputParameters &  parameters)

Definition at line 24 of file ElasticEnergyAux.C.

25  : AuxKernel(parameters),
26  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
27  _stress(getMaterialProperty<RankTwoTensor>(_base_name + "stress")),
28  _elastic_strain(getMaterialProperty<RankTwoTensor>(_base_name + "elastic_strain"))
29 {
30 }
const MaterialProperty< RankTwoTensor > & _stress
std::string _base_name
const MaterialProperty< RankTwoTensor > & _elastic_strain

◆ ~ElasticEnergyAux()

virtual ElasticEnergyAux::~ElasticEnergyAux ( )
inlinevirtual

Definition at line 26 of file ElasticEnergyAux.h.

26 {}

Member Function Documentation

◆ computeValue()

Real ElasticEnergyAux::computeValue ( )
protectedvirtual

Definition at line 33 of file ElasticEnergyAux.C.

34 {
35  return 0.5 * _stress[_qp].doubleContraction(_elastic_strain[_qp]);
36 }
const MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankTwoTensor > & _elastic_strain

Member Data Documentation

◆ _base_name

std::string ElasticEnergyAux::_base_name
protected

Definition at line 31 of file ElasticEnergyAux.h.

◆ _elastic_strain

const MaterialProperty<RankTwoTensor>& ElasticEnergyAux::_elastic_strain
protected

Definition at line 34 of file ElasticEnergyAux.h.

Referenced by computeValue().

◆ _stress

const MaterialProperty<RankTwoTensor>& ElasticEnergyAux::_stress
protected

Definition at line 33 of file ElasticEnergyAux.h.

Referenced by computeValue().


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