www.mooseframework.org
RichardsApp.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 "RichardsApp.h"
11 #include "Moose.h"
12 #include "AppFactory.h"
13 #include "MooseSyntax.h"
14 
17 {
19 
20  params.set<bool>("automatic_automatic_scaling") = false;
21  params.set<bool>("use_legacy_material_output") = false;
22 
23  return params;
24 }
25 
26 registerKnownLabel("RichardsApp");
27 
28 RichardsApp::RichardsApp(const InputParameters & parameters) : MooseApp(parameters)
29 {
30  mooseDeprecated("Please use the PorousFlow module instead. If Richards contains functionality "
31  "not included in PorousFlow, please contact the moose-users google group");
33 }
34 
36 
37 static void
38 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
39 {
40  registerSyntaxTask("Q2PAction", "Q2P", "add_kernel");
41  registerSyntaxTask("Q2PAction", "Q2P", "add_aux_variable");
42  registerSyntaxTask("Q2PAction", "Q2P", "add_function");
43  registerSyntaxTask("Q2PAction", "Q2P", "add_postprocessor");
44 }
45 void
47 {
48  Registry::registerObjectsTo(f, {"RichardsApp"});
49  Registry::registerActionsTo(af, {"RichardsApp"});
50  associateSyntaxInner(s, af);
51 }
52 
53 void
55 {
56  registerApp(RichardsApp);
57 }
58 
59 void
61 {
62  mooseDeprecated("use registerAll instead of registerObjects");
63  Registry::registerObjectsTo(factory, {"RichardsApp"});
64 }
65 
66 void
68 {
69  mooseDeprecated("use registerAll instead of associateSyntax");
70  Registry::registerActionsTo(action_factory, {"RichardsApp"});
71  associateSyntaxInner(syntax, action_factory);
72 }
73 
74 void
76 {
77  mooseDeprecated("Do not use registerExecFlags, apps no longer require flag registration");
78 }
static InputParameters validParams()
Definition: RichardsApp.C:16
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()
RichardsApp(const InputParameters &parameters)
Definition: RichardsApp.C:28
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
Real f(Real x)
Test function for Brents method.
static void registerObjects(Factory &factory)
Definition: RichardsApp.C:60
ActionFactory _action_factory
static void registerApps()
Definition: RichardsApp.C:54
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RichardsApp.C:46
void mooseDeprecated(Args &&... args)
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
Definition: RichardsApp.C:38
registerKnownLabel("RichardsApp")
Factory _factory
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RichardsApp.C:67
static void registerExecFlags(Factory &factory)
Definition: RichardsApp.C:75
The Richards equation is a nonlinear diffusion equation that models multiphase flow through porous ma...
Definition: RichardsApp.h:19
virtual ~RichardsApp()
Definition: RichardsApp.C:35