https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NavierStokesLHDGVelocityDirichletBC.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
15#include <array>
16
23{
24public:
26
28
29 virtual void computeResidual() override;
30 virtual void computeJacobian() override;
31 virtual void computeOffDiagJacobian(unsigned int jvar) override;
32 virtual void jacobianSetup() override;
33 virtual void initialSetup() override;
34
35protected:
36 virtual Real computeQpResidual() override
37 {
38 mooseAssert(false, "this will never be called");
39 return 0;
40 }
41
42private:
44 std::array<const Moose::Functor<Real> *, 3> _dirichlet_vel;
45
47 unsigned int _cached_side;
48};
const InputParameters & parameters() const
Implements all the methods for assembling a hybridized local discontinuous Galerkin (LDG-H),...
Weakly imposes Dirichlet boundary conditions for the velocity for a hybridized discretization of the ...
unsigned int _cached_side
A cache variable to prevent multiple computations of Jacobians.
std::array< const Moose::Functor< Real > *, 3 > _dirichlet_vel
Dirichlet velocity.
virtual void computeOffDiagJacobian(unsigned int jvar) override