https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearFVMomentumPressure.h
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#pragma once
11
13
15
24{
25public:
27
33
34 virtual Real computeMatrixContribution() override;
35
36 virtual Real computeRightHandSideContribution() override;
37
40
42 unsigned int pressureVariableNumber() const { return _pressure_var.number(); }
43
45 unsigned int momentumComponent() const { return _index; }
46
47protected:
48 MooseLinearVariableFV<Real> & getPressureVariable(const std::string & vname);
49
52
54 const unsigned int _index;
55
58
61};
Kernel that adds the component of the pressure gradient in the momentum equations to the right hand s...
MooseLinearVariableFV< Real > & getPressureVariable(const std::string &vname)
unsigned int momentumComponent() const
Index x|y|z of the momentum equation component this kernel applies to.
virtual Real computeRightHandSideContribution() override
MooseLinearVariableFV< Real > & _pressure_var
Pointer to the linear finite volume pressure variable.
const unsigned int _index
Index x|y|z of the momentum equation component.
unsigned int pressureVariableNumber() const
Variable number of the pressure-like variable used by this kernel.
virtual Real computeMatrixContribution() override
const LinearFVGradientReader & pressureGradientField() const
Pressure gradient field used by this kernel.
static InputParameters validParams()
const LinearFVGradientReader & _pressure_gradient_field
Pressure gradient field used by this kernel.
const LinearFVGradientReader & registerPressureGradientField()
Register the pressure gradient field used by this kernel.
unsigned int number() const