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 "FVElementalKernel.h" 13 : #include "INSFVMomentumResidualObject.h" 14 : 15 : /** 16 : * Body force that contributes to the Rhie-Chow interpolation 17 : */ 18 : class INSFVBodyForce : public FVElementalKernel, public INSFVMomentumResidualObject 19 : { 20 : public: 21 : INSFVBodyForce(const InputParameters & params); 22 : static InputParameters validParams(); 23 : 24 15287314 : void gatherRCData(const Elem &) override {} 25 0 : void gatherRCData(const FaceInfo &) override {} 26 : 27 : protected: 28 : ADReal computeQpResidual() override; 29 : 30 : /// Scale factor 31 : const Real & _scale; 32 : 33 : /// The functor describing the body force 34 : const Moose::Functor<ADReal> & _functor; 35 : 36 : /// Optional postprocessor scaling factor of the body force 37 : const PostprocessorValue & _postprocessor; 38 : };