https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearPWCNSFVMomentumPressure.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
11
12#include "NS.h"
13
15
18{
20 params.addClassDescription(
21 "Adds the porosity-weighted pressure gradient to a porous momentum equation.");
22 params.addRequiredParam<MooseFunctorName>(NS::porosity, "The porosity functor.");
23 return params;
24}
25
27 : LinearFVMomentumPressure(params), _porosity(getFunctor<Real>(NS::porosity))
28{
29}
30
31Real
registerMooseObject("NavierStokesApp", LinearPWCNSFVMomentumPressure)
const Elem * elem() const
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
const ElemInfo * _current_elem_info
Kernel that adds the component of the pressure gradient in the momentum equations to the right hand s...
virtual Real computeRightHandSideContribution() override
static InputParameters validParams()
Adds the porosity-weighted pressure gradient to the right hand side of the momentum equation written ...
const Moose::Functor< Real > & _porosity
Porosity multiplying the pressure-gradient contribution.
Real computeRightHandSideContribution() override
Compute the pressure-gradient source multiplied by the cell porosity.
LinearPWCNSFVMomentumPressure(const InputParameters &params)
Construct the porous momentum pressure kernel.
Moose::StateArg determineState() const
static const std::string porosity
Definition NS.h:108