https://mooseframework.inl.gov
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 
17 class PressureGradient : public Kernel
18 {
19 public:
21 
23 
24 protected:
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 };
OutputTools< Real >::VariableGradient VariableGradient
const bool _integrate_p_by_parts
Whether to integrate the pressure term by parts.
const unsigned int _rz_radial_coord
The radial coordinate index for RZ coordinate systems.
PressureGradient(const InputParameters &parameters)
const VariableValue & _pressure
The pressure value.
static InputParameters validParams()
const unsigned int _pressure_id
The number of the pressure variable.
virtual Real computeQpResidual() override
virtual Real computeQpJacobian() override
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Adds the pressure gradient term to the Navier-Stokes momentum equation.
CoordinateSystemType
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const InputParameters & parameters() const
const VariableGradient & _grad_pressure
The pressure gradient.
unsigned int _component
The velocity component this object is adding a residual for.
const Moose::CoordinateSystemType & _coord_sys
The coordinate system.