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
TwoPhaseStressMaterial Class Reference

Construct a global strain from the phase strains in a manner that is consistent with the construction of the global elastic energy by DerivativeTwoPhaseMaterial. More...

#include <TwoPhaseStressMaterial.h>

Inheritance diagram for TwoPhaseStressMaterial:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

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

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

virtual void computeQpProperties ()
 

Protected Attributes

const MaterialProperty< Real > & _h_eta
 
std::string _base_A
 
const MaterialProperty< RankTwoTensor > & _stress_A
 
const MaterialProperty< RankFourTensor > & _dstress_dstrain_A
 
std::string _base_B
 
const MaterialProperty< RankTwoTensor > & _stress_B
 
const MaterialProperty< RankFourTensor > & _dstress_dstrain_B
 
const std::string _base_name
 
MaterialProperty< RankTwoTensor > & _stress
 
MaterialProperty< RankFourTensor > & _dstress_dstrain
 
const MaterialProperty< RankTwoTensor > & _global_extra_stress
 Global extra stress tensor.
 

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
 

Detailed Description

Construct a global strain from the phase strains in a manner that is consistent with the construction of the global elastic energy by DerivativeTwoPhaseMaterial.

Definition at line 21 of file TwoPhaseStressMaterial.h.

Constructor & Destructor Documentation

◆ TwoPhaseStressMaterial()

TwoPhaseStressMaterial::TwoPhaseStressMaterial ( const InputParameters parameters)

Definition at line 29 of file TwoPhaseStressMaterial.C.

31 _h_eta(getMaterialProperty<Real>("h")),
32
33 _base_A(getParam<std::string>("base_A") + "_"),
34 _stress_A(getMaterialPropertyByName<RankTwoTensor>(_base_A + "stress")),
35 _dstress_dstrain_A(getMaterialPropertyByName<RankFourTensor>(_base_A + "Jacobian_mult")),
36
37 _base_B(getParam<std::string>("base_B") + "_"),
38 _stress_B(getMaterialPropertyByName<RankTwoTensor>(_base_B + "stress")),
39 _dstress_dstrain_B(getMaterialPropertyByName<RankFourTensor>(_base_B + "Jacobian_mult")),
40
41 _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
42 _stress(declareProperty<RankTwoTensor>(_base_name + "stress")),
43 _dstress_dstrain(declareProperty<RankFourTensor>(_base_name + "Jacobian_mult")),
45{
46}
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialProperty(const std::string &name)
const MaterialProperty< RankTwoTensor > & _stress_A
const MaterialProperty< RankFourTensor > & _dstress_dstrain_A
MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankTwoTensor > & _global_extra_stress
Global extra stress tensor.
const MaterialProperty< RankTwoTensor > & _stress_B
const MaterialProperty< Real > & _h_eta
MaterialProperty< RankFourTensor > & _dstress_dstrain
const MaterialProperty< RankFourTensor > & _dstress_dstrain_B

Member Function Documentation

◆ computeQpProperties()

void TwoPhaseStressMaterial::computeQpProperties ( )
protectedvirtual

Definition at line 49 of file TwoPhaseStressMaterial.C.

50{
51 _stress[_qp] = _h_eta[_qp] * _stress_B[_qp] + (1.0 - _h_eta[_qp]) * _stress_A[_qp];
52
53 // Add in global extra stress
54 _stress[_qp] += _global_extra_stress[_qp];
55
56 _dstress_dstrain[_qp] =
57 _h_eta[_qp] * _dstress_dstrain_B[_qp] + (1.0 - _h_eta[_qp]) * _dstress_dstrain_A[_qp];
58}

◆ validParams()

InputParameters TwoPhaseStressMaterial::validParams ( )
static

Definition at line 17 of file TwoPhaseStressMaterial.C.

18{
20 params.addClassDescription("Compute a global stress in a two phase model");
21 params.addParam<MaterialPropertyName>(
22 "h", "h", "Switching Function Material that provides h(eta)");
23 params.addRequiredParam<std::string>("base_A", "Base name for the Phase A strain.");
24 params.addRequiredParam<std::string>("base_B", "Base name for the Phase B strain.");
25 params.addParam<std::string>("base_name", "Base name for the computed global stress (optional).");
26 return params;
27}
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 InputParameters validParams()

Member Data Documentation

◆ _base_A

std::string TwoPhaseStressMaterial::_base_A
protected

Definition at line 35 of file TwoPhaseStressMaterial.h.

◆ _base_B

std::string TwoPhaseStressMaterial::_base_B
protected

Definition at line 40 of file TwoPhaseStressMaterial.h.

◆ _base_name

const std::string TwoPhaseStressMaterial::_base_name
protected

Definition at line 45 of file TwoPhaseStressMaterial.h.

◆ _dstress_dstrain

MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain
protected

Definition at line 47 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _dstress_dstrain_A

const MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain_A
protected

Definition at line 37 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _dstress_dstrain_B

const MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain_B
protected

Definition at line 42 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _global_extra_stress

const MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_global_extra_stress
protected

Global extra stress tensor.

Definition at line 50 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _h_eta

const MaterialProperty<Real>& TwoPhaseStressMaterial::_h_eta
protected

Definition at line 32 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _stress

MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress
protected

Definition at line 46 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _stress_A

const MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress_A
protected

Definition at line 36 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _stress_B

const MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress_B
protected

Definition at line 41 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().


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