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

ComputeRotatedElasticityTensorBase is an intermediate base class that rotates an elasticity tensor based on euler angles. More...

#include <ComputeRotatedElasticityTensorBase.h>

Inheritance diagram for ComputeRotatedElasticityTensorBase:
[legend]

Public Member Functions

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

Static Public Member Functions

static InputParameters validParams ()
 

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

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

Private Attributes

std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees
 

Detailed Description

ComputeRotatedElasticityTensorBase is an intermediate base class that rotates an elasticity tensor based on euler angles.

Definition at line 23 of file ComputeRotatedElasticityTensorBase.h.

Constructor & Destructor Documentation

◆ ComputeRotatedElasticityTensorBase()

ComputeRotatedElasticityTensorBase::ComputeRotatedElasticityTensorBase ( const InputParameters &  parameters)

Definition at line 25 of file ComputeRotatedElasticityTensorBase.C.

27  : ComputeElasticityTensorBase(parameters),
28  _Euler_angles(getParam<Real>("euler_angle_1"),
29  getParam<Real>("euler_angle_2"),
30  getParam<Real>("euler_angle_3"))
31 {
32 }

Member Function Documentation

◆ computeQpElasticityTensor()

virtual void ComputeElasticityTensorBase::computeQpElasticityTensor ( )
protectedpure virtualinherited

◆ computeQpProperties()

void ComputeElasticityTensorBase::computeQpProperties ( )
protectedvirtualinherited

Definition at line 43 of file ComputeElasticityTensorBase.C.

44 {
45  _effective_stiffness[_qp] = 0; // Currently overriden by ComputeIsotropicElasticityTensor
47 
48  // Multiply by prefactor
50  {
51  _elasticity_tensor[_qp] *= _prefactor_function->value(_t, _q_point[_qp]);
52  _effective_stiffness[_qp] *= std::sqrt(_prefactor_function->value(_t, _q_point[_qp]));
53  }
54 }

◆ 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 }

◆ 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.

35 {
36  auto it = _guarantees.find(prop_name);
37  if (it != _guarantees.end())
38  it->second.erase(guarantee);
39 }

Referenced by ComputeElasticityTensorCP::ComputeElasticityTensorCP().

◆ validParams()

InputParameters ComputeRotatedElasticityTensorBase::validParams ( )
static

Definition at line 16 of file ComputeRotatedElasticityTensorBase.C.

17 {
18  InputParameters params = ComputeElasticityTensorBase::validParams();
19  params.addParam<Real>("euler_angle_1", 0.0, "Euler angle in direction 1");
20  params.addParam<Real>("euler_angle_2", 0.0, "Euler angle in direction 2");
21  params.addParam<Real>("euler_angle_3", 0.0, "Euler angle in direction 3");
22  return params;
23 }

Referenced by ComputeElasticityTensor::validParams(), and ComputeConcentrationDependentElasticityTensor::validParams().

Member Data Documentation

◆ _base_name

const std::string ComputeElasticityTensorBase::_base_name
protectedinherited

◆ _effective_stiffness

MaterialProperty<Real>& ComputeElasticityTensorBase::_effective_stiffness
protectedinherited

◆ _elasticity_tensor

MaterialProperty<RankFourTensor>& ComputeElasticityTensorBase::_elasticity_tensor
protectedinherited

◆ _elasticity_tensor_name

std::string ComputeElasticityTensorBase::_elasticity_tensor_name
protectedinherited

◆ _Euler_angles

RealVectorValue ComputeRotatedElasticityTensorBase::_Euler_angles
protected

◆ _guarantees

std::map<MaterialPropertyName, std::set<Guarantee> > GuaranteeProvider::_guarantees
privateinherited

◆ _prefactor_function

const Function* const ComputeElasticityTensorBase::_prefactor_function
protectedinherited

prefactor function to multiply the elasticity tensor with

Definition at line 44 of file ComputeElasticityTensorBase.h.

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


The documentation for this class was generated from the following files:
ComputeElasticityTensorBase::ComputeElasticityTensorBase
ComputeElasticityTensorBase(const InputParameters &parameters)
Definition: ComputeElasticityTensorBase.C:29
ComputeElasticityTensorBase::_effective_stiffness
MaterialProperty< Real > & _effective_stiffness
Definition: ComputeElasticityTensorBase.h:41
GuaranteeProvider::_guarantees
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees
Definition: GuaranteeProvider.h:37
ComputeElasticityTensorBase::computeQpElasticityTensor
virtual void computeQpElasticityTensor()=0
ComputeElasticityTensorBase::_elasticity_tensor
MaterialProperty< RankFourTensor > & _elasticity_tensor
Definition: ComputeElasticityTensorBase.h:40
ComputeRotatedElasticityTensorBase::_Euler_angles
RealVectorValue _Euler_angles
Definition: ComputeRotatedElasticityTensorBase.h:31
ComputeElasticityTensorBase::validParams
static InputParameters validParams()
Definition: ComputeElasticityTensorBase.C:16
ComputeElasticityTensorBase::_prefactor_function
const Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with
Definition: ComputeElasticityTensorBase.h:44