www.mooseframework.org
TensorMechanicsApp.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 "TensorMechanicsApp.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  return params;
21 }
22 
23 registerKnownLabel("TensorMechanicsApp");
24 
25 TensorMechanicsApp::TensorMechanicsApp(const InputParameters & parameters) : MooseApp(parameters)
26 {
27  TensorMechanicsApp::registerAll(_factory, _action_factory, _syntax);
28 }
29 
31 
32 static void
33 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
34 {
35  registerSyntax("EmptyAction", "BCs/CavityPressure");
36  registerSyntax("CavityPressureAction", "BCs/CavityPressure/*");
37  registerSyntax("CavityPressurePPAction", "BCs/CavityPressure/*");
38  registerSyntax("CavityPressureUOAction", "BCs/CavityPressure/*");
39 
40  registerSyntax("LegacyTensorMechanicsAction", "Kernels/TensorMechanics");
41  registerSyntax("DynamicTensorMechanicsAction", "Kernels/DynamicTensorMechanics");
42  registerSyntax("PoroMechanicsAction", "Kernels/PoroMechanics");
43 
44  registerSyntax("EmptyAction", "BCs/Pressure");
45  registerSyntax("PressureAction", "BCs/Pressure/*");
46  registerSyntax("EmptyAction", "BCs/InclinedNoDisplacementBC");
47  registerSyntax("InclinedNoDisplacementBCAction", "BCs/InclinedNoDisplacementBC/*");
48  registerSyntax("EmptyAction", "BCs/CoupledPressure");
49  registerSyntax("CoupledPressureAction", "BCs/CoupledPressure/*");
50 
51  registerSyntax("GeneralizedPlaneStrainAction",
52  "Modules/TensorMechanics/GeneralizedPlaneStrain/*");
53  registerSyntax("GlobalStrainAction", "Modules/TensorMechanics/GlobalStrain/*");
54  registerSyntax("CommonTensorMechanicsAction", "Modules/TensorMechanics/Master");
55  registerSyntax("TensorMechanicsAction", "Modules/TensorMechanics/Master/*");
56 
57  registerSyntax("CommonLineElementAction", "Modules/TensorMechanics/LineElementMaster");
58  registerSyntax("LineElementAction", "Modules/TensorMechanics/LineElementMaster/*");
59 
60  registerSyntaxTask("DomainIntegralAction", "DomainIntegral", "add_user_object");
61  registerSyntaxTask("DomainIntegralAction", "DomainIntegral", "add_aux_variable");
62  registerSyntaxTask("DomainIntegralAction", "DomainIntegral", "add_aux_kernel");
63  registerSyntaxTask("DomainIntegralAction", "DomainIntegral", "add_postprocessor");
64  registerSyntaxTask("DomainIntegralAction", "DomainIntegral", "add_vector_postprocessor");
65  registerSyntaxTask("DomainIntegralAction", "DomainIntegral", "add_material");
66 
67  registerTask("validate_coordinate_systems", /*is_required=*/false);
68  addTaskDependency("validate_coordinate_systems", "create_problem_complete");
69 }
70 
71 void
72 TensorMechanicsApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
73 {
74  Registry::registerObjectsTo(f, {"TensorMechanicsApp"});
75  Registry::registerActionsTo(af, {"TensorMechanicsApp"});
76  associateSyntaxInner(s, af);
77 }
78 
79 void
81 {
82  registerApp(TensorMechanicsApp);
83 }
84 
85 void
87 {
88  mooseDeprecated("use registerAll instead of registerObjects");
89  Registry::registerObjectsTo(factory, {"TensorMechanicsApp"});
90 }
91 
92 void
93 TensorMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
94 {
95  mooseDeprecated("use registerAll instead of associateSyntax");
96  Registry::registerActionsTo(action_factory, {"TensorMechanicsApp"});
97  associateSyntaxInner(syntax, action_factory);
98 }
99 
100 void
102 {
103  mooseDeprecated("use registerAll instead of registerExecFlags");
104 }
105 
106 extern "C" void
107 TensorMechanicsApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
108 {
110 }
111 extern "C" void
113 {
115 }
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
void TensorMechanicsApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
InputParameters validParams< TensorMechanicsApp >()
TensorMechanicsApp(const InputParameters &parameters)
void TensorMechanicsApp_registerApps()
static void registerObjects(Factory &factory)
static void registerExecFlags(Factory &factory)
static void registerApps()
registerKnownLabel("TensorMechanicsApp")
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)