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 "PWCNSFVMomentumFluxBC.h" 11 : #include "NS.h" 12 : 13 : registerMooseObject("NavierStokesApp", PWCNSFVMomentumFluxBC); 14 : 15 : InputParameters 16 33 : PWCNSFVMomentumFluxBC::validParams() 17 : { 18 33 : InputParameters params = WCNSFVMomentumFluxBC::validParams(); 19 33 : params.addClassDescription("Flux boundary conditions for porous momentum advection."); 20 33 : params.addParam<MooseFunctorName>(NS::porosity, NS::porosity, "Porosity functor"); 21 33 : return params; 22 0 : } 23 : 24 24 : PWCNSFVMomentumFluxBC::PWCNSFVMomentumFluxBC(const InputParameters & params) 25 24 : : WCNSFVMomentumFluxBC(params), _eps(getFunctor<ADReal>(NS::porosity)) 26 : { 27 24 : } 28 : 29 : ADReal 30 2150 : PWCNSFVMomentumFluxBC::computeQpResidual() 31 : { 32 4300 : return WCNSFVMomentumFluxBC::computeQpResidual() / _eps(singleSidedFaceArg(), determineState()); 33 : }