Line data Source code
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 "ContactApp.h" 11 : #include "SolidMechanicsApp.h" 12 : #include "Moose.h" 13 : #include "AppFactory.h" 14 : #include "MooseSyntax.h" 15 : 16 : InputParameters 17 2140 : ContactApp::validParams() 18 : { 19 2140 : InputParameters params = MooseApp::validParams(); 20 : 21 2140 : params.set<bool>("automatic_automatic_scaling") = false; 22 2140 : params.set<bool>("use_legacy_material_output") = false; 23 2140 : params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false; 24 : 25 2140 : return params; 26 0 : } 27 : 28 : registerKnownLabel("ContactApp"); 29 : 30 0 : ContactApp::ContactApp(const InputParameters & parameters) : MooseApp(parameters) 31 : { 32 0 : ContactApp::registerAll(_factory, _action_factory, _syntax); 33 0 : } 34 : 35 0 : ContactApp::~ContactApp() {} 36 : 37 : void 38 2142 : ContactApp::registerAll(Factory & f, ActionFactory & af, Syntax & syntax) 39 : { 40 2142 : Registry::registerObjectsTo(f, {"ContactApp"}); 41 2142 : Registry::registerActionsTo(af, {"ContactApp"}); 42 : 43 4284 : registerSyntax("ContactAction", "Contact/*"); 44 4284 : registerSyntax("ExplicitDynamicsContactAction", "ExplicitDynamicsContact/*"); 45 : 46 2142 : registerTask("output_penetration_info_vars", false); 47 2142 : registerTask("add_contact_aux_variable", false); 48 4284 : syntax.addDependency("output_penetration_info_vars", "add_output"); 49 4284 : syntax.addDependency("add_postprocessor", "output_penetration_info_vars"); 50 4284 : syntax.addDependency("add_contact_aux_variable", "add_variable"); 51 4284 : syntax.addDependency("setup_variable_complete", "add_contact_aux_variable"); 52 : 53 2142 : SolidMechanicsApp::registerAll(f, af, syntax); 54 2142 : } 55 : 56 : void 57 2142 : ContactApp::registerApps() 58 : { 59 2142 : registerApp(ContactApp); 60 : 61 2142 : SolidMechanicsApp::registerApps(); 62 2142 : } 63 : 64 : extern "C" void 65 0 : ContactApp__registerAll(Factory & f, ActionFactory & af, Syntax & s) 66 : { 67 0 : ContactApp::registerAll(f, af, s); 68 0 : } 69 : extern "C" void 70 0 : ContactApp__registerApps() 71 : { 72 0 : ContactApp::registerApps(); 73 0 : }