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 26 of file ComputeElasticityTensorBase.h.

Constructor & Destructor Documentation

◆ ComputeElasticityTensorBase()

ComputeElasticityTensorBase::ComputeElasticityTensorBase ( const InputParameters &  parameters)

Definition at line 28 of file ComputeElasticityTensorBase.C.

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

Member Function Documentation

◆ computeQpElasticityTensor()

virtual void ComputeElasticityTensorBase::computeQpElasticityTensor ( )
protectedpure virtual

◆ computeQpProperties()

void ComputeElasticityTensorBase::computeQpProperties ( )
protectedvirtual

Definition at line 41 of file ComputeElasticityTensorBase.C.

42 {
44 
45  // Multiply by prefactor
47  _elasticity_tensor[_qp] *= _prefactor_function->value(_t, _q_point[_qp]);
48 }
Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with
virtual void computeQpElasticityTensor()=0
MaterialProperty< RankFourTensor > & _elasticity_tensor

◆ hasGuarantee()

bool GuaranteeProvider::hasGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
inherited

Definition at line 16 of file GuaranteeProvider.C.

17 {
18  auto it = _guarantees.find(prop_name);
19  if (it == _guarantees.end())
20  return false;
21 
22  auto it2 = it->second.find(guarantee);
23  return it2 != it->second.end();
24 }
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees

◆ issueGuarantee()

void GuaranteeProvider::issueGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
protectedinherited

◆ revokeGuarantee()

void GuaranteeProvider::revokeGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
protectedinherited

Definition at line 34 of file GuaranteeProvider.C.

Referenced by ComputeElasticityTensorCP::ComputeElasticityTensorCP().

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

Member Data Documentation

◆ _base_name

std::string ComputeElasticityTensorBase::_base_name
protected

◆ _elasticity_tensor

MaterialProperty<RankFourTensor>& ComputeElasticityTensorBase::_elasticity_tensor
protected

◆ _elasticity_tensor_name

std::string ComputeElasticityTensorBase::_elasticity_tensor_name
protected

◆ _prefactor_function

Function* const ComputeElasticityTensorBase::_prefactor_function
protected

prefactor function to multiply the elasticity tensor with

Definition at line 42 of file ComputeElasticityTensorBase.h.

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


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