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 "INSFVMeshAdvection.h" 13 : #include "INSFVMomentumResidualObject.h" 14 : 15 : /** 16 : * Implements a momentum source/sink term proportional to the divergence of the mesh velocity 17 : */ 18 : class INSFVMomentumMeshAdvection : public INSFVMeshAdvection, public INSFVMomentumResidualObject 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : INSFVMomentumMeshAdvection(const InputParameters & parameters); 24 : virtual void gatherRCData(const Elem & elem) override; 25 0 : virtual void gatherRCData(const FaceInfo &) override {} 26 : 27 : protected: 28 : /// Whether to add this object's contribution to the Rhie-Chow coefficients 29 : const bool _add_to_a; 30 : };