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 : const std::string SubChannelApp::MASS_FLOW_RATE = "mdot"; 20 : const std::string SubChannelApp::SURFACE_AREA = "S"; 21 : const std::string SubChannelApp::SUM_CROSSFLOW = "SumWij"; 22 : const std::string SubChannelApp::PRESSURE = "P"; 23 : const std::string SubChannelApp::PRESSURE_DROP = "DP"; 24 : const std::string SubChannelApp::ENTHALPY = "h"; 25 : const std::string SubChannelApp::TEMPERATURE = "T"; 26 : const std::string SubChannelApp::PIN_TEMPERATURE = "Tpin"; 27 : const std::string SubChannelApp::PIN_DIAMETER = "Dpin"; 28 : const std::string SubChannelApp::DENSITY = "rho"; 29 : const std::string SubChannelApp::VISCOSITY = "mu"; 30 : const std::string SubChannelApp::WETTED_PERIMETER = "w_perim"; 31 : const std::string SubChannelApp::LINEAR_HEAT_RATE = "q_prime"; 32 : const std::string SubChannelApp::DUCT_LINEAR_HEAT_RATE = "q_prime_duct"; 33 : const std::string SubChannelApp::DUCT_TEMPERATURE = "Tduct"; 34 : const std::string SubChannelApp::DISPLACEMENT = "displacement"; 35 : 36 : InputParameters 37 720 : SubChannelApp::validParams() 38 : { 39 720 : InputParameters params = MooseApp::validParams(); 40 720 : params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false; 41 720 : params.set<bool>("use_legacy_material_output") = false; 42 : 43 720 : return params; 44 0 : } 45 : 46 720 : SubChannelApp::SubChannelApp(const InputParameters & parameters) : MooseApp(parameters) 47 : { 48 720 : SubChannelApp::registerAll(_factory, _action_factory, _syntax); 49 720 : } 50 : 51 : void 52 1432 : SubChannelApp::registerAll(Factory & f, ActionFactory & af, Syntax & s) 53 : { 54 1432 : Registry::registerObjectsTo(f, {"SubChannelApp"}); 55 1432 : Registry::registerActionsTo(af, {"SubChannelApp"}); 56 : 57 : /* register custom execute flags, action syntax, etc. here */ 58 1432 : SubChannel::associateSyntax(s, af); 59 : 60 1432 : FluidPropertiesApp::registerAll(f, af, s); 61 1432 : HeatTransferApp::registerAll(f, af, s); 62 1432 : ReactorApp::registerAll(f, af, s); 63 1432 : } 64 : 65 : void 66 605 : SubChannelApp::registerApps() 67 : { 68 605 : registerApp(SubChannelApp); 69 : 70 605 : FluidPropertiesApp::registerApps(); 71 605 : HeatTransferApp::registerApps(); 72 605 : ReactorApp::registerApps(); 73 605 : } 74 : 75 : /*************************************************************************************************** 76 : *********************** Dynamic Library Entry Points - DO NOT MODIFY ****************************** 77 : **************************************************************************************************/ 78 : extern "C" void 79 0 : SubChannelApp__registerAll(Factory & f, ActionFactory & af, Syntax & s) 80 : { 81 0 : SubChannelApp::registerAll(f, af, s); 82 0 : } 83 : extern "C" void 84 0 : SubChannelApp__registerApps() 85 : { 86 0 : SubChannelApp::registerApps(); 87 0 : }