https://mooseframework.inl.gov
SubChannelApp.C
Go to the documentation of this file.
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 
21 {
23  params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
24  params.set<bool>("use_legacy_material_output") = false;
25 
26  return params;
27 }
28 
29 SubChannelApp::SubChannelApp(const InputParameters & parameters) : MooseApp(parameters)
30 {
32 }
33 
34 void
36 {
37  Registry::registerObjectsTo(f, {"SubChannelApp"});
38  Registry::registerActionsTo(af, {"SubChannelApp"});
39 
40  /* register custom execute flags, action syntax, etc. here */
41  SCM::associateSyntax(s, af);
42 
43  // Register new syntax for SCMClosures
44  auto & syntax = s;
45  registerSyntaxTask("AddSCMClosureAction", "SCMClosures/*", "add_scm_closure");
46  registerMooseObjectTask("add_scm_closure", SCMClosureBase, /*default task*/ false);
47 
50  ReactorApp::registerAll(f, af, s);
51 }
52 
53 void
55 {
56  registerApp(SubChannelApp);
57 
61 }
62 
63 /***************************************************************************************************
64  *********************** Dynamic Library Entry Points - DO NOT MODIFY ******************************
65  **************************************************************************************************/
66 extern "C" void
68 {
70 }
71 extern "C" void
73 {
75 }
static void registerApps()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: SubChannelApp.C:35
void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Application used when running the subchannel module directly.
Definition: SubChannelApp.h:17
static void registerApps()
static InputParameters validParams()
Definition: SubChannelApp.C:20
T & set(const std::string &name, bool quiet_mode=false)
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
Syntax _syntax
Syntax & syntax()
static InputParameters validParams()
void SubChannelApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: SubChannelApp.C:67
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
void SubChannelApp__registerApps()
Definition: SubChannelApp.C:72
static void registerApps()
Definition: ReactorApp.C:42
SubChannelApp(const InputParameters &parameters)
Definition: SubChannelApp.C:29
Base class for SCM closures.
Factory _factory
static void registerApps()
Definition: SubChannelApp.C:54
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ReactorApp.C:32
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)