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 "SolidMechanicsApp.h"
12 #include "Moose.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
18 {
20 
21  params.set<bool>("automatic_automatic_scaling") = false;
22  params.set<bool>("use_legacy_material_output") = false;
23  params.set<bool>("use_legacy_initial_residual_evaluation_bahavior") = false;
24 
25  return params;
26 }
27 
28 registerKnownLabel("ContactApp");
29 
30 ContactApp::ContactApp(const InputParameters & parameters) : MooseApp(parameters)
31 {
33 }
34 
36 
37 static void
38 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
39 {
40  registerSyntax("ContactAction", "Contact/*");
41  registerSyntax("ExplicitDynamicsContactAction", "ExplicitDynamicsContact/*");
42 
43  registerTask("output_penetration_info_vars", false);
44  registerTask("add_contact_aux_variable", false);
45  syntax.addDependency("output_penetration_info_vars", "add_output");
46  syntax.addDependency("add_postprocessor", "output_penetration_info_vars");
47  syntax.addDependency("add_contact_aux_variable", "add_variable");
48  syntax.addDependency("setup_variable_complete", "add_contact_aux_variable");
49 }
50 
51 void
53 {
54  Registry::registerObjectsTo(f, {"ContactApp"});
55  Registry::registerActionsTo(af, {"ContactApp"});
56  associateSyntaxInner(s, af);
57 
59 }
60 
61 void
63 {
64  registerApp(ContactApp);
65 
67 }
68 
69 void
71 {
72  mooseDeprecated("use registerAll instead of registerObjects");
73  Registry::registerObjectsTo(factory, {"ContactApp"});
74 }
75 
76 void
78 {
79  mooseDeprecated("use registerAll instead of associateSyntax");
80  Registry::registerActionsTo(action_factory, {"ContactApp"});
81  associateSyntaxInner(syntax, action_factory);
82 }
83 
84 void
86 {
87  mooseDeprecated("use registerAll instead of registerObjectsDepends");
89 }
90 
91 void
93 {
94  mooseDeprecated("use registerAll instead of registerObjectsDepends");
96 }
97 
98 extern "C" void
100 {
101  ContactApp::registerAll(f, af, s);
102 }
103 extern "C" void
105 {
107 }
void ContactApp__registerApps()
Definition: ContactApp.C:104
void addDependency(const std::string &task, const std::string &pre_req)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static InputParameters validParams()
Definition: ContactApp.C:17
T & set(const std::string &name, bool quiet_mode=false)
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
static void associateSyntaxDepends(Syntax &syntax, ActionFactory &action_factory)
Definition: ContactApp.C:92
static void registerApps()
Syntax _syntax
Syntax & syntax()
static void registerObjects(Factory &factory)
Definition: ContactApp.C:70
static InputParameters validParams()
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ContactApp.C:77
static void registerObjects(Factory &factory)
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
virtual ~ContactApp()
Definition: ContactApp.C:35
void mooseDeprecated(Args &&... args)
registerKnownLabel("ContactApp")
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Factory _factory
static void registerApps()
Definition: ContactApp.C:62
ContactApp(const InputParameters &parameters)
Definition: ContactApp.C:30
void ContactApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ContactApp.C:99
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
Definition: ContactApp.C:38
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ContactApp.C:52
static void registerObjectDepends(Factory &factory)
Definition: ContactApp.C:85