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

ComputeElasticityTensor defines an elasticity tensor material object as a function of concentration field. More...

#include <ComputeConcentrationDependentElasticityTensor.h>

Inheritance diagram for ComputeConcentrationDependentElasticityTensor:
[legend]

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

RankFourTensor _Cijkl0
 Elasticity tensor for phase with zero concentration. More...
 
RankFourTensor _Cijkl1
 Elasticity tensor for phase with concentration 1. More...
 
const VariableValue & _c
 Concentration variable. More...
 
VariableName _c_name
 
MaterialProperty< RankFourTensor > & _delasticity_tensor_dc
 Derivative of elasticity tensor with respect to concentration. 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

ComputeElasticityTensor defines an elasticity tensor material object as a function of concentration field.

Definition at line 16 of file ComputeConcentrationDependentElasticityTensor.h.

Constructor & Destructor Documentation

ComputeConcentrationDependentElasticityTensor::ComputeConcentrationDependentElasticityTensor ( const InputParameters &  parameters)

Definition at line 28 of file ComputeConcentrationDependentElasticityTensor.C.

31  _Cijkl0(getParam<std::vector<Real>>("C0_ijkl"),
32  (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method0")),
33  _Cijkl1(getParam<std::vector<Real>>("C1_ijkl"),
34  (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method1")),
35  _c(coupledValue("c")),
36  _c_name(getVar("c", 0)->name()),
38  declarePropertyDerivative<RankFourTensor>(_elasticity_tensor_name, _c_name))
39 {
40  // Define a rotation according to Euler angle parameters
41  RotationTensor R(_Euler_angles); // R type: RealTensorValue
42 
43  // Rotate tensors
44  _Cijkl0.rotate(R);
45  _Cijkl1.rotate(R);
46 }
RankFourTensor _Cijkl1
Elasticity tensor for phase with concentration 1.
RankFourTensor _Cijkl0
Elasticity tensor for phase with zero concentration.
MaterialProperty< RankFourTensor > & _delasticity_tensor_dc
Derivative of elasticity tensor with respect to concentration.
ComputeRotatedElasticityTensorBase(const InputParameters &parameters)
This is a RealTensor version of a rotation matrix It is instantiated with the Euler angles...

Member Function Documentation

void ComputeConcentrationDependentElasticityTensor::computeQpElasticityTensor ( )
protectedvirtual

Implements ComputeElasticityTensorBase.

Definition at line 49 of file ComputeConcentrationDependentElasticityTensor.C.

50 {
51  // Assign elasticity tensor at a given quad point
52  _elasticity_tensor[_qp] = _Cijkl0 + (_Cijkl1 - _Cijkl0) * _c[_qp];
53  // Define derivative of elasticity tensor with respect to concentration.
55 }
RankFourTensor _Cijkl1
Elasticity tensor for phase with concentration 1.
RankFourTensor _Cijkl0
Elasticity tensor for phase with zero concentration.
MaterialProperty< RankFourTensor > & _delasticity_tensor_dc
Derivative of elasticity tensor with respect to concentration.
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::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
const VariableValue& ComputeConcentrationDependentElasticityTensor::_c
protected

Concentration variable.

Definition at line 29 of file ComputeConcentrationDependentElasticityTensor.h.

Referenced by computeQpElasticityTensor().

VariableName ComputeConcentrationDependentElasticityTensor::_c_name
protected
RankFourTensor ComputeConcentrationDependentElasticityTensor::_Cijkl0
protected

Elasticity tensor for phase with zero concentration.

Definition at line 25 of file ComputeConcentrationDependentElasticityTensor.h.

Referenced by ComputeConcentrationDependentElasticityTensor(), and computeQpElasticityTensor().

RankFourTensor ComputeConcentrationDependentElasticityTensor::_Cijkl1
protected

Elasticity tensor for phase with concentration 1.

Definition at line 27 of file ComputeConcentrationDependentElasticityTensor.h.

Referenced by ComputeConcentrationDependentElasticityTensor(), and computeQpElasticityTensor().

MaterialProperty<RankFourTensor>& ComputeConcentrationDependentElasticityTensor::_delasticity_tensor_dc
protected

Derivative of elasticity tensor with respect to concentration.

Definition at line 33 of file ComputeConcentrationDependentElasticityTensor.h.

Referenced by computeQpElasticityTensor().

MaterialProperty<RankFourTensor>& ComputeElasticityTensorBase::_elasticity_tensor
protectedinherited
std::string ComputeElasticityTensorBase::_elasticity_tensor_name
protectedinherited
RealVectorValue ComputeRotatedElasticityTensorBase::_Euler_angles
protectedinherited
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().


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