www.mooseframework.org
ChemicalReactionsApp.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 "ChemicalReactionsApp.h"
11 #include "Moose.h"
12 #include "AppFactory.h"
13 #include "MooseSyntax.h"
14 
15 template <>
16 InputParameters
18 {
19  InputParameters params = validParams<MooseApp>();
20 
21  params.set<bool>("automatic_automatic_scaling") = false;
22 
23  // Do not use legacy DirichletBC, that is, set DirichletBC default for preset = true
24  params.set<bool>("use_legacy_dirichlet_bc") = false;
25 
26  return params;
27 }
28 
29 registerKnownLabel("ChemicalReactionsApp");
30 
31 ChemicalReactionsApp::ChemicalReactionsApp(const InputParameters & parameters)
32  : MooseApp(parameters)
33 {
34  ChemicalReactionsApp::registerAll(_factory, _action_factory, _syntax);
35 }
36 
38 
39 static void
40 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
41 {
42  registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
43  registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
44  registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
45  registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
46  registerSyntax("AddCoupledEqSpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
47  registerSyntax("AddCoupledSolidKinSpeciesAction", "ReactionNetwork/SolidKineticReactions");
48 }
49 
50 void
51 ChemicalReactionsApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
52 {
53  Registry::registerObjectsTo(f, {"ChemicalReactionsApp"});
54  Registry::registerActionsTo(af, {"ChemicalReactionsApp"});
55  associateSyntaxInner(s, af);
56 }
57 
58 void
60 {
61  registerApp(ChemicalReactionsApp);
62 }
63 
64 void
66 {
67  mooseDeprecated("use registerAll instead of registerObjects");
68  Registry::registerObjectsTo(factory, {"ChemicalReactionsApp"});
69 }
70 
71 void
72 ChemicalReactionsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
73 {
74  mooseDeprecated("use registerAll instead of associateSyntax");
75  Registry::registerActionsTo(action_factory, {"ChemicalReactionsApp"});
76  associateSyntaxInner(syntax, action_factory);
77 }
78 
79 void
81 {
82  mooseDeprecated("use registerAll instead of registerExecFlags");
83 }
84 
85 extern "C" void
86 ChemicalReactionsApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
87 {
89 }
90 
91 // External entry point for dynamic application loading
92 extern "C" void
94 {
96 }
ChemicalReactionsApp::~ChemicalReactionsApp
virtual ~ChemicalReactionsApp()
Definition: ChemicalReactionsApp.C:37
validParams< ChemicalReactionsApp >
InputParameters validParams< ChemicalReactionsApp >()
Definition: ChemicalReactionsApp.C:17
ChemicalReactionsApp::ChemicalReactionsApp
ChemicalReactionsApp(const InputParameters &parameters)
Definition: ChemicalReactionsApp.C:31
registerKnownLabel
registerKnownLabel("ChemicalReactionsApp")
ChemicalReactionsApp__registerAll
void ChemicalReactionsApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ChemicalReactionsApp.C:86
ChemicalReactionsApp
Definition: ChemicalReactionsApp.h:19
ChemicalReactionsApp::registerApps
static void registerApps()
Definition: ChemicalReactionsApp.C:59
ChemicalReactionsApp.h
ChemicalReactionsApp__registerApps
void ChemicalReactionsApp__registerApps()
Definition: ChemicalReactionsApp.C:93
ChemicalReactionsApp::registerExecFlags
static void registerExecFlags(Factory &factory)
Definition: ChemicalReactionsApp.C:80
associateSyntaxInner
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
Definition: ChemicalReactionsApp.C:40
ChemicalReactionsApp::registerAll
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ChemicalReactionsApp.C:51
ChemicalReactionsApp::associateSyntax
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ChemicalReactionsApp.C:72
ChemicalReactionsApp::registerObjects
static void registerObjects(Factory &factory)
Definition: ChemicalReactionsApp.C:65