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

ComputeElasticityTensorBase the base class for computing elasticity tensors. More...

#include <ComputeElasticityTensorBase.h>

Inheritance diagram for ComputeElasticityTensorBase:
[legend]

Public Member Functions

 ComputeElasticityTensorBase (const InputParameters &parameters)
 
bool hasGuarantee (const MaterialPropertyName &prop_name, Guarantee guarantee)
 

Protected Member Functions

virtual void computeQpProperties ()
 
virtual void computeQpElasticityTensor ()=0
 
void issueGuarantee (const MaterialPropertyName &prop_name, Guarantee guarantee)
 
void revokeGuarantee (const MaterialPropertyName &prop_name, Guarantee guarantee)
 

Protected Attributes

std::string _base_name
 
std::string _elasticity_tensor_name
 
MaterialProperty< RankFourTensor > & _elasticity_tensor
 
Function *const _prefactor_function
 prefactor function to multiply the elasticity tensor with More...
 

Detailed Description

ComputeElasticityTensorBase the base class for computing elasticity tensors.

Definition at line 18 of file ComputeElasticityTensorBase.h.

Constructor & Destructor Documentation

ComputeElasticityTensorBase::ComputeElasticityTensorBase ( const InputParameters &  parameters)

Definition at line 26 of file ComputeElasticityTensorBase.C.

27  : DerivativeMaterialInterface<Material>(parameters),
28  GuaranteeProvider(this),
29  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
30  _elasticity_tensor_name(_base_name + "elasticity_tensor"),
31  _elasticity_tensor(declareProperty<RankFourTensor>(_elasticity_tensor_name)),
32  _prefactor_function(isParamValid("elasticity_tensor_prefactor")
33  ? &getFunction("elasticity_tensor_prefactor")
34  : NULL)
35 {
36 }
GuaranteeProvider(const MooseObject *moose_object)
Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with
MaterialProperty< RankFourTensor > & _elasticity_tensor

Member Function Documentation

virtual void ComputeElasticityTensorBase::computeQpElasticityTensor ( )
protectedpure virtual
void ComputeElasticityTensorBase::computeQpProperties ( )
protectedvirtual

Definition at line 39 of file ComputeElasticityTensorBase.C.

40 {
42 
43  // Multiply by prefactor
45  _elasticity_tensor[_qp] *= _prefactor_function->value(_t, _q_point[_qp]);
46 }
Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with
virtual void computeQpElasticityTensor()=0
MaterialProperty< RankFourTensor > & _elasticity_tensor
bool GuaranteeProvider::hasGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
inherited

Definition at line 14 of file GuaranteeProvider.C.

15 {
16  auto it = _guarantees.find(prop_name);
17  if (it == _guarantees.end())
18  return false;
19 
20  auto it2 = it->second.find(guarantee);
21  return it2 != it->second.end();
22 }
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees
void GuaranteeProvider::issueGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
protectedinherited
void GuaranteeProvider::revokeGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
protectedinherited

Definition at line 32 of file GuaranteeProvider.C.

Referenced by ComputeElasticityTensorCP::ComputeElasticityTensorCP().

33 {
34  auto it = _guarantees.find(prop_name);
35  if (it != _guarantees.end())
36  it->second.erase(guarantee);
37 }
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees

Member Data Documentation

std::string ComputeElasticityTensorBase::_base_name
protected
MaterialProperty<RankFourTensor>& ComputeElasticityTensorBase::_elasticity_tensor
protected
std::string ComputeElasticityTensorBase::_elasticity_tensor_name
protected
Function* const ComputeElasticityTensorBase::_prefactor_function
protected

prefactor function to multiply the elasticity tensor with

Definition at line 34 of file ComputeElasticityTensorBase.h.

Referenced by ComputeLayeredCosseratElasticityTensor::computeQpElasticityTensor(), and computeQpProperties().


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