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 "SubChannelApp.h" 11 : #include "Moose.h" 12 : #include "AppFactory.h" 13 : #include "FluidPropertiesApp.h" 14 : #include "HeatTransferApp.h" 15 : #include "ReactorApp.h" 16 : #include "MooseSyntax.h" 17 : #include "SubChannelSyntax.h" 18 : 19 : InputParameters 20 593 : SubChannelApp::validParams() 21 : { 22 593 : InputParameters params = MooseApp::validParams(); 23 593 : params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false; 24 593 : params.set<bool>("use_legacy_material_output") = false; 25 : 26 593 : return params; 27 0 : } 28 : 29 593 : SubChannelApp::SubChannelApp(const InputParameters & parameters) : MooseApp(parameters) 30 : { 31 593 : SubChannelApp::registerAll(_factory, _action_factory, _syntax); 32 593 : } 33 : 34 : void 35 1178 : SubChannelApp::registerAll(Factory & f, ActionFactory & af, Syntax & s) 36 : { 37 1178 : Registry::registerObjectsTo(f, {"SubChannelApp"}); 38 1178 : Registry::registerActionsTo(af, {"SubChannelApp"}); 39 : 40 : /* register custom execute flags, action syntax, etc. here */ 41 1178 : SubChannel::associateSyntax(s, af); 42 : 43 : // Register new syntax for SCMClosures 44 : auto & syntax = s; 45 2356 : registerSyntaxTask("AddSCMClosureAction", "SCMClosures/*", "add_scm_closure"); 46 2356 : registerMooseObjectTask("add_scm_closure", SCMClosureBase, /*default task*/ false); 47 : 48 1178 : FluidPropertiesApp::registerAll(f, af, s); 49 1178 : HeatTransferApp::registerAll(f, af, s); 50 1178 : ReactorApp::registerAll(f, af, s); 51 1178 : } 52 : 53 : void 54 505 : SubChannelApp::registerApps() 55 : { 56 505 : registerApp(SubChannelApp); 57 : 58 505 : FluidPropertiesApp::registerApps(); 59 505 : HeatTransferApp::registerApps(); 60 505 : ReactorApp::registerApps(); 61 505 : } 62 : 63 : /*************************************************************************************************** 64 : *********************** Dynamic Library Entry Points - DO NOT MODIFY ****************************** 65 : **************************************************************************************************/ 66 : extern "C" void 67 0 : SubChannelApp__registerAll(Factory & f, ActionFactory & af, Syntax & s) 68 : { 69 0 : SubChannelApp::registerAll(f, af, s); 70 0 : } 71 : extern "C" void 72 0 : SubChannelApp__registerApps() 73 : { 74 0 : SubChannelApp::registerApps(); 75 0 : }