https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
27void
29{
30 helper.resizeResiduals();
31
32 // u, lm_u
33 helper.scalarFace();
34 helper.lmFace();
36}
Method-neutral assembly data and operations for an element-and-trace scalar hybridized DG discretizat...
virtual void scalarFace()=0
Assembles the element-interior equation's face contribution.
void resizeResiduals()
Resizes the element-interior and facet residual vectors for the current element.
virtual void lmFace()=0
Assembles the facet equation's interior-face contribution.
void lmPrescribedFlux(const Moose::Functor< Real > &flux_value)
Applies a prescribed flux in the facet equation.
Base boundary condition for element-and-trace scalar hybridized DG discretizations assembled with aut...
static InputParameters validParams()
const Moose::Functor< Real > & _normal_flux
Prescribed normal flux along the boundary.
virtual void compute(ElementAndTraceScalarHDGAssemblyHelper &helper) override
compute the AD residuals
IPHDGPrescribedFluxBC(const InputParameters &parameters)
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.