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

Static Public Member Functions

static InputParameters validParams ()
 

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

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

Definition at line 23 of file ComputeConcentrationDependentElasticityTensor.h.

Constructor & Destructor Documentation

◆ ComputeConcentrationDependentElasticityTensor()

ComputeConcentrationDependentElasticityTensor::ComputeConcentrationDependentElasticityTensor ( const InputParameters &  parameters)

Definition at line 34 of file ComputeConcentrationDependentElasticityTensor.C.

37  _Cijkl0(getParam<std::vector<Real>>("C0_ijkl"),
38  (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method0")),
39  _Cijkl1(getParam<std::vector<Real>>("C1_ijkl"),
40  (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method1")),
41  _c(coupledValue("c")),
42  _c_name(getVar("c", 0)->name()),
44  declarePropertyDerivative<RankFourTensor>(_elasticity_tensor_name, _c_name))
45 {
46  // Define a rotation according to Euler angle parameters
47  RotationTensor R(_Euler_angles); // R type: RealTensorValue
48 
49  // Rotate tensors
50  _Cijkl0.rotate(R);
51  _Cijkl1.rotate(R);
52 }

Member Function Documentation

◆ computeQpElasticityTensor()

void ComputeConcentrationDependentElasticityTensor::computeQpElasticityTensor ( )
protectedvirtual

Implements ComputeElasticityTensorBase.

Definition at line 55 of file ComputeConcentrationDependentElasticityTensor.C.

56 {
57  // Assign elasticity tensor at a given quad point
58  _elasticity_tensor[_qp] = _Cijkl0 + (_Cijkl1 - _Cijkl0) * _c[_qp];
59  // Define derivative of elasticity tensor with respect to concentration.
61 }

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

◆ validParams()

InputParameters ComputeConcentrationDependentElasticityTensor::validParams ( )
static

Definition at line 18 of file ComputeConcentrationDependentElasticityTensor.C.

19 {
20  InputParameters params = ComputeRotatedElasticityTensorBase::validParams();
21  params.addClassDescription("Compute concentration dependent elasticity tensor.");
22  params.addRequiredParam<std::vector<Real>>("C0_ijkl",
23  "Stiffness tensor for zero concentration phase");
24  params.addRequiredParam<std::vector<Real>>("C1_ijkl",
25  "Stiffness tensor for phase having concentration 1.0");
26  params.addParam<MooseEnum>(
27  "fill_method0", RankFourTensor::fillMethodEnum() = "symmetric9", "The fill method");
28  params.addParam<MooseEnum>(
29  "fill_method1", RankFourTensor::fillMethodEnum() = "symmetric9", "The fill method");
30  params.addRequiredCoupledVar("c", "Concentration");
31  return params;
32 }

Member Data Documentation

◆ _base_name

const std::string ComputeElasticityTensorBase::_base_name
protectedinherited

◆ _c

const VariableValue& ComputeConcentrationDependentElasticityTensor::_c
protected

Concentration variable.

Definition at line 38 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 34 of file ComputeConcentrationDependentElasticityTensor.h.

Referenced by ComputeConcentrationDependentElasticityTensor(), and computeQpElasticityTensor().

◆ _Cijkl1

RankFourTensor ComputeConcentrationDependentElasticityTensor::_Cijkl1
protected

Elasticity tensor for phase with concentration 1.

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

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


The documentation for this class was generated from the following files:
ComputeConcentrationDependentElasticityTensor::_Cijkl0
RankFourTensor _Cijkl0
Elasticity tensor for phase with zero concentration.
Definition: ComputeConcentrationDependentElasticityTensor.h:34
ComputeConcentrationDependentElasticityTensor::_c_name
VariableName _c_name
Definition: ComputeConcentrationDependentElasticityTensor.h:39
ComputeConcentrationDependentElasticityTensor::_delasticity_tensor_dc
MaterialProperty< RankFourTensor > & _delasticity_tensor_dc
Derivative of elasticity tensor with respect to concentration.
Definition: ComputeConcentrationDependentElasticityTensor.h:42
ComputeElasticityTensorBase::_effective_stiffness
MaterialProperty< Real > & _effective_stiffness
Definition: ComputeElasticityTensorBase.h:41
ComputeConcentrationDependentElasticityTensor::_Cijkl1
RankFourTensor _Cijkl1
Elasticity tensor for phase with concentration 1.
Definition: ComputeConcentrationDependentElasticityTensor.h:36
GuaranteeProvider::_guarantees
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees
Definition: GuaranteeProvider.h:37
ComputeRotatedElasticityTensorBase::validParams
static InputParameters validParams()
Definition: ComputeRotatedElasticityTensorBase.C:16
ComputeConcentrationDependentElasticityTensor::_c
const VariableValue & _c
Concentration variable.
Definition: ComputeConcentrationDependentElasticityTensor.h:38
ComputeElasticityTensorBase::computeQpElasticityTensor
virtual void computeQpElasticityTensor()=0
ComputeRotatedElasticityTensorBase::ComputeRotatedElasticityTensorBase
ComputeRotatedElasticityTensorBase(const InputParameters &parameters)
Definition: ComputeRotatedElasticityTensorBase.C:25
RotationTensor
This is a RealTensor version of a rotation matrix It is instantiated with the Euler angles,...
Definition: RotationTensor.h:29
name
const std::string name
Definition: Setup.h:21
ComputeElasticityTensorBase::_elasticity_tensor
MaterialProperty< RankFourTensor > & _elasticity_tensor
Definition: ComputeElasticityTensorBase.h:40
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