https://mooseframework.inl.gov
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 void
40 {
41  Registry::registerObjectsTo(f, {"ChemicalReactionsApp"});
42  Registry::registerActionsTo(af, {"ChemicalReactionsApp"});
43 
44  registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
45  registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
46  registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
47  registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
48  registerSyntax("AddCoupledEqSpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
49  registerSyntax("AddCoupledSolidKinSpeciesAction", "ReactionNetwork/SolidKineticReactions");
50  registerSyntax("CommonChemicalCompositionAction", "ChemicalComposition");
51  registerSyntax("ChemicalCompositionAction", "ChemicalComposition/*");
52 }
53 
54 void
56 {
57  const std::string doc = "Thermochimica Gibbs energy minimization library support ";
58 #ifdef THERMOCHIMICA_ENABLED
59  addCapability("thermochimica", true, doc + "is available.");
60 #else
61  addCapability("thermochimica", false, doc + "is not available.");
62 #endif
63 
64  registerApp(ChemicalReactionsApp);
65 }
66 
67 extern "C" void
69 {
71 }
72 
73 // External entry point for dynamic application loading
74 extern "C" void
76 {
78 }
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
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
registerKnownLabel("ChemicalReactionsApp")
void ChemicalReactionsApp__registerApps()
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)
ChemicalReactionsApp(const InputParameters &parameters)