https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PressureGradient.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
12#include "Kernel.h"
13
18{
19public:
21
23
24protected:
25 virtual Real computeQpResidual() override;
26 virtual Real computeQpJacobian() override;
27 virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
28
31
33 unsigned int _component;
34
37
40
42 const unsigned int _pressure_id;
43
46
48 const unsigned int _rz_radial_coord;
49};
const InputParameters & parameters() const
Adds the pressure gradient term to the Navier-Stokes momentum equation.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
virtual Real computeQpJacobian() override
const Moose::CoordinateSystemType & _coord_sys
The coordinate system.
const VariableValue & _pressure
The pressure value.
const unsigned int _rz_radial_coord
The radial coordinate index for RZ coordinate systems.
unsigned int _component
The velocity component this object is adding a residual for.
const unsigned int _pressure_id
The number of the pressure variable.
virtual Real computeQpResidual() override
const VariableGradient & _grad_pressure
The pressure gradient.
const bool _integrate_p_by_parts
Whether to integrate the pressure term by parts.
static InputParameters validParams()
VariableValueTempl< false > VariableValue
VariableGradientTempl< false > VariableGradient
CoordinateSystemType