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 "projection" part of the "split" method for 18 : * solving incompressible Navier-Stokes. This is a time-varying equation 19 : * for u that is coupled to both the acceleration "a" and the pressue. 20 : * 21 : * Do not use, USE INSChorinCorrector and related classes instead. 22 : */ 23 : class INSProjection : public Kernel 24 : { 25 : public: 26 : static InputParameters validParams(); 27 : 28 : INSProjection(const InputParameters & parameters); 29 : 30 0 : virtual ~INSProjection() {} 31 : 32 : protected: 33 : virtual Real computeQpResidual(); 34 : virtual Real computeQpJacobian(); 35 : virtual Real computeQpOffDiagJacobian(unsigned jvar); 36 : 37 : // Coupled variables 38 : const VariableValue & _a1; 39 : const VariableValue & _a2; 40 : const VariableValue & _a3; 41 : 42 : // Gradients 43 : const VariableGradient & _grad_p; 44 : 45 : // Variable numberings 46 : unsigned _a1_var_number; 47 : unsigned _a2_var_number; 48 : unsigned _a3_var_number; 49 : unsigned _p_var_number; 50 : 51 : // Parameters 52 : unsigned _component; 53 : 54 : // Material properties 55 : const MaterialProperty<Real> & _rho; 56 : };