https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
11#include "NS.h"
12
14
17{
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
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", INSFVMomentumPressure)
static InputParameters validParams()
const Elem *const & _current_elem
const bool _correct_skewness
Whether to correct for mesh skewness in face calculations.
const Moose::Functor< ADReal > & _p
The pressure.
INSFVMomentumPressure(const InputParameters &params)
ADReal computeQpResidual() override
static InputParameters validParams()
const unsigned int _index
index x|y|z
All objects that contribute to pressure-based (e.g.
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Moose::StateArg determineState() const
static const std::string pressure
Definition NS.h:57