https://mooseframework.inl.gov
solid_mechanics
src
actions
LegacyDynamicTensorMechanicsAction.C
Go to the documentation of this file.
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 "
LegacyDynamicTensorMechanicsAction.h
"
11
12
registerMooseAction
(
"SolidMechanicsApp"
,
LegacyDynamicTensorMechanicsAction
,
"setup_mesh_complete"
);
13
14
registerMooseAction
(
"SolidMechanicsApp"
,
15
LegacyDynamicTensorMechanicsAction
,
16
"validate_coordinate_systems"
);
17
18
registerMooseAction
(
"SolidMechanicsApp"
,
LegacyDynamicTensorMechanicsAction
,
"add_kernel"
);
19
20
InputParameters
21
LegacyDynamicTensorMechanicsAction::validParams
()
22
{
23
InputParameters
params =
DynamicSolidMechanicsPhysics::validParams
();
24
params.
addParam
<
bool
>(
25
"use_displaced_mesh"
,
false
,
"Whether to use displaced mesh in the kernels"
);
26
return
params;
27
}
28
29
LegacyDynamicTensorMechanicsAction::LegacyDynamicTensorMechanicsAction
(
30
const
InputParameters
& params)
31
:
DynamicSolidMechanicsPhysics
(params)
32
{
33
}
34
35
void
36
LegacyDynamicTensorMechanicsAction::act
()
37
{
38
if
(
_current_task
==
"add_kernel"
||
_current_task
==
"validate_coordinate_systems"
)
39
// note that we do not call SolidMechanicsAction::act() here, because the old
40
// behavior is not to add inertia kernels
41
QuasiStaticSolidMechanicsPhysics::act
();
42
}
registerMooseAction
registerMooseAction("SolidMechanicsApp", LegacyDynamicTensorMechanicsAction, "setup_mesh_complete")
InputParameters::addParam
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
DynamicSolidMechanicsPhysics
Definition:
DynamicSolidMechanicsPhysics.h:14
LegacyDynamicTensorMechanicsAction.h
InputParameters
LegacyDynamicTensorMechanicsAction::LegacyDynamicTensorMechanicsAction
LegacyDynamicTensorMechanicsAction(const InputParameters ¶ms)
Definition:
LegacyDynamicTensorMechanicsAction.C:29
Action::_current_task
const std::string & _current_task
LegacyDynamicTensorMechanicsAction
Definition:
LegacyDynamicTensorMechanicsAction.h:14
LegacyDynamicTensorMechanicsAction::act
virtual void act()
Definition:
LegacyDynamicTensorMechanicsAction.C:36
LegacyDynamicTensorMechanicsAction::validParams
static InputParameters validParams()
Definition:
LegacyDynamicTensorMechanicsAction.C:21
QuasiStaticSolidMechanicsPhysics::act
virtual void act()
Definition:
QuasiStaticSolidMechanicsPhysics.C:325
DynamicSolidMechanicsPhysics::validParams
static InputParameters validParams()
Definition:
DynamicSolidMechanicsPhysics.C:38
Generated on Fri Jul 18 2025 13:43:38 for https://mooseframework.inl.gov by
1.8.14