Line data Source code
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 "LinearFVAdvectionDiffusionBC.h" 13 : 14 : /** 15 : * Class implementing a Dirichlet boundary condition for linear finite 16 : * volume variables. This is only applicable for advection-diffusion problems. 17 : */ 18 : class LinearFVAdvectionDiffusionFunctorDirichletBC : public LinearFVAdvectionDiffusionBC 19 : { 20 : public: 21 : /** 22 : * Class constructor. 23 : * @param parameters The InputParameters for the object 24 : */ 25 : LinearFVAdvectionDiffusionFunctorDirichletBC(const InputParameters & parameters); 26 : 27 : static InputParameters validParams(); 28 : 29 : virtual Real computeBoundaryValue() const override; 30 : 31 : virtual Real computeBoundaryNormalGradient() const override; 32 : 33 : virtual Real computeBoundaryValueMatrixContribution() const override; 34 : 35 : virtual Real computeBoundaryValueRHSContribution() const override; 36 : 37 : virtual Real computeBoundaryGradientMatrixContribution() const override; 38 : 39 : virtual Real computeBoundaryGradientRHSContribution() const override; 40 : 41 28666 : virtual bool useBoundaryGradientExtrapolation() const override { return true; } 42 : 43 : protected: 44 : /// The functor for this BC (can be variable, function, etc) 45 : const Moose::Functor<Real> & _functor; 46 : };