www.mooseframework.org
HeatConductionApp.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "HeatConductionApp.h"
11 #include "Moose.h"
12 #include "AppFactory.h"
13 #include "MooseSyntax.h"
14 
16 
17 InputParameters
19 {
20  InputParameters params = ::validParams<MooseApp>();
21 
22  // Do not use legacy DirichletBC, that is, set DirichletBC default for preset = true
23  params.set<bool>("use_legacy_dirichlet_bc") = false;
24 
25  return params;
26 }
27 
28 registerKnownLabel("HeatConductionApp");
29 
30 HeatConductionApp::HeatConductionApp(const InputParameters & parameters) : MooseApp(parameters)
31 {
32  HeatConductionApp::registerAll(_factory, _action_factory, _syntax);
33 }
34 
36 
37 void
39 {
40  registerApp(HeatConductionApp);
41 }
42 
43 static void
44 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
45 {
46  // This registers an action to add the "slave_flux" vector to the system at the right time
47  registerTask("add_slave_flux_vector", false);
48  addTaskDependency("add_slave_flux_vector", "ready_to_init");
49  addTaskDependency("init_problem", "add_slave_flux_vector");
50  registerSyntaxTask("ThermalContactAction", "ThermalContact/*", "add_aux_kernel");
51  registerSyntaxTask("ThermalContactAction", "ThermalContact/*", "add_aux_variable");
52  registerSyntaxTask("ThermalContactAction", "ThermalContact/*", "add_bc");
53  registerSyntaxTask("ThermalContactAction", "ThermalContact/*", "add_dirac_kernel");
54  registerSyntaxTask("ThermalContactAction", "ThermalContact/*", "add_material");
55  registerSyntaxTask("ThermalContactAction", "ThermalContact/*", "add_slave_flux_vector");
56 
57  registerSyntaxTask("RadiationTransferAction", "GrayDiffuseRadiation/*", "add_mesh_generator");
58  registerSyntaxTask("RadiationTransferAction", "GrayDiffuseRadiation/*", "setup_mesh_complete");
59  registerSyntaxTask("RadiationTransferAction", "GrayDiffuseRadiation/*", "add_user_object");
60  registerSyntaxTask("RadiationTransferAction", "GrayDiffuseRadiation/*", "add_bc");
61 }
62 
63 void
64 HeatConductionApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
65 {
66  Registry::registerObjectsTo(f, {"HeatConductionApp"});
67  Registry::registerActionsTo(af, {"HeatConductionApp"});
68  associateSyntaxInner(s, af);
69 }
70 
71 void
73 {
74  mooseDeprecated("use registerAll instead of registerObjects");
75  Registry::registerObjectsTo(factory, {"HeatConductionApp"});
76 }
77 
78 void
79 HeatConductionApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
80 {
81  mooseDeprecated("use registerAll instead of associateSyntax");
82  Registry::registerActionsTo(action_factory, {"HeatConductionApp"});
83  associateSyntaxInner(syntax, action_factory);
84 }
85 
86 void
88 {
89  mooseDeprecated("use registerAll instead of registerExecFlags");
90 }
91 
92 extern "C" void
93 HeatConductionApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
94 {
96 }
97 extern "C" void
99 {
101 }
HeatConductionApp::registerApps
static void registerApps()
Definition: HeatConductionApp.C:38
HeatConductionApp::registerAll
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: HeatConductionApp.C:64
defineLegacyParams
defineLegacyParams(HeatConductionApp)
HeatConductionApp::registerObjects
static void registerObjects(Factory &factory)
Definition: HeatConductionApp.C:72
HeatConductionApp::HeatConductionApp
HeatConductionApp(const InputParameters &parameters)
Definition: HeatConductionApp.C:30
HeatConductionApp.h
HeatConductionApp__registerAll
void HeatConductionApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: HeatConductionApp.C:93
HeatConductionApp::validParams
static InputParameters validParams()
Definition: HeatConductionApp.C:18
HeatConductionApp::registerExecFlags
static void registerExecFlags(Factory &factory)
Definition: HeatConductionApp.C:87
HeatConductionApp__registerApps
void HeatConductionApp__registerApps()
Definition: HeatConductionApp.C:98
HeatConductionApp
Definition: HeatConductionApp.h:19
associateSyntaxInner
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
Definition: HeatConductionApp.C:44
HeatConductionApp::~HeatConductionApp
virtual ~HeatConductionApp()
Definition: HeatConductionApp.C:35
registerKnownLabel
registerKnownLabel("HeatConductionApp")
HeatConductionApp::associateSyntax
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: HeatConductionApp.C:79