https://mooseframework.inl.gov
FluidPropertiesApp.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 "FluidPropertiesApp.h"
11 #include "Moose.h"
12 #include "AppFactory.h"
13 #include "MooseSyntax.h"
14 #include "MiscApp.h"
15 
16 #ifdef AIR_FP_ENABLED
17 #include "AirApp.h"
18 #endif
19 #ifdef CARBON_DIOXIDE_FP_ENABLED
20 #include "CarbonDioxideApp.h"
21 #endif
22 #ifdef HELIUM_FP_ENABLED
23 #include "HeliumApp.h"
24 #endif
25 #ifdef NITROGEN_FP_ENABLED
26 #include "NitrogenApp.h"
27 #endif
28 #ifdef POTASSIUM_FP_ENABLED
29 #include "PotassiumApp.h"
30 #endif
31 #ifdef SODIUM_FP_ENABLED
32 #include "SodiumApp.h"
33 #endif
34 
37 {
39  params.set<bool>("use_legacy_material_output") = false;
40  params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
41  return params;
42 }
43 
44 registerKnownLabel("FluidPropertiesApp");
45 
47 {
49 }
50 
52 
53 void
55 {
56  const std::string doc = "Saline thermophysical fluid properties ";
57 #ifdef SALINE_ENABLED
58  addBoolCapability("saline", true, doc + "are available.");
59 #else
60  addBoolCapability("saline", false, doc + "are not available.");
61 #endif
62 
63  registerApp(FluidPropertiesApp);
65 #ifdef AIR_FP_ENABLED
66  registerApp(AirApp);
67 #endif
68 #ifdef CARBON_DIOXIDE_FP_ENABLED
69  registerApp(CarbonDioxideApp);
70 #endif
71 #ifdef HELIUM_FP_ENABLED
72  registerApp(HeliumApp);
73 #endif
74 #ifdef NITROGEN_FP_ENABLED
75  registerApp(NitrogenApp);
76 #endif
77 #ifdef POTASSIUM_FP_ENABLED
78  registerApp(PotassiumApp);
79 #endif
80 #ifdef SODIUM_FP_ENABLED
81  registerApp(SodiumApp);
82 #endif
83 }
84 
85 void
87 {
88 #ifdef AIR_FP_ENABLED
89  AirApp::registerAll(f, af, syntax);
90 #endif
91 #ifdef CARBON_DIOXIDE_FP_ENABLED
92  CarbonDioxideApp::registerAll(f, af, syntax);
93 #endif
94 #ifdef HELIUM_FP_ENABLED
95  HeliumApp::registerAll(f, af, syntax);
96 #endif
97 #ifdef NITROGEN_FP_ENABLED
98  NitrogenApp::registerAll(f, af, syntax);
99 #endif
100 #ifdef POTASSIUM_FP_ENABLED
101  PotassiumApp::registerAll(f, af, syntax);
102 #endif
103 #ifdef SODIUM_FP_ENABLED
104  SodiumApp::registerAll(f, af, syntax);
105 #endif
106 
108 
109  Registry::registerObjectsTo(f, {"FluidPropertiesApp"});
110  Registry::registerActionsTo(af, {"FluidPropertiesApp"});
111 
112  registerSyntaxTask(
113  "AddFluidPropertiesDeprecatedAction", "Modules/FluidProperties/*", "add_fluid_properties");
114  registerSyntaxTask("AddFluidPropertiesAction", "FluidProperties/*", "add_fluid_properties");
115  registerMooseObjectTask("add_fluid_properties", FluidProperties, false);
116  registerMooseObjectTask("add_fp_output", Output, false);
117 
118  // Fluid properties depend on variables
119  syntax.addDependency("add_aux_variable", "add_fluid_properties");
120  syntax.addDependency("add_variable", "add_fluid_properties");
121  syntax.addDependency("add_elemental_field_variable", "add_fluid_properties");
122  syntax.addDependency("add_external_aux_variables", "add_fluid_properties");
123  syntax.addDependency("add_fp_output", "add_output");
124  syntax.addDependency("add_postprocessor", "add_fp_output");
125 
126  syntax.registerActionSyntax("AddFluidPropertiesInterrogatorAction",
127  "FluidPropertiesInterrogator");
128 }
129 
130 extern "C" void
132 {
134 }
135 extern "C" void
137 {
139 }
static void registerApps()
registerKnownLabel("FluidPropertiesApp")
void addDependency(const std::string &task, const std::string &pre_req)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: MiscApp.C:36
T & set(const std::string &name, bool quiet_mode=false)
void registerActionSyntax(const std::string &action, const std::string &syntax, const std::string &task="", const std::string &file="", int line=-1)
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)
void FluidPropertiesApp__registerApps()
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
static void registerApps()
Definition: MiscApp.C:43
FluidPropertiesApp(const InputParameters &parameters)
static Moose::Capability & addBoolCapability(const std::string_view capability, const bool value, const std::string_view doc)
Factory _factory
void FluidPropertiesApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static InputParameters validParams()