https://mooseframework.inl.gov
INSFVMomentumPressure.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 
10 #include "INSFVMomentumPressure.h"
11 #include "NS.h"
12 
13 registerMooseObject("NavierStokesApp", INSFVMomentumPressure);
14 
17 {
20  params.addClassDescription(
21  "Introduces the coupled pressure term into the Navier-Stokes momentum equation.");
22  params.addRequiredParam<MooseFunctorName>(NS::pressure, "The pressure");
23  MooseEnum momentum_component("x=0 y=1 z=2");
25  "momentum_component",
26  momentum_component,
27  "The component of the momentum equation that this kernel applies to.");
28  params.addParam<bool>(
29  "correct_skewness", false, "Whether to correct for mesh skewness in face calculations.");
30  return params;
31 }
32 
34  : FVElementalKernel(params),
36  _p(getFunctor<ADReal>(NS::pressure)),
37  _index(getParam<MooseEnum>("momentum_component")),
38  _correct_skewness(getParam<bool>("correct_skewness"))
39 {
40 }
41 
42 ADReal
44 {
46 }
const unsigned int _index
index x|y|z
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
Moose::StateArg determineState() const
const Moose::Functor< ADReal > & _p
The pressure.
DualNumber< Real, DNDerivativeType, true > ADReal
void addRequiredParam(const std::string &name, const std::string &doc_string)
ADReal computeQpResidual() override
const Elem *const & _current_elem
static InputParameters validParams()
All objects that contribute to pressure-based (e.g.
INSFVMomentumPressure(const InputParameters &params)
static InputParameters validParams()
static const std::string pressure
Definition: NS.h:56
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("NavierStokesApp", INSFVMomentumPressure)
const bool _correct_skewness
Whether to correct for mesh skewness in face calculations.