www.mooseframework.org
ContactApp.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 "ContactApp.h"
11 #include "Moose.h"
12 #include "AppFactory.h"
13 #include "MooseSyntax.h"
14 
15 template <>
16 InputParameters
18 {
19  InputParameters params = validParams<MooseApp>();
20 
21  params.set<bool>("automatic_automatic_scaling") = false;
22 
23  // Do not use legacy DirichletBC, that is, set DirichletBC default for preset = true
24  params.set<bool>("use_legacy_dirichlet_bc") = false;
25 
26  return params;
27 }
28 
29 registerKnownLabel("ContactApp");
30 
31 ContactApp::ContactApp(const InputParameters & parameters) : MooseApp(parameters)
32 {
33  ContactApp::registerAll(_factory, _action_factory, _syntax);
34 }
35 
37 
38 static void
39 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
40 {
41  registerSyntax("ContactAction", "Contact/*");
42 
43  registerSyntax("ContactPenetrationAuxAction", "Contact/*");
44  registerSyntax("ContactPenetrationVarAction", "Contact/*");
45 
46  registerSyntax("ContactPressureAuxAction", "Contact/*");
47  registerSyntax("ContactPressureVarAction", "Contact/*");
48 
49  registerSyntax("NodalAreaAction", "Contact/*");
50  registerSyntax("NodalAreaVarAction", "Contact/*");
51 
52  registerTask("output_penetration_info_vars", false);
53  syntax.addDependency("output_penetration_info_vars", "add_output");
54 }
55 
56 void
57 ContactApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
58 {
59  Registry::registerObjectsTo(f, {"ContactApp"});
60  Registry::registerActionsTo(af, {"ContactApp"});
61  associateSyntaxInner(s, af);
62 }
63 
64 void
66 {
67  registerApp(ContactApp);
68 }
69 
70 void
71 ContactApp::registerObjects(Factory & factory)
72 {
73  mooseDeprecated("use registerAll instead of registerObjects");
74  Registry::registerObjectsTo(factory, {"ContactApp"});
75 }
76 
77 void
78 ContactApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
79 {
80  mooseDeprecated("use registerAll instead of associateSyntax");
81  Registry::registerActionsTo(action_factory, {"ContactApp"});
82  associateSyntaxInner(syntax, action_factory);
83 }
84 
85 void
86 ContactApp::registerExecFlags(Factory & /*factory*/)
87 {
88 }
89 
90 extern "C" void
91 ContactApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
92 {
93  ContactApp::registerAll(f, af, s);
94 }
95 extern "C" void
97 {
99 }
ContactApp__registerAll
void ContactApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ContactApp.C:91
registerKnownLabel
registerKnownLabel("ContactApp")
ContactApp::ContactApp
ContactApp(const InputParameters &parameters)
Definition: ContactApp.C:31
ContactApp::associateSyntax
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ContactApp.C:78
ContactApp.h
validParams< ContactApp >
InputParameters validParams< ContactApp >()
Definition: ContactApp.C:17
ContactApp::registerApps
static void registerApps()
Definition: ContactApp.C:65
associateSyntaxInner
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
Definition: ContactApp.C:39
ContactApp
Definition: ContactApp.h:19
ContactApp::registerAll
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ContactApp.C:57
ContactApp__registerApps
void ContactApp__registerApps()
Definition: ContactApp.C:96
ContactApp::registerExecFlags
static void registerExecFlags(Factory &factory)
Definition: ContactApp.C:86
ContactApp::~ContactApp
virtual ~ContactApp()
Definition: ContactApp.C:36
ContactApp::registerObjects
static void registerObjects(Factory &factory)
Definition: ContactApp.C:71