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 "LegacyTensorMechanicsAction.h" 11 : 12 : registerMooseAction("SolidMechanicsApp", LegacyTensorMechanicsAction, "setup_mesh_complete"); 13 : 14 : registerMooseAction("SolidMechanicsApp", 15 : LegacyTensorMechanicsAction, 16 : "validate_coordinate_systems"); 17 : 18 : registerMooseAction("SolidMechanicsApp", LegacyTensorMechanicsAction, "add_kernel"); 19 : 20 : InputParameters 21 1634 : LegacyTensorMechanicsAction::validParams() 22 : { 23 1634 : InputParameters params = QuasiStaticSolidMechanicsPhysics::validParams(); 24 3268 : params.addParam<bool>( 25 3268 : "use_displaced_mesh", false, "Whether to use displaced mesh in the kernels"); 26 1634 : return params; 27 0 : } 28 : 29 1634 : LegacyTensorMechanicsAction::LegacyTensorMechanicsAction(const InputParameters & params) 30 1634 : : QuasiStaticSolidMechanicsPhysics(params) 31 : { 32 1634 : } 33 : 34 : void 35 4880 : LegacyTensorMechanicsAction::act() 36 : { 37 4880 : if (_current_task == "add_kernel" || _current_task == "validate_coordinate_systems") 38 3246 : QuasiStaticSolidMechanicsPhysics::act(); 39 4880 : }