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 : #include "SCMClosureBase.h" 11 : #include "MooseObject.h" 12 : #include "SCM.h" 13 : 14 : InputParameters 15 2188 : SCMClosureBase::validParams() 16 : { 17 2188 : InputParameters params = ThreadedGeneralUserObject::validParams(); 18 2188 : params.registerBase("SCMClosureBase"); 19 : 20 : // Suppress unused parameters 21 2188 : params.suppressParameter<bool>("use_displaced_mesh"); 22 2188 : params.suppressParameter<ExecFlagEnum>("execute_on"); 23 2188 : params.suppressParameter<bool>("allow_duplicate_execution_on_initial"); 24 2188 : params.suppressParameter<bool>("force_preic"); 25 2188 : params.suppressParameter<bool>("force_preaux"); 26 2188 : params.suppressParameter<bool>("force_postaux"); 27 2188 : params.suppressParameter<int>("execution_order_group"); 28 : 29 2188 : return params; 30 0 : } 31 : 32 1163 : SCMClosureBase::SCMClosureBase(const InputParameters & parameters) 33 : : ThreadedGeneralUserObject(parameters), 34 1163 : _subchannel_mesh(SCM::getConstMesh<SubChannelMesh>(_subproblem.mesh())), 35 2326 : _scm_problem(dynamic_cast<SubChannel1PhaseProblem &>(_fe_problem)) 36 : { 37 1163 : }