www.mooseframework.org
FluidPropertiesApp.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 "FluidPropertiesApp.h"
11 #include "Moose.h"
12 #include "AppFactory.h"
13 #include "MooseSyntax.h"
14 
17 {
19  params.set<bool>("use_legacy_material_output") = false;
20  params.set<bool>("use_legacy_initial_residual_evaluation_bahavior") = false;
21  return params;
22 }
23 
24 registerKnownLabel("FluidPropertiesApp");
25 
27 {
29 }
30 
32 
33 void
35 {
36  registerApp(FluidPropertiesApp);
37 }
38 
39 static void
40 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
41 {
42  registerSyntaxTask(
43  "AddFluidPropertiesDeprecatedAction", "Modules/FluidProperties/*", "add_fluid_properties");
44  registerSyntaxTask("AddFluidPropertiesAction", "FluidProperties/*", "add_fluid_properties");
45  registerMooseObjectTask("add_fluid_properties", FluidProperties, false);
46  registerMooseObjectTask("add_fp_output", Output, false);
47 
48  syntax.addDependency("add_fluid_properties", "init_displaced_problem");
49  syntax.addDependency("add_aux_variable", "add_fluid_properties");
50  syntax.addDependency("add_variable", "add_fluid_properties");
51  syntax.addDependency("add_elemental_field_variable", "add_fluid_properties");
52  syntax.addDependency("add_external_aux_variables", "add_fluid_properties");
53  syntax.addDependency("add_fp_output", "add_output");
54  syntax.addDependency("add_postprocessor", "add_fp_output");
55 
56  syntax.registerActionSyntax("AddFluidPropertiesInterrogatorAction",
57  "FluidPropertiesInterrogator");
58 }
59 
60 void
62 {
63  Registry::registerObjectsTo(f, {"FluidPropertiesApp"});
64  Registry::registerActionsTo(af, {"FluidPropertiesApp"});
65  associateSyntaxInner(s, af);
66 }
67 
68 void
70 {
71  mooseDeprecated("use registerAll instead of registerObjects");
72  Registry::registerObjectsTo(factory, {"FluidPropertiesApp"});
73 }
74 
75 void
77 {
78  mooseDeprecated("use registerAll instead of associateSyntax");
79  Registry::registerActionsTo(action_factory, {"FluidPropertiesApp"});
80  associateSyntaxInner(syntax, action_factory);
81 }
82 
83 void
85 {
86  mooseDeprecated("Do not use registerExecFlags, apps no longer require flag registration");
87 }
88 
89 extern "C" void
91 {
93 }
94 extern "C" void
96 {
98 }
static void registerApps()
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
registerKnownLabel("FluidPropertiesApp")
static void registerExecFlags(Factory &factory)
FluidPropertiesApp(InputParameters parameters)
void addDependency(const std::string &task, const std::string &pre_req)
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.
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
ActionFactory _action_factory
void mooseDeprecated(Args &&... args)
Factory _factory
void FluidPropertiesApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static InputParameters validParams()