https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PINSFVMomentumPressureFlux.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
12#include "NS.h"
13
15
18{
20 params.addClassDescription("Momentum pressure term eps grad_P, as a flux kernel "
21 "using the divergence theoreom, in the porous media "
22 "incompressible Navier-Stokes momentum equation. This kernel "
23 "is also executed on boundaries.");
24 params.addRequiredParam<MooseFunctorName>(NS::porosity, "Porosity functor");
25 params.set<bool>("force_boundary_execution") = true;
26 return params;
27}
28
30 : INSFVMomentumPressureFlux(params), _eps(getFunctor<ADReal>(NS::porosity))
31{
32 if (!dynamic_cast<PINSFVSuperficialVelocityVariable *>(&_var))
33 mooseError("PINSFVMomentumPressureFlux may only be used with a superficial velocity, "
34 "of variable type PINSFVSuperficialVelocityVariable.");
35}
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", PINSFVMomentumPressureFlux)
MooseVariableFV< Real > & _var
A flux kernel using the divergence theorem for the pressure gradient term in the momentum equation.
static InputParameters validParams()
void mooseError(Args &&... args) const
A flux kernel using the divergence theorem for the pressure gradient term in the momentum equation.
static InputParameters validParams()
PINSFVMomentumPressureFlux(const InputParameters &params)
static const std::string porosity
Definition NS.h:108