19 InputParameters params = validParams<AuxKernel>();
20 params.addRequiredParam<RealVectorValue>(
22 "Fluid weight (gravity*density) as a vector pointing downwards (usually "
23 "measured in kg.m^-2.s^-2 = Pa/m). Eg '0 0 -10000'");
24 params.addRequiredParam<Real>(
"fluid_viscosity",
25 "Fluid dynamic viscosity (usually measured in Pa.s)");
26 params.addClassDescription(
"Darcy flux (in m^3.s^-1.m^-2, or m.s^-1) -(k_ij/mu (nabla_j P - "
27 "w_j)), where k_ij is the permeability tensor, mu is the fluid "
28 "viscosity, P is the fluid pressure, and w_j is the fluid weight. If "
29 "velocity_scaling is used then -(k_ij/mu (nabla_j P - "
30 "w_j))/velocity_scaling is returned");
31 params.addParam<MooseEnum>(
"component",
component,
"The component of the Darcy flux to return");
32 params.addParam<Real>(
35 "Scale the result by (1/velocity_scaling). Usually velocity_scaling = porosity.");
36 params.addRequiredCoupledVar(
"porepressure",
"The variable representing the porepressure");
41 : AuxKernel(parameters),
42 _grad_pp(coupledGradient(
"porepressure")),
43 _fluid_weight(getParam<RealVectorValue>(
"fluid_weight")),
44 _fluid_viscosity(getParam<Real>(
"fluid_viscosity")),
45 _poro_recip(1.0 / getParam<Real>(
"velocity_scaling")),
46 _permeability(getMaterialProperty<RealTensorValue>(
"permeability")),
47 _component(getParam<MooseEnum>(
"component"))