https://mooseframework.inl.gov
MassFluxPenaltyBC.h
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 #pragma once
11 
12 #include "ADIntegratedBC.h"
13 
14 class Function;
15 
16 /*
17  * The external face pair to the MassFluxPenalty DGKernel. The DGKernel adds a residual/Jacobian
18  * contribution proportional to the jump in velocity at an internal face. This object running on the
19  * external boundary adds a residual proportional to the jump between the finite element solution
20  * and the Dirichlet value (which this object currently requires). These jump terms are added in
21  * order to produce an augmented Lagrange like perturbation for DG discretizations
22  */
24 {
25 public:
27 
29 
30  virtual void computeResidual() override;
31 
32 protected:
33  virtual ADReal computeQpResidual() override;
34 
37  const unsigned short _comp;
39  const bool _matrix_only;
41  const Real _gamma;
42  const Function * const _dirichlet_func;
43 };
const Function *const _dirichlet_func
DualNumber< Real, DNDerivativeType, true > ADReal
MassFluxPenaltyBC(const InputParameters &parameters)
static InputParameters validParams()
const bool _matrix_only
whether to avoid contributing to the residual
const Real _gamma
Stabilization magnitude parameter.
virtual void computeResidual() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADVariableValue & _vel_x
const unsigned short _comp
const InputParameters & parameters() const
const ADVariableValue & _vel_y
virtual ADReal computeQpResidual() override