Line data Source code
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 : 14 : // Forward Declarations 15 : 16 : /** 17 : * This class computes the pressure Poisson solve which is part of 18 : * the "split" scheme used for solving the incompressible Navier-Stokes 19 : * equations. 20 : * 21 : * Do not use, USE INSChorinPressurePoisson and related classes instead. 22 : */ 23 : class INSPressurePoisson : public Kernel 24 : { 25 : public: 26 : static InputParameters validParams(); 27 : 28 : INSPressurePoisson(const InputParameters & parameters); 29 : 30 0 : virtual ~INSPressurePoisson() {} 31 : 32 : protected: 33 : virtual Real computeQpResidual(); 34 : virtual Real computeQpJacobian(); 35 : virtual Real computeQpOffDiagJacobian(unsigned jvar); 36 : 37 : // Gradients of the accleration vector, 'a' 38 : const VariableGradient & _grad_a1; 39 : const VariableGradient & _grad_a2; 40 : const VariableGradient & _grad_a3; 41 : 42 : // Variable numberings 43 : unsigned _a1_var_number; 44 : unsigned _a2_var_number; 45 : unsigned _a3_var_number; 46 : 47 : // Material properties 48 : const MaterialProperty<Real> & _rho; 49 : };