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

#include <WeakPlaneStress.h>

Inheritance diagram for WeakPlaneStress:
[legend]

Public Member Functions

 WeakPlaneStress (const InputParameters &parameters)
 

Protected Member Functions

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

Protected Attributes

std::string _base_name
 
const MaterialProperty< RankTwoTensor > & _stress
 
const MaterialProperty< RankFourTensor > & _Jacobian_mult
 
const unsigned int _direction
 

Detailed Description

Definition at line 20 of file WeakPlaneStress.h.

Constructor & Destructor Documentation

WeakPlaneStress::WeakPlaneStress ( const InputParameters &  parameters)

Definition at line 30 of file WeakPlaneStress.C.

31  : Kernel(parameters),
32  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
33  _stress(getMaterialProperty<RankTwoTensor>(_base_name + "stress")),
34  _Jacobian_mult(getMaterialProperty<RankFourTensor>(_base_name + "Jacobian_mult")),
35  _direction(parameters.get<MooseEnum>("direction"))
36 {
37 }
std::string _base_name
const MaterialProperty< RankFourTensor > & _Jacobian_mult
const MaterialProperty< RankTwoTensor > & _stress
const unsigned int _direction

Member Function Documentation

Real WeakPlaneStress::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 46 of file WeakPlaneStress.C.

47 {
48  return _Jacobian_mult[_qp](_direction, _direction, _direction, _direction) * _test[_i][_qp] *
49  _phi[_j][_qp];
50 }
const MaterialProperty< RankFourTensor > & _Jacobian_mult
const unsigned int _direction
Real WeakPlaneStress::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtual

Definition at line 53 of file WeakPlaneStress.C.

54 {
55  return 0.0;
56 }
Real WeakPlaneStress::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 40 of file WeakPlaneStress.C.

41 {
42  return _stress[_qp](_direction, _direction) * _test[_i][_qp];
43 }
const MaterialProperty< RankTwoTensor > & _stress
const unsigned int _direction

Member Data Documentation

std::string WeakPlaneStress::_base_name
protected

Definition at line 30 of file WeakPlaneStress.h.

const unsigned int WeakPlaneStress::_direction
protected

Definition at line 35 of file WeakPlaneStress.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<RankFourTensor>& WeakPlaneStress::_Jacobian_mult
protected

Definition at line 33 of file WeakPlaneStress.h.

Referenced by computeQpJacobian().

const MaterialProperty<RankTwoTensor>& WeakPlaneStress::_stress
protected

Definition at line 32 of file WeakPlaneStress.h.

Referenced by computeQpResidual().


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