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 "AdvectionIPHDGAssemblyHelper.h" 11 : #include "AdvectionIPHDGOutflowBC.h" 12 : 13 : registerMooseObject("MooseApp", AdvectionIPHDGOutflowBC); 14 : 15 : InputParameters 16 14290 : AdvectionIPHDGOutflowBC::validParams() 17 : { 18 14290 : auto params = IPHDGBC::validParams(); 19 14290 : params += AdvectionIPHDGAssemblyHelper::validParams(); 20 14290 : params.addClassDescription("Implements an outflow boundary condition for use with a hybridized " 21 : "discretization of the advection equation"); 22 14290 : return params; 23 0 : } 24 : 25 13 : AdvectionIPHDGOutflowBC::AdvectionIPHDGOutflowBC(const InputParameters & parameters) 26 : : IPHDGBC(parameters), 27 39 : _iphdg_helper(std::make_unique<AdvectionIPHDGAssemblyHelper>( 28 13 : this, this, this, _sys, _assembly, _tid, std::set<SubdomainID>{}, boundaryIDs())) 29 : { 30 13 : } 31 : 32 : void 33 24 : AdvectionIPHDGOutflowBC::compute() 34 : { 35 24 : auto & iphdg_helper = iphdgHelper(); 36 24 : iphdg_helper.resizeResiduals(); 37 : 38 : // u, lm_u 39 24 : iphdg_helper.scalarFace(); 40 24 : iphdg_helper.lmOutflow(); 41 24 : }