Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://www.mooseframework.org 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 symmetry boundary condition for scalar quantities 16 : */ 17 : class LinearFVAdvectionDiffusionScalarSymmetryBC : public LinearFVAdvectionDiffusionBC 18 : { 19 : public: 20 : static InputParameters validParams(); 21 : 22 : /** 23 : * Class constructor. 24 : * @param parameters The InputParameters for the object 25 : */ 26 : LinearFVAdvectionDiffusionScalarSymmetryBC(const InputParameters & parameters); 27 : 28 : // Overriding all of these 29 : virtual Real computeBoundaryValue() const override; 30 : virtual Real computeBoundaryNormalGradient() const override; 31 : virtual Real computeBoundaryValueMatrixContribution() const override; 32 : virtual Real computeBoundaryValueRHSContribution() const override; 33 : virtual Real computeBoundaryGradientMatrixContribution() const override; 34 : virtual Real computeBoundaryGradientRHSContribution() const override; 35 : 36 14418 : virtual bool includesMaterialPropertyMultiplier() const override { return true; } 37 : 38 : protected: 39 : /// Switch for enabling linear extrapolation for the boundary face value 40 : const bool _two_term_expansion; 41 : };