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 26 of file PhaseFieldFractureMechanicsOffDiag.h.

Constructor & Destructor Documentation

PhaseFieldFractureMechanicsOffDiag::PhaseFieldFractureMechanicsOffDiag ( const InputParameters &  parameters)

Definition at line 29 of file PhaseFieldFractureMechanicsOffDiag.C.

31  : DerivativeMaterialInterface<Kernel>(parameters),
32  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
33  _component(getParam<unsigned int>("component")),
34  _c_coupled(isCoupled("c")),
35  _c_var(_c_coupled ? coupled("c") : 0),
37  getMaterialPropertyDerivative<RankTwoTensor>(_base_name + "stress", getVar("c", 0)->name()))
38 {
39 }
const MaterialProperty< RankTwoTensor > & _d_stress_dc

Member Function Documentation

Real PhaseFieldFractureMechanicsOffDiag::computeQpJacobian ( )
inlineoverrideprotected

Definition at line 34 of file PhaseFieldFractureMechanicsOffDiag.h.

34 { return 0.0; }
Real PhaseFieldFractureMechanicsOffDiag::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtual

Definition at line 42 of file PhaseFieldFractureMechanicsOffDiag.C.

Referenced by computeQpJacobian().

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

Definition at line 32 of file PhaseFieldFractureMechanicsOffDiag.h.

32 { return 0.0; }

Member Data Documentation

std::string PhaseFieldFractureMechanicsOffDiag::_base_name
protected

Definition at line 38 of file PhaseFieldFractureMechanicsOffDiag.h.

const bool PhaseFieldFractureMechanicsOffDiag::_c_coupled
protected

Definition at line 41 of file PhaseFieldFractureMechanicsOffDiag.h.

Referenced by computeQpOffDiagJacobian().

const unsigned int PhaseFieldFractureMechanicsOffDiag::_c_var
protected

Definition at line 42 of file PhaseFieldFractureMechanicsOffDiag.h.

Referenced by computeQpOffDiagJacobian().

const unsigned int PhaseFieldFractureMechanicsOffDiag::_component
protected

Definition at line 39 of file PhaseFieldFractureMechanicsOffDiag.h.

Referenced by computeQpOffDiagJacobian().

const MaterialProperty<RankTwoTensor>& PhaseFieldFractureMechanicsOffDiag::_d_stress_dc
protected

Definition at line 43 of file PhaseFieldFractureMechanicsOffDiag.h.

Referenced by computeQpOffDiagJacobian().


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