https://mooseframework.inl.gov
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 
19 {
20 public:
22 
28 
29  virtual Real computeMatrixContribution() override;
30 
31  virtual Real computeRightHandSideContribution() override;
32 
33 protected:
34  MooseLinearVariableFV<Real> & getPressureVariable(const std::string & vname);
35 
37  const unsigned int _index;
38 
41 
43  const std::vector<std::unique_ptr<NumericVector<Number>>> & _pressure_gradient;
44 
46  const unsigned int _pressure_var_num;
47 
49  const unsigned int _pressure_sys_num;
50 };
MooseLinearVariableFV< Real > & _pressure_var
Pointer to the linear finite volume pressure variable.
const std::vector< std::unique_ptr< NumericVector< Number > > > & _pressure_gradient
The pressure variable.
virtual Real computeRightHandSideContribution() override
const unsigned int _index
Index x|y|z of the momentum equation component.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
LinearFVMomentumPressure(const InputParameters &params)
Class constructor.
const unsigned int _pressure_var_num
Cache for the pressure variable number.
const unsigned int _pressure_sys_num
Cache for the pressure system number.
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)
static InputParameters validParams()
virtual Real computeMatrixContribution() override