19 MooseEnum momentum_component(
"x=0 y=1 z=2");
23 "The component of the momentum equation that this BC applies to.");
25 "include_porosity",
false,
"Whether to multiply the pressure times porosity");
26 params.
addClassDescription(
"Adds an implicit pressure flux contribution on the boundary using "
27 "interior cell information");
33 _eps(getParam<bool>(
"include_porosity") ? &getMaterialProperty<Real>(
NS::porosity) : nullptr),
34 _pressure(getADMaterialProperty<Real>(
NS::pressure)),
35 _index(getParam<
MooseEnum>(
"momentum_component"))
44 resid *= (*_eps)[
_qp];
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", CNSFVMomImplicitPressureBC)
Implicit boundary conditions for the boundary pressure term from the momentum equation.
unsigned int _index
index x|y|z
const MaterialProperty< Real > *const _eps
porosity
virtual ADReal computeQpResidual() override
static InputParameters validParams()
CNSFVMomImplicitPressureBC(const InputParameters ¶meters)
const ADMaterialProperty< Real > & _pressure
The pressure on the elem.
ADRealVectorValue _normal
static InputParameters validParams()