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 "ThreadedGeneralUserObject.h" 13 : #include "SubChannelMesh.h" 14 : #include "SubChannel1PhaseProblem.h" 15 : 16 : /** 17 : * Base class for SCM closures 18 : */ 19 : class SCMClosureBase : public ThreadedGeneralUserObject 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : SCMClosureBase(const InputParameters & parameters); 25 : 26 1212 : virtual void execute() final {} 27 1212 : virtual void initialize() final {} 28 1081 : virtual void finalize() final {} 29 : 30 131 : virtual void threadJoin(const UserObject &) final {} 31 0 : virtual void subdomainSetup() final {} 32 : 33 : protected: 34 : /// Reference to the subchannel mesh 35 : const SubChannelMesh & _subchannel_mesh; 36 : /// Reference to the subchannel problem 37 : const SubChannel1PhaseProblem & _scm_problem; 38 : };