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 "IntegratedBC.h" 13 : #include "NavierStokesLHDGAssemblyHelper.h" 14 : 15 : #include <vector> 16 : 17 : template <typename> 18 : class MooseVariableFE; 19 : class MooseVariableScalar; 20 : template <typename> 21 : class MooseArray; 22 : class Function; 23 : 24 : /** 25 : * Implements an outflow boundary condition for use with a hybridized discretization of the 26 : * incompressible Navier-Stokes equations 27 : */ 28 : class NavierStokesLHDGOutflowBC : public IntegratedBC, public NavierStokesLHDGAssemblyHelper 29 : { 30 : public: 31 : static InputParameters validParams(); 32 : 33 : NavierStokesLHDGOutflowBC(const InputParameters & parameters); 34 : 35 : virtual void computeResidual() override; 36 : virtual void computeJacobian() override; 37 : virtual void computeOffDiagJacobian(unsigned int jvar) override; 38 : virtual void jacobianSetup() override; 39 : virtual void initialSetup() override; 40 : 41 : protected: 42 0 : virtual Real computeQpResidual() override 43 : { 44 : mooseAssert(false, "this will never be called"); 45 0 : return 0; 46 : } 47 : 48 : /// A cache variable to prevent multiple computations of Jacobians 49 : unsigned int _cached_side; 50 : };