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

Considers cleavage plane anisotropy in the crack propagation. More...

#include <ACInterfaceCleavageFracture.h>

Inheritance diagram for ACInterfaceCleavageFracture:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 ACInterfaceCleavageFracture (const InputParameters &parameters)
 
virtual void initialSetup ()
 
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 Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 
Real betaNablaPsi ()
 term with beta penalty
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 
RealGradient gradL ()
 
RealGradient gradKappa ()
 
RealGradient nablaLPsi ()
 the \( \nabla(L\psi) \) term
 
RealGradient kappaNablaLPsi ()
 the \( \kappa\nabla(L\psi) \) term
 

Protected Attributes

const Real _beta_penalty
 penalty for damage on planes not normal to the weak (favoured) cleavage plane (Clayton & Knap, 2015)
 
const RealVectorValue _cleavage_plane_normal
 Plane normal to the weak cleavage plane: M in (Clayton & Knap, 2015)
 
const MaterialProperty< Real > & _L
 Mobility.
 
const MaterialProperty< Real > & _kappa
 Interfacial parameter.
 
const bool _variable_L
 flag set if L is a function of non-linear variables in args
 
const MaterialProperty< Real > & _dkappadop
 kappa derivative w.r.t. order parameter
 
std::vector< const MaterialProperty< Real > * > _dkappadarg
 kappa derivative w.r.t. other coupled variables
 
std::vector< const VariableGradient * > _gradarg
 Gradients for all coupled variables.
 
const MaterialProperty< Real > & _dLdop
 Mobility derivatives w.r.t. order parameter.
 
const MaterialProperty< Real > & _d2Ldop2
 
std::vector< const MaterialProperty< Real > * > _dLdarg
 Mobility derivative w.r.t. other coupled variables.
 
std::vector< const MaterialProperty< Real > * > _d2Ldargdop
 
std::vector< std::vector< const MaterialProperty< Real > * > > _d2Ldarg2
 

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

Considers cleavage plane anisotropy in the crack propagation.

Definition at line 16 of file ACInterfaceCleavageFracture.h.

Constructor & Destructor Documentation

◆ ACInterfaceCleavageFracture()

ACInterfaceCleavageFracture::ACInterfaceCleavageFracture ( const InputParameters parameters)

Definition at line 31 of file ACInterfaceCleavageFracture.C.

32 : ACInterface(parameters),
33 _beta_penalty(getParam<Real>("beta_penalty")),
34 _cleavage_plane_normal(getParam<RealVectorValue>("cleavage_plane_normal"))
35{
36}
const Real _beta_penalty
penalty for damage on planes not normal to the weak (favoured) cleavage plane (Clayton & Knap,...
const RealVectorValue _cleavage_plane_normal
Plane normal to the weak cleavage plane: M in (Clayton & Knap, 2015)
Compute the Allen-Cahn interface term with the weak form residual .
Definition ACInterface.h:21

Member Function Documentation

◆ betaNablaPsi()

Real ACInterfaceCleavageFracture::betaNablaPsi ( )
protected

term with beta penalty

Definition at line 39 of file ACInterfaceCleavageFracture.C.

40{
41 return _beta_penalty * _L[_qp] * _kappa[_qp] * (_grad_u[_qp] * _cleavage_plane_normal) *
42 (_grad_test[_i][_qp] * _cleavage_plane_normal);
43}
const MaterialProperty< Real > & _L
Mobility.
Definition ACInterface.h:43
const MaterialProperty< Real > & _kappa
Interfacial parameter.
Definition ACInterface.h:45

Referenced by computeQpResidual().

◆ computeQpJacobian()

Real ACInterfaceCleavageFracture::computeQpJacobian ( )
protectedvirtual

dsum is the derivative \( \frac\partial{\partial \eta} \left( \nabla (L\psi) \right) \)

compute the derivative of the gradient of the mobility

Reimplemented from ACInterface.

Definition at line 52 of file ACInterfaceCleavageFracture.C.

53{
56 RealGradient dsum =
57 (_dkappadop[_qp] * _L[_qp] + _kappa[_qp] * _dLdop[_qp]) * _phi[_j][_qp] * _grad_test[_i][_qp];
58
60 if (_variable_L)
61 {
62 RealGradient dgradL =
63 _grad_phi[_j][_qp] * _dLdop[_qp] + _grad_u[_qp] * _phi[_j][_qp] * _d2Ldop2[_qp];
64
65 for (unsigned int i = 0; i < _n_args; ++i)
66 dgradL += (*_gradarg[i])[_qp] * _phi[_j][_qp] * (*_d2Ldargdop[i])[_qp];
67
68 dsum += (_kappa[_qp] * dgradL + _dkappadop[_qp] * _phi[_j][_qp] * gradL()) * _test[_i][_qp];
69 }
70
71 return (1 + _beta_penalty) * _grad_phi[_j][_qp] * kappaNablaLPsi() + _grad_u[_qp] * dsum -
72 _beta_penalty * _L[_qp] * _kappa[_qp] * (_grad_u[_qp] * _cleavage_plane_normal) *
73 (_grad_phi[_j][_qp] * _cleavage_plane_normal);
74}
const bool _variable_L
flag set if L is a function of non-linear variables in args
Definition ACInterface.h:48
RealGradient kappaNablaLPsi()
the term
Definition ACInterface.C:94
std::vector< const VariableGradient * > _gradarg
Gradients for all coupled variables.
Definition ACInterface.h:68
RealGradient gradL()
Definition ACInterface.C:73
const MaterialProperty< Real > & _dLdop
Mobility derivatives w.r.t. order parameter.
Definition ACInterface.h:51
const MaterialProperty< Real > & _d2Ldop2
Definition ACInterface.h:52
std::vector< const MaterialProperty< Real > * > _d2Ldargdop
Definition ACInterface.h:60
const MaterialProperty< Real > & _dkappadop
kappa derivative w.r.t. order parameter
Definition ACInterface.h:56
RealVectorValue RealGradient

◆ computeQpOffDiagJacobian()

Real ACInterface::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtualinherited

Reimplemented in ACInterface2DMultiPhase1, and ACInterface2DMultiPhase2.

Definition at line 128 of file ACInterface.C.

129{
130 // get the coupled variable jvar is referring to
131 const unsigned int cvar = mapJvarToCvar(jvar);
132
133 // dsum is the derivative \f$ \frac\partial{\partial \eta} \left( \nabla (L\psi) \right) \f$
134 RealGradient dsum = ((*_dkappadarg[cvar])[_qp] * _L[_qp] + _kappa[_qp] * (*_dLdarg[cvar])[_qp]) *
135 _phi[_j][_qp] * _grad_test[_i][_qp];
136
137 // compute the derivative of the gradient of the mobility
138 if (_variable_L)
139 {
140 RealGradient dgradL = _grad_phi[_j][_qp] * (*_dLdarg[cvar])[_qp] +
141 _grad_u[_qp] * _phi[_j][_qp] * (*_d2Ldargdop[cvar])[_qp];
142
143 for (unsigned int i = 0; i < _n_args; ++i)
144 dgradL += (*_gradarg[i])[_qp] * _phi[_j][_qp] * (*_d2Ldarg2[cvar][i])[_qp];
145
146 dsum += (_kappa[_qp] * dgradL + _dkappadop[_qp] * _phi[_j][_qp] * gradL()) * _test[_i][_qp];
147 }
148
149 return _grad_u[_qp] * dsum;
150}
std::vector< const MaterialProperty< Real > * > _dkappadarg
kappa derivative w.r.t. other coupled variables
Definition ACInterface.h:65
std::vector< const MaterialProperty< Real > * > _dLdarg
Mobility derivative w.r.t. other coupled variables.
Definition ACInterface.h:59
std::vector< std::vector< const MaterialProperty< Real > * > > _d2Ldarg2
Definition ACInterface.h:61

◆ computeQpResidual()

Real ACInterfaceCleavageFracture::computeQpResidual ( )
protectedvirtual

Reimplemented from ACInterface.

Definition at line 46 of file ACInterfaceCleavageFracture.C.

47{
48 return (1 + _beta_penalty) * _grad_u[_qp] * kappaNablaLPsi() - betaNablaPsi();
49}
Real betaNablaPsi()
term with beta penalty

◆ gradKappa()

RealGradient ACInterface::gradKappa ( )
protectedinherited

◆ gradL()

RealGradient ACInterface::gradL ( )
protectedinherited

Definition at line 73 of file ACInterface.C.

74{
75 RealGradient g = _grad_u[_qp] * _dLdop[_qp];
76 for (unsigned int i = 0; i < _n_args; ++i)
77 g += (*_gradarg[i])[_qp] * (*_dLdarg[i])[_qp];
78 return g;
79}

Referenced by ACInterface::computeQpJacobian(), computeQpJacobian(), ACInterface::computeQpOffDiagJacobian(), and ACInterface::nablaLPsi().

◆ initialSetup()

void ACInterface::initialSetup ( )
virtualinherited

Reimplemented in ACInterfaceChangedVariable.

Definition at line 66 of file ACInterface.C.

67{
68 validateCoupling<Real>("mob_name");
69 validateCoupling<Real>("kappa_name");
70}

◆ kappaNablaLPsi()

RealGradient ACInterface::kappaNablaLPsi ( )
protectedinherited

the \( \kappa\nabla(L\psi) \) term

Definition at line 94 of file ACInterface.C.

95{
96 return _kappa[_qp] * nablaLPsi();
97}
RealGradient nablaLPsi()
the term
Definition ACInterface.C:82

Referenced by ACInterface::computeQpJacobian(), computeQpJacobian(), ACInterface::computeQpResidual(), and computeQpResidual().

◆ nablaLPsi()

RealGradient ACInterface::nablaLPsi ( )
protectedinherited

the \( \nabla(L\psi) \) term

Definition at line 82 of file ACInterface.C.

83{
84 // sum is the product rule gradient \f$ \nabla (L\psi) \f$
85 RealGradient sum = _L[_qp] * _grad_test[_i][_qp];
86
87 if (_variable_L)
88 sum += gradL() * _test[_i][_qp];
89
90 return sum;
91}

Referenced by ACInterface2DMultiPhase1::computeQpJacobian(), ACInterface2DMultiPhase2::computeQpJacobian(), ACInterface2DMultiPhase1::computeQpOffDiagJacobian(), ACInterface2DMultiPhase2::computeQpOffDiagJacobian(), ACInterface2DMultiPhase1::computeQpResidual(), and ACInterface::kappaNablaLPsi().

◆ validParams()

InputParameters ACInterfaceCleavageFracture::validParams ( )
static

Definition at line 17 of file ACInterfaceCleavageFracture.C.

18{
20 params.addClassDescription("Gradient energy Allen-Cahn Kernel where crack propagation along weak"
21 "cleavage plane is preferred");
22 params.addRequiredParam<Real>(
23 "beta_penalty",
24 "penalty to penalize fracture on planes not normal to one cleavage plane normal which is "
25 "normal to weak cleavage plane. Setting beta=0 results in isotropic damage.");
26 params.addRequiredParam<RealVectorValue>("cleavage_plane_normal",
27 "Normal to the weak cleavage plane");
28 return params;
29}
static InputParameters validParams()
Definition ACInterface.C:15
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
VectorValue< Real > RealVectorValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Member Data Documentation

◆ _beta_penalty

const Real ACInterfaceCleavageFracture::_beta_penalty
protected

penalty for damage on planes not normal to the weak (favoured) cleavage plane (Clayton & Knap, 2015)

Definition at line 32 of file ACInterfaceCleavageFracture.h.

Referenced by betaNablaPsi(), computeQpJacobian(), and computeQpResidual().

◆ _cleavage_plane_normal

const RealVectorValue ACInterfaceCleavageFracture::_cleavage_plane_normal
protected

Plane normal to the weak cleavage plane: M in (Clayton & Knap, 2015)

Definition at line 35 of file ACInterfaceCleavageFracture.h.

Referenced by betaNablaPsi(), and computeQpJacobian().

◆ _d2Ldarg2

std::vector<std::vector<const MaterialProperty<Real> *> > ACInterface::_d2Ldarg2
protectedinherited

◆ _d2Ldargdop

std::vector<const MaterialProperty<Real> *> ACInterface::_d2Ldargdop
protectedinherited

◆ _d2Ldop2

const MaterialProperty<Real>& ACInterface::_d2Ldop2
protectedinherited

◆ _dkappadarg

std::vector<const MaterialProperty<Real> *> ACInterface::_dkappadarg
protectedinherited

kappa derivative w.r.t. other coupled variables

Definition at line 65 of file ACInterface.h.

Referenced by ACInterface::ACInterface(), and ACInterface::computeQpOffDiagJacobian().

◆ _dkappadop

const MaterialProperty<Real>& ACInterface::_dkappadop
protectedinherited

kappa derivative w.r.t. order parameter

Definition at line 56 of file ACInterface.h.

Referenced by ACInterface::computeQpJacobian(), computeQpJacobian(), and ACInterface::computeQpOffDiagJacobian().

◆ _dLdarg

std::vector<const MaterialProperty<Real> *> ACInterface::_dLdarg
protectedinherited

◆ _dLdop

const MaterialProperty<Real>& ACInterface::_dLdop
protectedinherited

◆ _gradarg

std::vector<const VariableGradient *> ACInterface::_gradarg
protectedinherited

◆ _kappa

const MaterialProperty<Real>& ACInterface::_kappa
protectedinherited

◆ _L

const MaterialProperty<Real>& ACInterface::_L
protectedinherited

◆ _variable_L

const bool ACInterface::_variable_L
protectedinherited

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