Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
ChemicalReactionsApp.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 "ChemicalReactionsApp.h"
11 #include "Moose.h"
12 #include "AppFactory.h"
13 #include "MooseSyntax.h"
14 #include "Capabilities.h"
15 
18 {
20 
21  params.set<bool>("automatic_automatic_scaling") = false;
22  params.set<bool>("use_legacy_material_output") = false;
23  params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
24 
25  return params;
26 }
27 
28 registerKnownLabel("ChemicalReactionsApp");
29 
31  : MooseApp(parameters)
32 {
34 }
35 
37 
38 static void
39 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
40 {
41  registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
42  registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
43  registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
44  registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
45  registerSyntax("AddCoupledEqSpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
46  registerSyntax("AddCoupledSolidKinSpeciesAction", "ReactionNetwork/SolidKineticReactions");
47  registerSyntax("CommonChemicalCompositionAction", "ChemicalComposition");
48  registerSyntax("ChemicalCompositionAction", "ChemicalComposition/*");
49 }
50 
51 void
53 {
54  Registry::registerObjectsTo(f, {"ChemicalReactionsApp"});
55  Registry::registerActionsTo(af, {"ChemicalReactionsApp"});
56  associateSyntaxInner(s, af);
57 }
58 
59 void
61 {
62  const std::string doc = "Thermochimica Gibbs energy minimization library support ";
63 #ifdef THERMOCHIMICA_ENABLED
64  addCapability("thermochimica", true, doc + "is available.");
65 #else
66  addCapability("thermochimica", false, doc + "is not available.");
67 #endif
68 
69  registerApp(ChemicalReactionsApp);
70 }
71 
72 void
74 {
75  mooseDeprecated("use registerAll instead of registerObjects");
76  Registry::registerObjectsTo(factory, {"ChemicalReactionsApp"});
77 }
78 
79 void
81 {
82  mooseDeprecated("use registerAll instead of associateSyntax");
83  Registry::registerActionsTo(action_factory, {"ChemicalReactionsApp"});
84  associateSyntaxInner(syntax, action_factory);
85 }
86 
87 void
89 {
90  mooseDeprecated("Do not use registerExecFlags, apps no longer require flag registration");
91 }
92 
93 extern "C" void
95 {
97 }
98 
99 // External entry point for dynamic application loading
100 extern "C" void
102 {
104 }
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 addCapability(const std::string &capability, CapabilityUtils::Type value, const std::string &doc)
static void registerExecFlags(Factory &factory)
ChemicalReactionsApp(const InputParameters &parameters)