https://mooseframework.inl.gov
DiffusionLHDGDirichletBC.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 "IntegratedBC.h"
14 
19 {
20 public:
22 
24 
25  virtual void computeResidual() override;
26  virtual void computeJacobian() override;
27  virtual void computeOffDiagJacobian(unsigned int jvar) override;
28  virtual void jacobianSetup() override;
29  virtual void initialSetup() override;
30 
31 protected:
32  virtual Real computeQpResidual() override { mooseError("this will never be called"); }
33 
34 private:
37 
39  unsigned int _cached_side;
40 };
unsigned int _cached_side
A cache variable to prevent multiple computations of Jacobians.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DiffusionLHDGDirichletBC(const InputParameters &parameters)
virtual void jacobianSetup() override
Gets called just before the Jacobian is computed and before this object is asked to do its job...
Weakly imposes Dirichlet boundary conditions for a hybridized discretization of diffusion.
Implements all the methods for assembling a hybridized local discontinuous Galerkin (LDG-H)...
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-ivar-residual / d-jvar...
Base class for deriving any boundary condition of a integrated type.
Definition: IntegratedBC.h:18
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const InputParameters & parameters() const
Get the parameters of the object.
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
const Moose::Functor< Real > & _dirichlet_val
Functor computing the Dirichlet boundary value.
virtual void computeResidual() override
Compute this object&#39;s contribution to the residual.