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 
17 {
19 
20  params.set<bool>("automatic_automatic_scaling") = false;
21  params.set<bool>("use_legacy_material_output") = false;
22 
23  return params;
24 }
25 
26 registerKnownLabel("ChemicalReactionsApp");
27 
29  : MooseApp(parameters)
30 {
32 }
33 
35 
36 static void
37 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
38 {
39  registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
40  registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
41  registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
42  registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
43  registerSyntax("AddCoupledEqSpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
44  registerSyntax("AddCoupledSolidKinSpeciesAction", "ReactionNetwork/SolidKineticReactions");
45  registerSyntax("CommonChemicalCompositionAction", "ChemicalComposition");
46  registerSyntax("ChemicalCompositionAction", "ChemicalComposition/*");
47 }
48 
49 void
51 {
52  Registry::registerObjectsTo(f, {"ChemicalReactionsApp"});
53  Registry::registerActionsTo(af, {"ChemicalReactionsApp"});
54  associateSyntaxInner(s, af);
55 }
56 
57 void
59 {
60  registerApp(ChemicalReactionsApp);
61 }
62 
63 void
65 {
66  mooseDeprecated("use registerAll instead of registerObjects");
67  Registry::registerObjectsTo(factory, {"ChemicalReactionsApp"});
68 }
69 
70 void
72 {
73  mooseDeprecated("use registerAll instead of associateSyntax");
74  Registry::registerActionsTo(action_factory, {"ChemicalReactionsApp"});
75  associateSyntaxInner(syntax, action_factory);
76 }
77 
78 void
80 {
81  mooseDeprecated("Do not use registerExecFlags, apps no longer require flag registration");
82 }
83 
84 extern "C" void
86 {
88 }
89 
90 // External entry point for dynamic application loading
91 extern "C" void
93 {
95 }
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
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()
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
void mooseDeprecated(Args &&... args)
static void registerObjects(Factory &factory)
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
registerKnownLabel("ChemicalReactionsApp")
void ChemicalReactionsApp__registerApps()
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static InputParameters validParams()
Factory _factory
void ChemicalReactionsApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerExecFlags(Factory &factory)
ChemicalReactionsApp(const InputParameters &parameters)