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