www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected 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)
 

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

ComputeElasticityTensorCP defines an elasticity tensor material object for crystal plasticity.

Definition at line 26 of file ComputeElasticityTensorCP.h.

Constructor & Destructor Documentation

◆ ComputeElasticityTensorCP()

ComputeElasticityTensorCP::ComputeElasticityTensorCP ( const InputParameters &  parameters)

Definition at line 28 of file ComputeElasticityTensorCP.C.

29  : ComputeElasticityTensor(parameters),
30  _read_prop_user_object(isParamValid("read_prop_user_object")
31  ? &getUserObject<ElementPropertyReadFile>("read_prop_user_object")
32  : NULL),
33  _Euler_angles_mat_prop(declareProperty<RealVectorValue>("Euler_angles")),
34  _crysrot(declareProperty<RankTwoTensor>("crysrot")),
36 {
37  // the base class guarantees constant in time, but in this derived class the
38  // tensor will rotate over time once plastic deformation sets in
40 
41  // the base class performs a passive rotation, but the crystal plasticity
42  // materials use active rotation: recover unrotated _Cijkl here
43  _Cijkl.rotate(_R.transpose());
44 }
MaterialProperty< RealVectorValue > & _Euler_angles_mat_prop
ComputeElasticityTensor(const InputParameters &parameters)
RotationTensor _R
Rotation matrix.
RankFourTensor _Cijkl
Individual material information.
void revokeGuarantee(const MaterialPropertyName &prop_name, Guarantee guarantee)
MaterialProperty< RankTwoTensor > & _crysrot
Crystal Rotation Matrix.
const ElementPropertyReadFile * _read_prop_user_object
Element property read user object Presently used to read Euler angles - see test. ...

Member Function Documentation

◆ assignEulerAngles()

void ComputeElasticityTensorCP::assignEulerAngles ( )
protectedvirtual

Definition at line 47 of file ComputeElasticityTensorCP.C.

Referenced by computeQpElasticityTensor().

48 {
50  {
51  _Euler_angles_mat_prop[_qp](0) = _read_prop_user_object->getData(_current_elem, 0);
52  _Euler_angles_mat_prop[_qp](1) = _read_prop_user_object->getData(_current_elem, 1);
53  _Euler_angles_mat_prop[_qp](2) = _read_prop_user_object->getData(_current_elem, 2);
54  }
55  else
57 }
MaterialProperty< RealVectorValue > & _Euler_angles_mat_prop
Real getData(const Elem *, unsigned int) const
This function assign property data to elements.
const ElementPropertyReadFile * _read_prop_user_object
Element property read user object Presently used to read Euler angles - see test. ...

◆ computeQpElasticityTensor()

void ComputeElasticityTensorCP::computeQpElasticityTensor ( )
protectedvirtual

Reimplemented from ComputeElasticityTensor.

Definition at line 60 of file ComputeElasticityTensorCP.C.

61 {
62  // Properties assigned at the beginning of every call to material calculation
64 
66 
67  _crysrot[_qp] = _R.transpose();
69  _elasticity_tensor[_qp].rotate(_crysrot[_qp]);
70 }
MaterialProperty< RealVectorValue > & _Euler_angles_mat_prop
RotationTensor _R
Rotation matrix.
RankFourTensor _Cijkl
Individual material information.
MaterialProperty< RankTwoTensor > & _crysrot
Crystal Rotation Matrix.
void update(Axis axis, Real angle)
reforms the rotation matrix according to axis and angle.
MaterialProperty< RankFourTensor > & _elasticity_tensor

◆ computeQpProperties()

void ComputeElasticityTensorBase::computeQpProperties ( )
protectedvirtualinherited

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

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
protectedinherited

◆ _Cijkl

RankFourTensor ComputeElasticityTensor::_Cijkl
protectedinherited

◆ _crysrot

MaterialProperty<RankTwoTensor>& ComputeElasticityTensorCP::_crysrot
protected

Crystal Rotation Matrix.

Definition at line 45 of file ComputeElasticityTensorCP.h.

Referenced by computeQpElasticityTensor().

◆ _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 42 of file ComputeElasticityTensorCP.h.

Referenced by assignEulerAngles(), and computeQpElasticityTensor().

◆ _prefactor_function

Function* const ComputeElasticityTensorBase::_prefactor_function
protectedinherited

prefactor function to multiply the elasticity tensor with

Definition at line 42 of file ComputeElasticityTensorBase.h.

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

◆ _R

RotationTensor ComputeElasticityTensorCP::_R
protected

Rotation matrix.

Definition at line 48 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 40 of file ComputeElasticityTensorCP.h.

Referenced by assignEulerAngles().


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