https://mooseframework.inl.gov
IPHDGPrescribedFluxBC.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 
10 #include "IPHDGPrescribedFluxBC.h"
12 
15 {
17  params.addRequiredParam<MooseFunctorName>(
18  "prescribed_normal_flux", "The prescribed value of the flux dotted with the normal");
19  return params;
20 }
21 
23  : ElementAndTraceScalarHDGBC(parameters), _normal_flux(getFunctor<Real>("prescribed_normal_flux"))
24 {
25 }
26 
27 void
29 {
30  helper.resizeResiduals();
31 
32  // u, lm_u
33  helper.scalarFace();
34  helper.lmFace();
36 }
void lmPrescribedFlux(const Moose::Functor< Real > &flux_value)
Applies a prescribed flux in the facet equation.
const Moose::Functor< Real > & _normal_flux
Prescribed normal flux along the boundary.
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...
void resizeResiduals()
Resizes the element-interior and facet residual vectors for the current element.
static InputParameters validParams()
IPHDGPrescribedFluxBC(const InputParameters &parameters)
virtual void scalarFace()=0
Assembles the element-interior equation&#39;s face contribution.
Method-neutral assembly data and operations for an element-and-trace scalar hybridized DG discretizat...
virtual void lmFace()=0
Assembles the facet equation&#39;s interior-face contribution.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
virtual void compute(ElementAndTraceScalarHDGAssemblyHelper &helper) override
compute the AD residuals