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

ComputeElasticityTensor defines an elasticity tensor material object with a given base name. More...

#include <ComputeElasticityTensor.h>

Inheritance diagram for ComputeElasticityTensor:
[legend]

Public Member Functions

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

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

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

Protected Attributes

RankFourTensor _Cijkl
 Individual material information. More...
 
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

ComputeElasticityTensor defines an elasticity tensor material object with a given base name.

Definition at line 22 of file ComputeElasticityTensor.h.

Constructor & Destructor Documentation

◆ ComputeElasticityTensor()

ComputeElasticityTensor::ComputeElasticityTensor ( const InputParameters &  parameters)

Definition at line 28 of file ComputeElasticityTensor.C.

30  _Cijkl(getParam<std::vector<Real>>("C_ijkl"),
31  (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method"))
32 {
33  if (!isParamValid("elasticity_tensor_prefactor"))
35 
36  if (_Cijkl.isIsotropic())
38  else
39  {
40  // Define a rotation according to Euler angle parameters
41  RotationTensor R(_Euler_angles); // R type: RealTensorValue
42 
43  // rotate elasticity tensor
44  _Cijkl.rotate(R);
45  }
46 }

Member Function Documentation

◆ computeQpElasticityTensor()

void ComputeElasticityTensor::computeQpElasticityTensor ( )
overrideprotectedvirtual

Implements ComputeElasticityTensorBase.

Reimplemented in ComputeElasticityTensorCP.

Definition at line 49 of file ComputeElasticityTensor.C.

50 {
51  // Assign elasticity tensor at a given quad point
53 }

◆ 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 ComputeElasticityTensor::validParams ( )
static

Definition at line 18 of file ComputeElasticityTensor.C.

19 {
20  InputParameters params = ComputeRotatedElasticityTensorBase::validParams();
21  params.addClassDescription("Compute an elasticity tensor.");
22  params.addRequiredParam<std::vector<Real>>("C_ijkl", "Stiffness tensor for material");
23  params.addParam<MooseEnum>(
24  "fill_method", RankFourTensor::fillMethodEnum() = "symmetric9", "The fill method");
25  return params;
26 }

Referenced by ComputeElasticityTensorCP::validParams().

Member Data Documentation

◆ _base_name

const std::string ComputeElasticityTensorBase::_base_name
protectedinherited

◆ _Cijkl

RankFourTensor ComputeElasticityTensor::_Cijkl
protected

◆ _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
protectedinherited

◆ _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:
ComputeElasticityTensor::_Cijkl
RankFourTensor _Cijkl
Individual material information.
Definition: ComputeElasticityTensor.h:33
ComputeElasticityTensorBase::_effective_stiffness
MaterialProperty< Real > & _effective_stiffness
Definition: ComputeElasticityTensorBase.h:41
GuaranteeProvider::_guarantees
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees
Definition: GuaranteeProvider.h:37
ComputeRotatedElasticityTensorBase::validParams
static InputParameters validParams()
Definition: ComputeRotatedElasticityTensorBase.C:16
GuaranteeProvider::issueGuarantee
void issueGuarantee(const MaterialPropertyName &prop_name, Guarantee guarantee)
Definition: GuaranteeProvider.C:27
Guarantee::CONSTANT_IN_TIME
ComputeElasticityTensorBase::computeQpElasticityTensor
virtual void computeQpElasticityTensor()=0
ComputeRotatedElasticityTensorBase::ComputeRotatedElasticityTensorBase
ComputeRotatedElasticityTensorBase(const InputParameters &parameters)
Definition: ComputeRotatedElasticityTensorBase.C:25
RotationTensor
This is a RealTensor version of a rotation matrix It is instantiated with the Euler angles,...
Definition: RotationTensor.h:29
ComputeElasticityTensorBase::_elasticity_tensor
MaterialProperty< RankFourTensor > & _elasticity_tensor
Definition: ComputeElasticityTensorBase.h:40
ComputeRotatedElasticityTensorBase::_Euler_angles
RealVectorValue _Euler_angles
Definition: ComputeRotatedElasticityTensorBase.h:31
ComputeElasticityTensorBase::_elasticity_tensor_name
std::string _elasticity_tensor_name
Definition: ComputeElasticityTensorBase.h:38
ComputeElasticityTensorBase::_prefactor_function
const Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with
Definition: ComputeElasticityTensorBase.h:44
Guarantee::ISOTROPIC