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 19 of file ElasticEnergyAux.h.

Constructor & Destructor Documentation

ElasticEnergyAux::ElasticEnergyAux ( const InputParameters &  parameters)

Definition at line 19 of file ElasticEnergyAux.C.

20  : AuxKernel(parameters),
21  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
22  _stress(getMaterialProperty<RankTwoTensor>(_base_name + "stress")),
23  _elastic_strain(getMaterialProperty<RankTwoTensor>(_base_name + "elastic_strain"))
24 {
25 }
const MaterialProperty< RankTwoTensor > & _stress
std::string _base_name
const MaterialProperty< RankTwoTensor > & _elastic_strain
virtual ElasticEnergyAux::~ElasticEnergyAux ( )
inlinevirtual

Definition at line 23 of file ElasticEnergyAux.h.

23 {}

Member Function Documentation

Real ElasticEnergyAux::computeValue ( )
protectedvirtual

Definition at line 28 of file ElasticEnergyAux.C.

Referenced by ~ElasticEnergyAux().

29 {
30  return 0.5 * _stress[_qp].doubleContraction(_elastic_strain[_qp]);
31 }
const MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankTwoTensor > & _elastic_strain

Member Data Documentation

std::string ElasticEnergyAux::_base_name
protected

Definition at line 28 of file ElasticEnergyAux.h.

const MaterialProperty<RankTwoTensor>& ElasticEnergyAux::_elastic_strain
protected

Definition at line 31 of file ElasticEnergyAux.h.

Referenced by computeValue().

const MaterialProperty<RankTwoTensor>& ElasticEnergyAux::_stress
protected

Definition at line 30 of file ElasticEnergyAux.h.

Referenced by computeValue().


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