https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DiffusionLHDGPrescribedGradientBC.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
20{
21public:
23
25
26 virtual void computeResidual() override;
27 virtual void computeJacobian() override;
28 virtual void computeOffDiagJacobian(unsigned int jvar) override;
29 virtual void jacobianSetup() override;
30 virtual void initialSetup() override;
31
32protected:
33 virtual Real computeQpResidual() override { mooseError("this will never be called"); }
34
38
40 unsigned int _cached_side;
41};
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
Implements all the methods for assembling a hybridized local discontinuous Galerkin (LDG-H),...
Implements a fixed normal gradient boundary condition for use with a hybridized discretization of the...
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
unsigned int _cached_side
A cache variable to prevent multiple computations of Jacobians.
const Moose::Functor< Real > & _normal_gradient
Prescribed normal gradient along the boundary.
virtual void computeResidual() override
Compute this object's contribution to the residual.
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
virtual void jacobianSetup() override
Gets called just before the Jacobian is computed and before this object is asked to do its job.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-ivar-residual / d-jvar...
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Base class for deriving any boundary condition of a integrated type.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...