https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | 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 Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 ComputeConcentrationDependentElasticityTensor (const InputParameters &parameters)
 
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialPropertyByName (const std::string &name)
 
void validateDerivativeMaterialPropertyBase (const std::string &base)
 
const MaterialPropertyName derivativePropertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName derivativePropertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName derivativePropertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName derivativePropertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, unsigned int v2, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, unsigned int v1, unsigned int v2=libMesh::invalid_uint, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, unsigned int v2, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, unsigned int v1, unsigned int v2=libMesh::invalid_uint, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
void validateCoupling (const MaterialPropertyName &base, const std::vector< VariableName > &c, bool validate_aux=true)
 
void validateCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateCoupling (const MaterialPropertyName &base, const std::vector< VariableName > &c, bool validate_aux=true)
 
void validateCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateNonlinearCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateNonlinearCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
const MaterialPropertyName propertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName propertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName propertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName propertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName propertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName propertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName propertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 
const MaterialPropertyName propertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 
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.
 
RankFourTensor _Cijkl1
 Elasticity tensor for phase with concentration 1.
 
const VariableValue_c
 Concentration variable.
 
VariableName _c_name
 
MaterialProperty< RankFourTensor > * _delasticity_tensor_dc
 Derivative of elasticity tensor with respect to concentration.
 
RealVectorValue _Euler_angles
 
const RealTensorValue _rotation_matrix
 
const std::string _base_name
 Base name of the material system.
 
std::string _elasticity_tensor_name
 
GenericMaterialProperty< T, is_ad > & _elasticity_tensor
 
GenericMaterialProperty< Real, is_ad > & _effective_stiffness
 
const Function *const _prefactor_function
 prefactor function to multiply the elasticity tensor with
 

Private Member Functions

bool haveMaterialProperty (const std::string &prop_name)
 
std::vector< VariableName > buildVariableVector (const VariableName &c1, const VariableName &c2, const VariableName &c3)
 
void validateCouplingHelper (const MaterialPropertyName &base, const std::vector< VariableName > &c, const System &system, std::vector< VariableName > &missing)
 
bool isNotObjectVariable (const VariableName &name)
 

Private Attributes

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

Constructor & Destructor Documentation

◆ ComputeConcentrationDependentElasticityTensor()

ComputeConcentrationDependentElasticityTensor::ComputeConcentrationDependentElasticityTensor ( const InputParameters parameters)

Definition at line 32 of file ComputeConcentrationDependentElasticityTensor.C.

35 _Cijkl0(getParam<std::vector<Real>>("C0_ijkl"),
36 (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method0")),
37 _Cijkl1(getParam<std::vector<Real>>("C1_ijkl"),
38 (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method1")),
39 _c(coupledValue("c")),
40 _c_name(coupledName("c", 0)),
41 _delasticity_tensor_dc(isCoupledConstant("c") ? nullptr
44{
45 // Define a rotation according to Euler angle parameters
46 RotationTensor R(_Euler_angles); // R type: RealTensorValue
47
48 // Rotate tensors
51}
ComputeRotatedElasticityTensorBaseTempl< false > ComputeRotatedElasticityTensorBase
const double R
RankFourTensor _Cijkl1
Elasticity tensor for phase with concentration 1.
MaterialProperty< RankFourTensor > * _delasticity_tensor_dc
Derivative of elasticity tensor with respect to concentration.
RankFourTensor _Cijkl0
Elasticity tensor for phase with zero concentration.
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative(const std::string &base, const std::vector< VariableName > &c)
void rotate(const TypeTensor< T > &R)
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 ComputeElasticityTensorBaseTempl< is_ad, T >.

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 (*_delasticity_tensor_dc)[_qp] = (_Cijkl1 - _Cijkl0);
61}
GenericMaterialProperty< T, is_ad > & _elasticity_tensor

◆ computeQpProperties()

template<bool is_ad, typename T = RankFourTensor>
virtual void ComputeElasticityTensorBaseTempl< is_ad, T >::computeQpProperties ( )
protectedvirtualinherited

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

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 16 of file ComputeConcentrationDependentElasticityTensor.C.

17{
19 params.addClassDescription("Compute concentration dependent elasticity tensor.");
20 params.addRequiredParam<std::vector<Real>>("C0_ijkl",
21 "Stiffness tensor for zero concentration phase");
22 params.addRequiredParam<std::vector<Real>>("C1_ijkl",
23 "Stiffness tensor for phase having concentration 1.0");
24 params.addParam<MooseEnum>(
25 "fill_method0", RankFourTensor::fillMethodEnum() = "symmetric9", "The fill method");
26 params.addParam<MooseEnum>(
27 "fill_method1", RankFourTensor::fillMethodEnum() = "symmetric9", "The fill method");
28 params.addRequiredCoupledVar("c", "Concentration");
29 return params;
30}
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
static MooseEnum fillMethodEnum()

Member Data Documentation

◆ _base_name

template<bool is_ad, typename T = RankFourTensor>
const std::string ComputeElasticityTensorBaseTempl< is_ad, T >::_base_name
protectedinherited

◆ _c

const VariableValue& ComputeConcentrationDependentElasticityTensor::_c
protected

Concentration variable.

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

Referenced by ComputeConcentrationDependentElasticityTensor(), and computeQpElasticityTensor().

◆ _Cijkl1

RankFourTensor ComputeConcentrationDependentElasticityTensor::_Cijkl1
protected

Elasticity tensor for phase with concentration 1.

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

Referenced by computeQpElasticityTensor().

◆ _effective_stiffness

template<bool is_ad, typename T = RankFourTensor>
GenericMaterialProperty<Real, is_ad>& ComputeElasticityTensorBaseTempl< is_ad, T >::_effective_stiffness
protectedinherited

Definition at line 40 of file ComputeElasticityTensorBase.h.

◆ _elasticity_tensor

template<bool is_ad, typename T = RankFourTensor>
GenericMaterialProperty<T, is_ad>& ComputeElasticityTensorBaseTempl< is_ad, T >::_elasticity_tensor
protectedinherited

◆ _elasticity_tensor_name

template<bool is_ad, typename T = RankFourTensor>
std::string ComputeElasticityTensorBaseTempl< is_ad, T >::_elasticity_tensor_name
protectedinherited

◆ _Euler_angles

template<bool is_ad>
RealVectorValue ComputeRotatedElasticityTensorBaseTempl< is_ad >::_Euler_angles
protectedinherited

◆ _guarantees

std::map<MaterialPropertyName, std::set<Guarantee> > GuaranteeProvider::_guarantees
privateinherited

◆ _prefactor_function

template<bool is_ad, typename T = RankFourTensor>
const Function* const ComputeElasticityTensorBaseTempl< is_ad, T >::_prefactor_function
protectedinherited

prefactor function to multiply the elasticity tensor with

Definition at line 43 of file ComputeElasticityTensorBase.h.

Referenced by ComputeLayeredCosseratElasticityTensor::computeQpElasticityTensor().

◆ _rotation_matrix

template<bool is_ad>
const RealTensorValue ComputeRotatedElasticityTensorBaseTempl< is_ad >::_rotation_matrix
protectedinherited

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