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 24 of file ComputeConcentrationDependentElasticityTensor.h.

Constructor & Destructor Documentation

◆ ComputeConcentrationDependentElasticityTensor()

ComputeConcentrationDependentElasticityTensor::ComputeConcentrationDependentElasticityTensor ( const InputParameters &  parameters)

Definition at line 33 of file ComputeConcentrationDependentElasticityTensor.C.

36  _Cijkl0(getParam<std::vector<Real>>("C0_ijkl"),
37  (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method0")),
38  _Cijkl1(getParam<std::vector<Real>>("C1_ijkl"),
39  (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method1")),
40  _c(coupledValue("c")),
41  _c_name(getVar("c", 0)->name()),
43  declarePropertyDerivative<RankFourTensor>(_elasticity_tensor_name, _c_name))
44 {
45  // Define a rotation according to Euler angle parameters
46  RotationTensor R(_Euler_angles); // R type: RealTensorValue
47 
48  // Rotate tensors
49  _Cijkl0.rotate(R);
50  _Cijkl1.rotate(R);
51 }
RankFourTensor _Cijkl1
Elasticity tensor for phase with concentration 1.
RankFourTensor _Cijkl0
Elasticity tensor for phase with zero concentration.
const std::string name
Definition: Setup.h:22
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

◆ computeQpElasticityTensor()

void ComputeConcentrationDependentElasticityTensor::computeQpElasticityTensor ( )
protectedvirtual

Implements ComputeElasticityTensorBase.

Definition at line 54 of file ComputeConcentrationDependentElasticityTensor.C.

55 {
56  // Assign elasticity tensor at a given quad point
57  _elasticity_tensor[_qp] = _Cijkl0 + (_Cijkl1 - _Cijkl0) * _c[_qp];
58  // Define derivative of elasticity tensor with respect to concentration.
60 }
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

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

◆ _c

const VariableValue& ComputeConcentrationDependentElasticityTensor::_c
protected

Concentration variable.

Definition at line 37 of file ComputeConcentrationDependentElasticityTensor.h.

Referenced by computeQpElasticityTensor().

◆ _c_name

VariableName ComputeConcentrationDependentElasticityTensor::_c_name
protected

◆ _Cijkl0

RankFourTensor ComputeConcentrationDependentElasticityTensor::_Cijkl0
protected

Elasticity tensor for phase with zero concentration.

Definition at line 33 of file ComputeConcentrationDependentElasticityTensor.h.

Referenced by ComputeConcentrationDependentElasticityTensor(), and computeQpElasticityTensor().

◆ _Cijkl1

RankFourTensor ComputeConcentrationDependentElasticityTensor::_Cijkl1
protected

Elasticity tensor for phase with concentration 1.

Definition at line 35 of file ComputeConcentrationDependentElasticityTensor.h.

Referenced by ComputeConcentrationDependentElasticityTensor(), and computeQpElasticityTensor().

◆ _delasticity_tensor_dc

MaterialProperty<RankFourTensor>& ComputeConcentrationDependentElasticityTensor::_delasticity_tensor_dc
protected

Derivative of elasticity tensor with respect to concentration.

Definition at line 41 of file ComputeConcentrationDependentElasticityTensor.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

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


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