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 flux boundary condition for linear finite 16 : * volume pressure variables used in the pressure corrector equation which is consistent with the 17 : * H/A flux. This is only applicable for advection-diffusion problems. 18 : */ 19 : class LinearFVPressureFluxBC : public LinearFVAdvectionDiffusionBC 20 : { 21 : public: 22 : /** 23 : * Class constructor. 24 : * @param parameters The InputParameters for the object 25 : */ 26 : LinearFVPressureFluxBC(const InputParameters & parameters); 27 : 28 : static InputParameters validParams(); 29 : 30 : virtual Real computeBoundaryValue() const override; 31 : 32 : virtual Real computeBoundaryNormalGradient() const override; 33 : 34 : virtual Real computeBoundaryValueMatrixContribution() const override; 35 : 36 : virtual Real computeBoundaryValueRHSContribution() const override; 37 : 38 : virtual Real computeBoundaryGradientMatrixContribution() const override; 39 : 40 : virtual Real computeBoundaryGradientRHSContribution() const override; 41 : 42 725760 : virtual bool includesMaterialPropertyMultiplier() const override { return true; } 43 : 44 : protected: 45 : /// The H/A flux functor for this BC (can be variable, function, etc) 46 : const Moose::Functor<Real> & _HbyA_flux; 47 : 48 : /// The functor for the 1/A tensor serving as a diffusion coefficient 49 : const Moose::Functor<RealVectorValue> & _Ainv; 50 : };