13 #include "MooseMesh.h"
14 #include "MooseVariable.h"
22 InputParameters params = validParams<Kernel>();
23 params.addClassDescription(
24 "Adds $-Bi \\cdot p_s \\cdot \\nabla \\Psi_c$, where the subscript $c$ is the component.");
25 params.addRequiredParam<UserObjectName>(
26 "PorousFlowDictator",
"The UserObject that holds the list of PorousFlow variable names.");
27 params.addRangeCheckedParam<Real>(
28 "biot_coefficient", 1,
"biot_coefficient>=0&biot_coefficient<=1",
"Biot coefficient");
29 params.addRequiredParam<
unsigned int>(
"component",
30 "The gradient direction (0 for x, 1 for y and 2 for z)");
35 const InputParameters & parameters)
38 _coefficient(getParam<Real>(
"biot_coefficient")),
39 _component(getParam<unsigned int>(
"component")),
40 _pf(getMaterialProperty<Real>(
"PorousFlow_effective_fluid_pressure_qp")),
42 getMaterialProperty<std::vector<Real>>(
"dPorousFlow_effective_fluid_pressure_qp_dvar")),
43 _rz(getBlockCoordSystem() == Moose::COORD_RZ)
46 paramError(
"component",
"The component cannot be greater than the mesh dimension");
53 return -
_coefficient *
_pf[_qp] * (_grad_test[_i][_qp](0) + _test[_i][_qp] / _q_point[_qp](0));
65 (_grad_test[_i][_qp](0) + _test[_i][_qp] / _q_point[_qp](0));
77 (_grad_test[_i][_qp](0) + _test[_i][_qp] / _q_point[_qp](0));