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 "NSMomentumInviscidBC.h" 13 : 14 : // Forward Declarations 15 : 16 : /** 17 : * Momentum equation boundary condition in which pressure is specified (given) 18 : * and the value of the convective part is allowed to vary (is computed implicitly). 19 : */ 20 : class NSMomentumInviscidSpecifiedPressureBC : public NSMomentumInviscidBC 21 : { 22 : public: 23 : static InputParameters validParams(); 24 : 25 : NSMomentumInviscidSpecifiedPressureBC(const InputParameters & parameters); 26 : 27 88 : virtual ~NSMomentumInviscidSpecifiedPressureBC() {} 28 : 29 : protected: 30 : virtual Real computeQpResidual(); 31 : virtual Real computeQpJacobian(); 32 : virtual Real computeQpOffDiagJacobian(unsigned jvar); 33 : 34 : // The specified value of the pressure. This must be passed to the parent's 35 : // pressureQpResidualHelper function. 36 : Real _specified_pressure; 37 : };