https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PorousFlowApp.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 "PorousFlowApp.h"
11#include "Moose.h"
12#include "SolidMechanicsApp.h"
13#include "AppFactory.h"
14#include "MooseSyntax.h"
15#include "FluidPropertiesApp.h"
17
20{
22
23 params.set<bool>("automatic_automatic_scaling") = false;
24 params.set<bool>("use_legacy_material_output") = false;
25 params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
26
27 return params;
28}
29
30registerKnownLabel("PorousFlowApp");
31
36
38
39void
48
49void
51{
55 Registry::registerObjectsTo(f, {"PorousFlowApp"});
56 Registry::registerActionsTo(af, {"PorousFlowApp"});
57
58 registerSyntax("CoupledInjectionProductionPhysics", "Physics/CoupledInjectionProduction/*");
59
60 registerSyntaxTask("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_user_object");
61 registerSyntaxTask("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_kernel");
62 registerSyntaxTask("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_material");
63 registerSyntaxTask("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_aux_variable");
64 registerSyntaxTask("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_aux_kernel");
65
66 registerSyntaxTask("PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_user_object");
67 registerSyntaxTask("PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_kernel");
68 registerSyntaxTask("PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_material");
69 registerSyntaxTask("PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_aux_variable");
70 registerSyntaxTask("PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_aux_kernel");
71
72 registerSyntaxTask("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_user_object");
73 registerSyntaxTask("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_kernel");
74 registerSyntaxTask("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_material");
75 registerSyntaxTask("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_aux_variable");
76 registerSyntaxTask("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_aux_kernel");
77
78 syntax.registerActionSyntax("PorousFlowAddBCAction", "Modules/PorousFlow/BCs/*");
79
80 registerMooseObjectTask("add_porous_flow_bc", PorousFlowSinkBC, false);
81 addTaskDependency("add_porous_flow_bc", "add_bc");
82 addTaskDependency("resolve_optional_materials", "add_porous_flow_bc");
83
84 // Task dependency and syntax for action to automatically add PorousFlow materials
85 registerSyntax("PorousFlowAddMaterialAction", "Materials");
86
87 // Task dependency and syntax for action to automatically add PorousFlowJoiner materials
88 registerTask("add_joiners", /*is_required=*/false);
89 addTaskDependency("add_joiners", "add_material");
90 addTaskDependency("add_master_action_material", "add_joiners");
91
92 registerSyntaxTask("PorousFlowAddMaterialJoiner", "Materials", "add_joiners");
93}
94
95extern "C" void
100extern "C" void
Real f(Real x)
Test function for Brents method.
registerKnownLabel("PorousFlowApp")
void PorousFlowApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
void PorousFlowApp__registerApps()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
T & set(const std::string &name, bool quiet_mode=false)
Syntax & syntax()
ActionFactory _action_factory
static InputParameters validParams()
Factory _factory
Syntax _syntax
static void registerApps()
virtual ~PorousFlowApp()
PorousFlowApp(const InputParameters &parameters)
static InputParameters validParams()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Surrogate BC object for setting up enthalphy injection BC.
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
void registerActionSyntax(const std::string &action, const std::string &syntax, const std::string &task="", const std::string &file="", int line=-1)