#include <MatBodyForce.h>
Definition at line 40 of file MatBodyForce.h.
◆ MatBodyForce()
Definition at line 40 of file MatBodyForce.C.
42 _dpropertydv(getMaterialPropertyDerivative<Real>(
"material_property", _var.name())),
44{
45
46 for (unsigned int i = 0; i < _n_args; ++i)
47 _dpropertydarg[i] = &getMaterialPropertyDerivative<Real>(
"material_property", i);
48}
MatBodyForceTempl< false, DerivativeMaterialInterface< JvarMapKernelInterface< BodyForce > > > MatBodyForceParent
std::vector< const MaterialProperty< Real > * > _dpropertydarg
Reaction rate derivatives w.r.t. other coupled variables.
const MaterialProperty< Real > & _dpropertydv
derivative of the property wrt the kernel's nonlinear variable
◆ computeQpJacobian()
| Real MatBodyForce::computeQpJacobian |
( |
| ) |
|
|
overrideprotectedvirtual |
Definition at line 57 of file MatBodyForce.C.
58{
60}
virtual GenericReal< is_ad > computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
◆ computeQpOffDiagJacobian()
| Real MatBodyForce::computeQpOffDiagJacobian |
( |
unsigned int |
jvar | ) |
|
|
overrideprotectedvirtual |
Definition at line 63 of file MatBodyForce.C.
64{
65 const unsigned int cvar = mapJvarToCvar(jvar);
67}
◆ computeQpResidual()
template<bool is_ad, class Parent >
|
|
overrideprotectedvirtualinherited |
Definition at line 35 of file MatBodyForce.C.
36{
37 return Parent::computeQpResidual() *
_property[_qp];
38}
const GenericMaterialProperty< Real, is_ad > & _property
◆ initialSetup()
| void MatBodyForce::initialSetup |
( |
| ) |
|
|
overridevirtual |
Definition at line 51 of file MatBodyForce.C.
52{
53 validateNonlinearCoupling<Real>("material_property");
54}
◆ validParams()
template<bool is_ad, class Parent >
Definition at line 17 of file MatBodyForce.C.
18{
20 params.
addClassDescription(
"Kernel that defines a body force modified by a material property");
22 "Material property defining the body force");
23 return params;
24}
◆ _dpropertydarg
◆ _dpropertydv
◆ _property
template<bool is_ad, class Parent >
◆ usingGenericKernelMembers
template<bool is_ad, class Parent >
The documentation for this class was generated from the following files: