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 : #include "INSFVAveragePressureValueBC.h" 11 : #include "INSFVPressureVariable.h" 12 : 13 : registerMooseObject("NavierStokesApp", INSFVAveragePressureValueBC); 14 : 15 : InputParameters 16 41 : INSFVAveragePressureValueBC::validParams() 17 : { 18 41 : InputParameters params = FVBoundaryIntegralValueConstraint::validParams(); 19 41 : params += INSFVFullyDevelopedFlowBC::validParams(); 20 41 : return params; 21 0 : } 22 : 23 22 : INSFVAveragePressureValueBC::INSFVAveragePressureValueBC(const InputParameters & params) 24 22 : : FVBoundaryIntegralValueConstraint(params), INSFVFullyDevelopedFlowBC(params) 25 : { 26 22 : if (!dynamic_cast<INSFVPressureVariable *>(&_var)) 27 0 : paramError("variable", 28 : "The variable argument to INSFVAveragePressureValueBC must be of type " 29 : "INSFVPressureVariable"); 30 22 : }