19 params.set<
bool>(
"automatic_automatic_scaling") =
false;
20 params.set<
bool>(
"use_legacy_material_output") =
false;
21 params.set<
bool>(
"use_legacy_initial_residual_evaluation_bahavior") =
false;
22 params.addCommandLineParam<
bool>(
"parse_neml2_only",
25 "Executes the [NEML2] block in the input file and terminate.");
43 if (getParam<bool>(
"parse_neml2_only"))
56 if (getParam<bool>(
"parse_neml2_only"))
63 registerSyntax(
"EmptyAction",
"BCs/CavityPressure");
64 registerSyntax(
"CavityPressureAction",
"BCs/CavityPressure/*");
65 registerSyntax(
"CavityPressurePPAction",
"BCs/CavityPressure/*");
66 registerSyntax(
"CavityPressureUOAction",
"BCs/CavityPressure/*");
68 registerDeprecatedSyntax(
"LegacyTensorMechanicsAction",
69 "Kernels/TensorMechanics",
70 "The 'Kernels/TensorMechanics' syntax is deprecated. Please use " 71 "'Physics/SolidMechanics/QuasiStatic' instead.");
72 registerDeprecatedSyntax(
"LegacyDynamicTensorMechanicsAction",
73 "Kernels/DynamicTensorMechanics",
74 "The 'Kernels/DynamicTensorMechanics' syntax is deprecated. Please use " 75 "'Physics/SolidMechanics/Dynamic' instead.");
77 registerDeprecatedSyntax(
"LegacyTensorMechanicsAction",
78 "Kernels/SolidMechanics",
79 "The 'Kernels/SolidMechanics' syntax is deprecated. Please use " 80 "'Physics/SolidMechanics/QuasiStatic' instead.");
81 registerDeprecatedSyntax(
"LegacyDynamicTensorMechanicsAction",
82 "Kernels/DynamicSolidMechanics",
83 "The 'Kernels/DynamicSolidMechanics' syntax is deprecated. Please use " 84 "'Physics/SolidMechanics/Dynamic' instead.");
85 registerSyntax(
"PoroMechanicsAction",
"Kernels/PoroMechanics");
87 registerSyntax(
"EmptyAction",
"BCs/Pressure");
88 registerSyntax(
"PressureAction",
"BCs/Pressure/*");
89 registerSyntax(
"EmptyAction",
"BCs/InclinedNoDisplacementBC");
90 registerSyntax(
"InclinedNoDisplacementBCAction",
"BCs/InclinedNoDisplacementBC/*");
91 registerSyntax(
"EmptyAction",
"BCs/CoupledPressure");
92 registerSyntax(
"CoupledPressureAction",
"BCs/CoupledPressure/*");
95 registerDeprecatedSyntax(
"GeneralizedPlaneStrainAction",
96 "Modules/TensorMechanics/GeneralizedPlaneStrain/*",
97 "The 'Modules/TensorMechanics' syntax is deprecated. Please use " 98 "'Physics/SolidMechanics' instead.");
99 registerDeprecatedSyntax(
"GlobalStrainAction",
100 "Modules/TensorMechanics/GlobalStrain/*",
101 "The 'Modules/TensorMechanics' syntax is deprecated. Please use " 102 "'Physics/SolidMechanics' instead.");
103 registerDeprecatedSyntax(
"CommonSolidMechanicsAction",
104 "Modules/TensorMechanics/Master",
105 "The 'Modules/TensorMechanics/Master' syntax is deprecated. Please use " 106 "'Physics/SolidMechanics/QuasiStatic' instead.");
107 registerDeprecatedSyntax(
108 "CommonSolidMechanicsAction",
109 "Modules/TensorMechanics/DynamicMaster",
110 "The 'Modules/TensorMechanics/DynamicMaster' syntax is deprecated. Please use " 111 "'Physics/SolidMechanics/Dynamic' instead.");
112 registerDeprecatedSyntax(
"QuasiStaticSolidMechanicsPhysics",
113 "Modules/TensorMechanics/Master/*",
114 "The 'Modules/TensorMechanics/Master' syntax is deprecated. Please use " 115 "'Physics/SolidMechanics/QuasiStatic' instead.");
116 registerDeprecatedSyntax(
117 "DynamicSolidMechanicsPhysics",
118 "Modules/TensorMechanics/DynamicMaster/*",
119 "The 'Modules/TensorMechanics/DynamicMaster' syntax is deprecated. Please use " 120 "'Physics/SolidMechanics/Dynamic' instead.");
122 registerDeprecatedSyntax(
123 "CommonLineElementAction",
124 "Modules/TensorMechanics/LineElementMaster",
125 "The 'Modules/TensorMechanics/LineElementMaster' syntax is deprecated. Please use " 126 "'Physics/SolidMechanics/LineElement/QuasiStatic' instead.");
127 registerDeprecatedSyntax(
129 "Modules/TensorMechanics/LineElementMaster/*",
130 "The 'Modules/TensorMechanics/LineElementMaster' syntax is deprecated. Please use " 131 "'Physics/SolidMechanics/LineElement/QuasiStatic' instead.");
133 registerDeprecatedSyntax(
134 "CommonCohesiveZoneAction",
135 "Modules/TensorMechanics/CohesiveZoneMaster",
136 "The 'Modules/TensorMechanics/CohesiveZoneMaster' syntax is deprecated. Please use " 137 "'Physics/SolidMechanics/CohesiveZone' instead.");
138 registerDeprecatedSyntax(
139 "CohesiveZoneAction",
140 "Modules/TensorMechanics/CohesiveZoneMaster/*",
141 "The 'Modules/TensorMechanics/CohesiveZoneMaster' syntax is deprecated. Please use " 142 "'Physics/SolidMechanics/CohesiveZone' instead.");
144 registerDeprecatedSyntax(
"EmptyAction",
145 "Modules/TensorMechanics/MaterialVectorBodyForce",
146 "The 'Modules/TensorMechanics' syntax is deprecated. Please use " 147 "'Physics/SolidMechanics' instead.");
148 registerDeprecatedSyntax(
"MaterialVectorBodyForceAction",
149 "Modules/TensorMechanics/MaterialVectorBodyForce/*",
150 "The 'Modules/TensorMechanics' syntax is deprecated. Please use " 151 "'Physics/SolidMechanics' instead.");
154 registerSyntax(
"GeneralizedPlaneStrainAction",
"Physics/SolidMechanics/GeneralizedPlaneStrain/*");
155 registerSyntax(
"GlobalStrainAction",
"Physics/SolidMechanics/GlobalStrain/*");
156 registerSyntax(
"CommonSolidMechanicsAction",
"Physics/SolidMechanics/QuasiStatic");
157 registerSyntax(
"CommonSolidMechanicsAction",
"Physics/SolidMechanics/Dynamic");
158 registerSyntax(
"QuasiStaticSolidMechanicsPhysics",
"Physics/SolidMechanics/QuasiStatic/*");
159 registerSyntax(
"DynamicSolidMechanicsPhysics",
"Physics/SolidMechanics/Dynamic/*");
161 registerSyntax(
"CommonLineElementAction",
"Physics/SolidMechanics/LineElement/QuasiStatic");
162 registerSyntax(
"LineElementAction",
"Physics/SolidMechanics/LineElement/QuasiStatic/*");
164 registerSyntax(
"CommonCohesiveZoneAction",
"Physics/SolidMechanics/CohesiveZone");
165 registerSyntax(
"CohesiveZoneAction",
"Physics/SolidMechanics/CohesiveZone/*");
167 registerSyntax(
"EmptyAction",
"Physics/SolidMechanics/MaterialVectorBodyForce");
168 registerSyntax(
"MaterialVectorBodyForceAction",
169 "Physics/SolidMechanics/MaterialVectorBodyForce/*");
171 registerSyntaxTask(
"DomainIntegralAction",
"DomainIntegral",
"add_user_object");
172 registerSyntaxTask(
"DomainIntegralAction",
"DomainIntegral",
"add_aux_variable");
173 registerSyntaxTask(
"DomainIntegralAction",
"DomainIntegral",
"add_aux_kernel");
174 registerSyntaxTask(
"DomainIntegralAction",
"DomainIntegral",
"add_postprocessor");
175 registerSyntaxTask(
"DomainIntegralAction",
"DomainIntegral",
"add_vector_postprocessor");
176 registerSyntaxTask(
"DomainIntegralAction",
"DomainIntegral",
"add_material");
178 registerTask(
"validate_coordinate_systems",
false);
179 addTaskDependency(
"validate_coordinate_systems",
"create_problem_complete");
180 addTaskDependency(
"setup_postprocessor_data",
"validate_coordinate_systems");
182 registerTask(
"parse_neml2",
true);
185 registerSyntax(
"NEML2Action",
"NEML2");
194 registerDataFilePath();
221 mooseDeprecated(
"Do not use registerExecFlags, apps no longer require flag registration");
virtual void setupOptions()
registerKnownLabel("SolidMechanicsApp")
virtual ~SolidMechanicsApp()
void addDependency(const std::string &task, const std::string &pre_req)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
void setFinalTask(const std::string &task)
virtual void setupOptions() override
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
static void registerApps()
static InputParameters validParams()
static void registerObjects(Factory &factory)
SolidMechanicsApp(const InputParameters ¶meters)
static InputParameters validParams()
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
ActionWarehouse & actionWarehouse()
void mooseDeprecated(Args &&... args)
void SolidMechanicsApp_registerApps()
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerExecFlags(Factory &factory)
virtual void runInputFile()
virtual void runInputFile() override
void SolidMechanicsApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)