www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PhaseFieldFractureMechanicsOffDiag Class Reference

#include <PhaseFieldFractureMechanicsOffDiag.h>

Inheritance diagram for PhaseFieldFractureMechanicsOffDiag:
[legend]

Public Member Functions

 PhaseFieldFractureMechanicsOffDiag (const InputParameters &parameters)
 

Protected Member Functions

Real computeQpResidual () override
 
Real computeQpJacobian () override
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar) override
 

Protected Attributes

std::string _base_name
 
const unsigned int _component
 
const bool _c_coupled
 
const unsigned int _c_var
 
const MaterialProperty< RankTwoTensor > & _d_stress_dc
 

Detailed Description

Definition at line 29 of file PhaseFieldFractureMechanicsOffDiag.h.

Constructor & Destructor Documentation

◆ PhaseFieldFractureMechanicsOffDiag()

PhaseFieldFractureMechanicsOffDiag::PhaseFieldFractureMechanicsOffDiag ( const InputParameters &  parameters)

Definition at line 33 of file PhaseFieldFractureMechanicsOffDiag.C.

35  : DerivativeMaterialInterface<Kernel>(parameters),
36  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
37  _component(getParam<unsigned int>("component")),
38  _c_coupled(isCoupled("c")),
39  _c_var(_c_coupled ? coupled("c") : 0),
41  getMaterialPropertyDerivative<RankTwoTensor>(_base_name + "stress", getVar("c", 0)->name()))
42 {
43 }
const MaterialProperty< RankTwoTensor > & _d_stress_dc
const std::string name
Definition: Setup.h:22

Member Function Documentation

◆ computeQpJacobian()

Real PhaseFieldFractureMechanicsOffDiag::computeQpJacobian ( )
inlineoverrideprotected

Definition at line 37 of file PhaseFieldFractureMechanicsOffDiag.h.

37 { return 0.0; }

◆ computeQpOffDiagJacobian()

Real PhaseFieldFractureMechanicsOffDiag::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtual

Definition at line 46 of file PhaseFieldFractureMechanicsOffDiag.C.

47 {
48  if (_c_coupled && jvar == _c_var)
49  {
50  Real val = 0.0;
51  for (unsigned int k = 0; k < 3; ++k)
52  val += _d_stress_dc[_qp](_component, k) * _grad_test[_i][_qp](k);
53  return val * _phi[_j][_qp];
54  }
55 
56  // Returns if coupled variable is not c (damage variable)
57  return 0.0;
58 }
const MaterialProperty< RankTwoTensor > & _d_stress_dc

◆ computeQpResidual()

Real PhaseFieldFractureMechanicsOffDiag::computeQpResidual ( )
inlineoverrideprotected

Definition at line 35 of file PhaseFieldFractureMechanicsOffDiag.h.

35 { return 0.0; }

Member Data Documentation

◆ _base_name

std::string PhaseFieldFractureMechanicsOffDiag::_base_name
protected

Definition at line 41 of file PhaseFieldFractureMechanicsOffDiag.h.

◆ _c_coupled

const bool PhaseFieldFractureMechanicsOffDiag::_c_coupled
protected

Definition at line 44 of file PhaseFieldFractureMechanicsOffDiag.h.

Referenced by computeQpOffDiagJacobian().

◆ _c_var

const unsigned int PhaseFieldFractureMechanicsOffDiag::_c_var
protected

Definition at line 45 of file PhaseFieldFractureMechanicsOffDiag.h.

Referenced by computeQpOffDiagJacobian().

◆ _component

const unsigned int PhaseFieldFractureMechanicsOffDiag::_component
protected

Definition at line 42 of file PhaseFieldFractureMechanicsOffDiag.h.

Referenced by computeQpOffDiagJacobian().

◆ _d_stress_dc

const MaterialProperty<RankTwoTensor>& PhaseFieldFractureMechanicsOffDiag::_d_stress_dc
protected

Definition at line 46 of file PhaseFieldFractureMechanicsOffDiag.h.

Referenced by computeQpOffDiagJacobian().


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