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

ComputeElasticityTensorCP defines an elasticity tensor material object for crystal plasticity. More...

#include <ComputeElasticityTensorCP.h>

Inheritance diagram for ComputeElasticityTensorCP:
[legend]

Public Member Functions

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

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

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

Protected Attributes

const ElementPropertyReadFile_read_prop_user_object
 Element property read user object Presently used to read Euler angles - see test. More...
 
MaterialProperty< RealVectorValue > & _Euler_angles_mat_prop
 
MaterialProperty< RankTwoTensor > & _crysrot
 Crystal Rotation Matrix. More...
 
RotationTensor _R
 Rotation matrix. More...
 
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

ComputeElasticityTensorCP defines an elasticity tensor material object for crystal plasticity.

Definition at line 25 of file ComputeElasticityTensorCP.h.

Constructor & Destructor Documentation

◆ ComputeElasticityTensorCP()

ComputeElasticityTensorCP::ComputeElasticityTensorCP ( const InputParameters &  parameters)

Definition at line 29 of file ComputeElasticityTensorCP.C.

30  : ComputeElasticityTensor(parameters),
31  _read_prop_user_object(isParamValid("read_prop_user_object")
32  ? &getUserObject<ElementPropertyReadFile>("read_prop_user_object")
33  : nullptr),
34  _Euler_angles_mat_prop(declareProperty<RealVectorValue>("Euler_angles")),
35  _crysrot(declareProperty<RankTwoTensor>("crysrot")),
37 {
38  // the base class guarantees constant in time, but in this derived class the
39  // tensor will rotate over time once plastic deformation sets in
41 
42  // the base class performs a passive rotation, but the crystal plasticity
43  // materials use active rotation: recover unrotated _Cijkl here
44  _Cijkl.rotate(_R.transpose());
45 }

Member Function Documentation

◆ assignEulerAngles()

void ComputeElasticityTensorCP::assignEulerAngles ( )
protectedvirtual

Definition at line 48 of file ComputeElasticityTensorCP.C.

49 {
51  {
52  _Euler_angles_mat_prop[_qp](0) = _read_prop_user_object->getData(_current_elem, 0);
53  _Euler_angles_mat_prop[_qp](1) = _read_prop_user_object->getData(_current_elem, 1);
54  _Euler_angles_mat_prop[_qp](2) = _read_prop_user_object->getData(_current_elem, 2);
55  }
56  else
58 }

Referenced by computeQpElasticityTensor().

◆ computeQpElasticityTensor()

void ComputeElasticityTensorCP::computeQpElasticityTensor ( )
protectedvirtual

Reimplemented from ComputeElasticityTensor.

Definition at line 61 of file ComputeElasticityTensorCP.C.

62 {
63  // Properties assigned at the beginning of every call to material calculation
65 
67 
68  _crysrot[_qp] = _R.transpose();
70  _elasticity_tensor[_qp].rotate(_crysrot[_qp]);
71 }

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

◆ validParams()

InputParameters ComputeElasticityTensorCP::validParams ( )
static

Definition at line 18 of file ComputeElasticityTensorCP.C.

19 {
20  InputParameters params = ComputeElasticityTensor::validParams();
21  params.addClassDescription("Compute an elasticity tensor for crystal plasticity.");
22  params.addParam<UserObjectName>("read_prop_user_object",
23  "The ElementReadPropertyFile "
24  "GeneralUserObject to read element "
25  "specific property values from file");
26  return params;
27 }

Member Data Documentation

◆ _base_name

const std::string ComputeElasticityTensorBase::_base_name
protectedinherited

◆ _Cijkl

RankFourTensor ComputeElasticityTensor::_Cijkl
protectedinherited

◆ _crysrot

MaterialProperty<RankTwoTensor>& ComputeElasticityTensorCP::_crysrot
protected

Crystal Rotation Matrix.

Definition at line 46 of file ComputeElasticityTensorCP.h.

Referenced by computeQpElasticityTensor().

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

◆ _Euler_angles_mat_prop

MaterialProperty<RealVectorValue>& ComputeElasticityTensorCP::_Euler_angles_mat_prop
protected

Definition at line 43 of file ComputeElasticityTensorCP.h.

Referenced by assignEulerAngles(), and computeQpElasticityTensor().

◆ _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().

◆ _R

RotationTensor ComputeElasticityTensorCP::_R
protected

Rotation matrix.

Definition at line 49 of file ComputeElasticityTensorCP.h.

Referenced by ComputeElasticityTensorCP(), and computeQpElasticityTensor().

◆ _read_prop_user_object

const ElementPropertyReadFile* ComputeElasticityTensorCP::_read_prop_user_object
protected

Element property read user object Presently used to read Euler angles - see test.

Definition at line 41 of file ComputeElasticityTensorCP.h.

Referenced by assignEulerAngles().


The documentation for this class was generated from the following files:
ComputeElasticityTensor::ComputeElasticityTensor
ComputeElasticityTensor(const InputParameters &parameters)
Definition: ComputeElasticityTensor.C:28
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
ComputeElasticityTensorCP::assignEulerAngles
virtual void assignEulerAngles()
Definition: ComputeElasticityTensorCP.C:48
ElementPropertyReadFile::getData
Real getData(const Elem *, unsigned int) const
This function assign property data to elements.
Definition: ElementPropertyReadFile.C:126
ComputeElasticityTensorCP::_read_prop_user_object
const ElementPropertyReadFile * _read_prop_user_object
Element property read user object Presently used to read Euler angles - see test.
Definition: ComputeElasticityTensorCP.h:41
ComputeElasticityTensor::validParams
static InputParameters validParams()
Definition: ComputeElasticityTensor.C:18
Guarantee::CONSTANT_IN_TIME
ComputeElasticityTensorBase::computeQpElasticityTensor
virtual void computeQpElasticityTensor()=0
ComputeElasticityTensorCP::_crysrot
MaterialProperty< RankTwoTensor > & _crysrot
Crystal Rotation Matrix.
Definition: ComputeElasticityTensorCP.h:46
GuaranteeProvider::revokeGuarantee
void revokeGuarantee(const MaterialPropertyName &prop_name, Guarantee guarantee)
Definition: GuaranteeProvider.C:34
ComputeElasticityTensorBase::_elasticity_tensor
MaterialProperty< RankFourTensor > & _elasticity_tensor
Definition: ComputeElasticityTensorBase.h:40
ComputeElasticityTensorCP::_Euler_angles_mat_prop
MaterialProperty< RealVectorValue > & _Euler_angles_mat_prop
Definition: ComputeElasticityTensorCP.h:43
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
RotationTensor::update
void update(Axis axis, Real angle)
reforms the rotation matrix according to axis and angle.
Definition: RotationTensor.C:18
ComputeElasticityTensorCP::_R
RotationTensor _R
Rotation matrix.
Definition: ComputeElasticityTensorCP.h:49