https://mooseframework.inl.gov
solid_mechanics
src
actions
LegacyTensorMechanicsAction.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 "
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
LegacyTensorMechanicsAction::validParams
()
22
{
23
InputParameters
params =
QuasiStaticSolidMechanicsPhysics::validParams
();
24
params.
addParam
<
bool
>(
25
"use_displaced_mesh"
,
false
,
"Whether to use displaced mesh in the kernels"
);
26
return
params;
27
}
28
29
LegacyTensorMechanicsAction::LegacyTensorMechanicsAction
(
const
InputParameters
& params)
30
:
QuasiStaticSolidMechanicsPhysics
(params)
31
{
32
}
33
34
void
35
LegacyTensorMechanicsAction::act
()
36
{
37
if
(
_current_task
==
"add_kernel"
||
_current_task
==
"validate_coordinate_systems"
)
38
QuasiStaticSolidMechanicsPhysics::act
();
39
}
InputParameters::addParam
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
LegacyTensorMechanicsAction::LegacyTensorMechanicsAction
LegacyTensorMechanicsAction(const InputParameters ¶ms)
Definition:
LegacyTensorMechanicsAction.C:29
LegacyTensorMechanicsAction.h
LegacyTensorMechanicsAction
Definition:
LegacyTensorMechanicsAction.h:14
InputParameters
QuasiStaticSolidMechanicsPhysics
Definition:
QuasiStaticSolidMechanicsPhysics.h:15
registerMooseAction
registerMooseAction("SolidMechanicsApp", LegacyTensorMechanicsAction, "setup_mesh_complete")
Action::_current_task
const std::string & _current_task
QuasiStaticSolidMechanicsPhysics::act
virtual void act()
Definition:
QuasiStaticSolidMechanicsPhysics.C:325
QuasiStaticSolidMechanicsPhysics::validParams
static InputParameters validParams()
Definition:
QuasiStaticSolidMechanicsPhysics.C:54
LegacyTensorMechanicsAction::act
virtual void act()
Definition:
LegacyTensorMechanicsAction.C:35
LegacyTensorMechanicsAction::validParams
static InputParameters validParams()
Definition:
LegacyTensorMechanicsAction.C:21
Generated on Fri Jul 18 2025 13:43:38 for https://mooseframework.inl.gov by
1.8.14