www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADComputeElasticityTensorBase< compute_stage > Class Template Referenceabstract

ADComputeElasticityTensorBase is a the base class for computing elasticity tensors. More...

#include <ADComputeElasticityTensorBase.h>

Inheritance diagram for ADComputeElasticityTensorBase< compute_stage >:
[legend]

Public Member Functions

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

Protected Member Functions

virtual void computeQpProperties ()
 
virtual void computeQpElasticityTensor ()=0
 
 ADMaterialProperty (RankFourTensor) &_elasticity_tensor
 
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
 
Function *const _prefactor_function
 prefactor function to multiply the elasticity tensor with More...
 
 usingMaterialMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADComputeElasticityTensorBase< compute_stage >

ADComputeElasticityTensorBase is a the base class for computing elasticity tensors.

Definition at line 24 of file ADComputeElasticityTensorBase.h.

Constructor & Destructor Documentation

◆ ADComputeElasticityTensorBase()

template<ComputeStage compute_stage>
ADComputeElasticityTensorBase< compute_stage >::ADComputeElasticityTensorBase ( const InputParameters &  parameters)

Definition at line 24 of file ADComputeElasticityTensorBase.C.

26  : ADMaterial<compute_stage>(parameters),
27  GuaranteeProvider(this),
28  _base_name(isParamValid("base_name") ? adGetParam<std::string>("base_name") + "_" : ""),
29  _elasticity_tensor_name(_base_name + "elasticity_tensor"),
30  _elasticity_tensor(adDeclareADProperty<RankFourTensor>(_elasticity_tensor_name)),
31  _prefactor_function(isParamValid("elasticity_tensor_prefactor")
32  ? &getFunction("elasticity_tensor_prefactor")
33  : nullptr)
34 {
35 }
GuaranteeProvider(const MooseObject *moose_object)
Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with

Member Function Documentation

◆ ADMaterialProperty()

template<ComputeStage compute_stage>
ADComputeElasticityTensorBase< compute_stage >::ADMaterialProperty ( RankFourTensor  ) &
protected

◆ computeQpElasticityTensor()

template<ComputeStage compute_stage>
virtual void ADComputeElasticityTensorBase< compute_stage >::computeQpElasticityTensor ( )
protectedpure virtual

◆ computeQpProperties()

template<ComputeStage compute_stage>
void ADComputeElasticityTensorBase< compute_stage >::computeQpProperties ( )
protectedvirtual

Definition at line 39 of file ADComputeElasticityTensorBase.C.

40 {
42 
43  // Multiply by prefactor
45  _elasticity_tensor[_qp] *= _prefactor_function->value(_t, _q_point[_qp]);
46 }
virtual void computeQpElasticityTensor()=0
Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with

◆ 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

template<ComputeStage compute_stage>
std::string ADComputeElasticityTensorBase< compute_stage >::_base_name
protected

Definition at line 46 of file ADComputeElasticityTensorBase.h.

◆ _elasticity_tensor_name

template<ComputeStage compute_stage>
std::string ADComputeElasticityTensorBase< compute_stage >::_elasticity_tensor_name
protected

◆ _prefactor_function

template<ComputeStage compute_stage>
Function* const ADComputeElasticityTensorBase< compute_stage >::_prefactor_function
protected

prefactor function to multiply the elasticity tensor with

Definition at line 52 of file ADComputeElasticityTensorBase.h.

◆ usingMaterialMembers

template<ComputeStage compute_stage>
ADComputeElasticityTensorBase< compute_stage >::usingMaterialMembers
protected

Definition at line 54 of file ADComputeElasticityTensorBase.h.


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