https://mooseframework.inl.gov
AdvectionIPHDGOutflowBC.C
Go to the documentation of this file.
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 
12 
14 
17 {
20  params.addClassDescription("Implements an outflow boundary condition for use with a hybridized "
21  "discretization of the advection equation");
22  params.addRequiredParam<bool>("constrain_lm",
23  "Whether to constrain the Lagrange multiplier to weakly match the "
24  "interior solution on this boundary. This should be set to true "
25  "for pure advection problems and likely false otherwise.");
26  return params;
27 }
28 
30  : ElementAndTraceScalarHDGBC(parameters),
31  _iphdg_helper(std::make_unique<AdvectionIPHDGAssemblyHelper>(
32  this, this, this, _sys, _assembly, _tid, std::set<SubdomainID>{}, boundaryIDs())),
33  _constrain_lm(getParam<bool>("constrain_lm"))
34 {
35 }
36 
37 void
39 {
40  _iphdg_helper->resizeResiduals();
41 
42  // u, lm_u
43  _iphdg_helper->scalarFace();
44  if (_constrain_lm)
45  _iphdg_helper->lmOutflow();
46 }
47 
50 {
51  return *_iphdg_helper;
52 }
Implements an outflow boundary condition for use with a hybridized discretization of the Advection eq...
virtual ElementAndTraceScalarHDGAssemblyHelper & hdgHelper() override
Returns the helper used for common element-and-trace scalar HDG assembly.
Base boundary condition for element-and-trace scalar hybridized DG discretizations assembled with aut...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Implements all the methods for assembling a hybridized interior penalty discontinuous Galerkin (IPDG-...
AdvectionIPHDGOutflowBC(const InputParameters &parameters)
virtual void compute(ElementAndTraceScalarHDGAssemblyHelper &) override
compute the AD residuals
const bool _constrain_lm
Whether to constrain the Lagrange multiplier to weakly match the interior solution on this boundary...
Method-neutral assembly data and operations for an element-and-trace scalar hybridized DG discretizat...
static InputParameters validParams()
std::unique_ptr< AdvectionIPHDGAssemblyHelper > _iphdg_helper
The assembly helper providing the required IP-HDG method implementations.
registerMooseObject("MooseApp", AdvectionIPHDGOutflowBC)
static InputParameters validParams()