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"
11 #include "IPHDGAssemblyHelper.h"
12 
15 {
16  auto params = IPHDGBC::validParams();
17  params.addRequiredParam<MooseFunctorName>(
18  "prescribed_normal_flux", "The prescribed value of the flux dotted with the normal");
19  return params;
20 }
21 
23  : IPHDGBC(parameters), _normal_flux(getFunctor<Real>("prescribed_normal_flux"))
24 {
25 }
26 
27 void
29 {
30  auto & iphdg_helper = iphdgHelper();
31  iphdg_helper.resizeResiduals();
32 
33  // u, lm_u
34  iphdg_helper.scalarFace();
35  iphdg_helper.lmFace();
36  iphdg_helper.lmPrescribedFlux(_normal_flux);
37 }
Implements a prescribed flux for an IP-HDG discretization.
Definition: IPHDGBC.h:19
virtual void compute() override
compute the AD residuals
static InputParameters validParams()
Definition: IPHDGBC.C:14
const Moose::Functor< Real > & _normal_flux
Prescribed normal flux along the boundary.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
IPHDGPrescribedFluxBC(const InputParameters &parameters)
virtual IPHDGAssemblyHelper & iphdgHelper()=0
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real