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 "INSFVRhieChowInterpolatorSegregated.h" 13 : 14 : /** 15 : * A user object which implements the Rhie Chow interpolation for segregated 16 : * porous medium momentum-pressure systems. 17 : */ 18 : class PINSFVRhieChowInterpolatorSegregated : public INSFVRhieChowInterpolatorSegregated 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : PINSFVRhieChowInterpolatorSegregated(const InputParameters & params); 23 : 24 : protected: 25 : const Moose::FunctorBase<ADReal> & epsilon(THREAD_ID tid) const override; 26 : 27 : /// The thread 0 copy of the porosity functor held by the subproblem. Initially this functor 28 : /// should be provided by a functor material property or function. We then perform repeated 29 : /// interpolations and reconstructions to create the resulting smoothed field 30 : const Moose::Functor<ADReal> & _eps; 31 : 32 : /// All the thread copies of the problem's porosity functor 33 : std::vector<const Moose::Functor<ADReal> *> _epss; 34 : }; 35 : 36 : inline const Moose::FunctorBase<ADReal> & 37 1285324 : PINSFVRhieChowInterpolatorSegregated::epsilon(const THREAD_ID tid) const 38 : { 39 1285324 : return *_epss[tid]; 40 : }