https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MaterialDerivativeRankFourTestKernel Class Reference

This kernel is used for testing derivatives of a material property. More...

#include <MaterialDerivativeRankFourTestKernel.h>

Inheritance diagram for MaterialDerivativeRankFourTestKernel:
[legend]

Public Member Functions

 MaterialDerivativeRankFourTestKernel (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

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

Protected Attributes

const unsigned int _component_i
 
const unsigned int _component_j
 
const unsigned int _component_k
 
const unsigned int _component_l
 

Detailed Description

This kernel is used for testing derivatives of a material property.

Definition at line 18 of file MaterialDerivativeRankFourTestKernel.h.

Constructor & Destructor Documentation

◆ MaterialDerivativeRankFourTestKernel()

MaterialDerivativeRankFourTestKernel::MaterialDerivativeRankFourTestKernel ( const InputParameters &  parameters)

Definition at line 27 of file MaterialDerivativeRankFourTestKernel.C.

29 : MaterialDerivativeTestKernelBase<RankFourTensor>(parameters),
30 _component_i(getParam<unsigned int>("i")),
31 _component_j(getParam<unsigned int>("j")),
32 _component_k(getParam<unsigned int>("k")),
33 _component_l(getParam<unsigned int>("l"))
34{
35}

Member Function Documentation

◆ computeQpJacobian()

Real MaterialDerivativeRankFourTestKernel::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 44 of file MaterialDerivativeRankFourTestKernel.C.

45{
46 return _p_diag_derivative[_qp](_component_i, _component_j, _component_k, _component_l) *
47 _phi[_j][_qp] * _test[_i][_qp];
48}

◆ computeQpOffDiagJacobian()

Real MaterialDerivativeRankFourTestKernel::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtual

Definition at line 51 of file MaterialDerivativeRankFourTestKernel.C.

52{
53 // get the coupled variable number corresponding to jvar
54 const unsigned int cvar = mapJvarToCvar(jvar);
55 return (*_p_off_diag_derivatives[cvar])[_qp](
57 _phi[_j][_qp] * _test[_i][_qp];
58}

◆ computeQpResidual()

Real MaterialDerivativeRankFourTestKernel::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 38 of file MaterialDerivativeRankFourTestKernel.C.

39{
40 return _p[_qp](_component_i, _component_j, _component_k, _component_l) * _test[_i][_qp];
41}

◆ validParams()

InputParameters MaterialDerivativeRankFourTestKernel::validParams ( )
static

Definition at line 15 of file MaterialDerivativeRankFourTestKernel.C.

16{
17 InputParameters params = MaterialDerivativeTestKernelBase<RankFourTensor>::validParams();
19 "Class used for testing derivatives of a rank four tensor material property.");
20 params.addRequiredParam<unsigned int>("i", "Tensor component");
21 params.addRequiredParam<unsigned int>("j", "Tensor component");
22 params.addRequiredParam<unsigned int>("k", "Tensor component");
23 params.addRequiredParam<unsigned int>("l", "Tensor component");
24 return params;
25}
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)

Member Data Documentation

◆ _component_i

const unsigned int MaterialDerivativeRankFourTestKernel::_component_i
protected

◆ _component_j

const unsigned int MaterialDerivativeRankFourTestKernel::_component_j
protected

◆ _component_k

const unsigned int MaterialDerivativeRankFourTestKernel::_component_k
protected

◆ _component_l

const unsigned int MaterialDerivativeRankFourTestKernel::_component_l
protected

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