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 18 of file ComputeElasticityTensorCP.h.

Constructor & Destructor Documentation

ComputeElasticityTensorCP::ComputeElasticityTensorCP ( const InputParameters &  parameters)

Definition at line 23 of file ComputeElasticityTensorCP.C.

24  : ComputeElasticityTensor(parameters),
25  _read_prop_user_object(isParamValid("read_prop_user_object")
26  ? &getUserObject<ElementPropertyReadFile>("read_prop_user_object")
27  : NULL),
28  _Euler_angles_mat_prop(declareProperty<RealVectorValue>("Euler_angles")),
29  _crysrot(declareProperty<RankTwoTensor>("crysrot")),
31 {
32  // the base class guarantees constant in time, but in this derived class the
33  // tensor will rotate over time once plastic deformation sets in
35 }
MaterialProperty< RealVectorValue > & _Euler_angles_mat_prop
ComputeElasticityTensor(const InputParameters &parameters)
RotationTensor _R
Rotation matrix.
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

void ComputeElasticityTensorCP::assignEulerAngles ( )
protectedvirtual

Definition at line 38 of file ComputeElasticityTensorCP.C.

Referenced by computeQpElasticityTensor().

39 {
41  {
42  _Euler_angles_mat_prop[_qp](0) = _read_prop_user_object->getData(_current_elem, 0);
43  _Euler_angles_mat_prop[_qp](1) = _read_prop_user_object->getData(_current_elem, 1);
44  _Euler_angles_mat_prop[_qp](2) = _read_prop_user_object->getData(_current_elem, 2);
45  }
46  else
48 }
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. ...
void ComputeElasticityTensorCP::computeQpElasticityTensor ( )
protectedvirtual

Reimplemented from ComputeElasticityTensor.

Definition at line 51 of file ComputeElasticityTensorCP.C.

52 {
53  // Properties assigned at the beginning of every call to material calculation
55 
57 
58  _crysrot[_qp] = _R.transpose();
60  _elasticity_tensor[_qp].rotate(_crysrot[_qp]);
61 }
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
void ComputeElasticityTensorBase::computeQpProperties ( )
protectedvirtualinherited

Definition at line 39 of file ComputeElasticityTensorBase.C.

40 {
42 
43  // Multiply by prefactor
45  _elasticity_tensor[_qp] *= _prefactor_function->value(_t, _q_point[_qp]);
46 }
Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with
virtual void computeQpElasticityTensor()=0
MaterialProperty< RankFourTensor > & _elasticity_tensor
bool GuaranteeProvider::hasGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
inherited

Definition at line 14 of file GuaranteeProvider.C.

15 {
16  auto it = _guarantees.find(prop_name);
17  if (it == _guarantees.end())
18  return false;
19 
20  auto it2 = it->second.find(guarantee);
21  return it2 != it->second.end();
22 }
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees
void GuaranteeProvider::issueGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
protectedinherited
void GuaranteeProvider::revokeGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
protectedinherited

Definition at line 32 of file GuaranteeProvider.C.

Referenced by ComputeElasticityTensorCP().

33 {
34  auto it = _guarantees.find(prop_name);
35  if (it != _guarantees.end())
36  it->second.erase(guarantee);
37 }
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees

Member Data Documentation

std::string ComputeElasticityTensorBase::_base_name
protectedinherited
RankFourTensor ComputeElasticityTensor::_Cijkl
protectedinherited
MaterialProperty<RankTwoTensor>& ComputeElasticityTensorCP::_crysrot
protected

Crystal Rotation Matrix.

Definition at line 37 of file ComputeElasticityTensorCP.h.

Referenced by computeQpElasticityTensor().

MaterialProperty<RankFourTensor>& ComputeElasticityTensorBase::_elasticity_tensor
protectedinherited
std::string ComputeElasticityTensorBase::_elasticity_tensor_name
protectedinherited
RealVectorValue ComputeRotatedElasticityTensorBase::_Euler_angles
protectedinherited
MaterialProperty<RealVectorValue>& ComputeElasticityTensorCP::_Euler_angles_mat_prop
protected

Definition at line 34 of file ComputeElasticityTensorCP.h.

Referenced by assignEulerAngles(), and computeQpElasticityTensor().

Function* const ComputeElasticityTensorBase::_prefactor_function
protectedinherited

prefactor function to multiply the elasticity tensor with

Definition at line 34 of file ComputeElasticityTensorBase.h.

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

RotationTensor ComputeElasticityTensorCP::_R
protected

Rotation matrix.

Definition at line 40 of file ComputeElasticityTensorCP.h.

Referenced by computeQpElasticityTensor().

const ElementPropertyReadFile* ComputeElasticityTensorCP::_read_prop_user_object
protected

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

Definition at line 32 of file ComputeElasticityTensorCP.h.

Referenced by assignEulerAngles().


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