https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
}
registerMooseAction
registerMooseAction("SolidMechanicsApp", LegacyTensorMechanicsAction, "setup_mesh_complete")
LegacyTensorMechanicsAction.h
Action::_current_task
const std::string & _current_task
InputParameters::addParam
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
LegacyTensorMechanicsAction
Definition
LegacyTensorMechanicsAction.h:15
LegacyTensorMechanicsAction::validParams
static InputParameters validParams()
Definition
LegacyTensorMechanicsAction.C:21
LegacyTensorMechanicsAction::act
virtual void act()
Definition
LegacyTensorMechanicsAction.C:35
LegacyTensorMechanicsAction::LegacyTensorMechanicsAction
LegacyTensorMechanicsAction(const InputParameters ¶ms)
Definition
LegacyTensorMechanicsAction.C:29
QuasiStaticSolidMechanicsPhysics
Definition
QuasiStaticSolidMechanicsPhysics.h:16
QuasiStaticSolidMechanicsPhysics::act
virtual void act()
Definition
QuasiStaticSolidMechanicsPhysics.C:386
QuasiStaticSolidMechanicsPhysics::validParams
static InputParameters validParams()
Definition
QuasiStaticSolidMechanicsPhysics.C:54
InputParameters
Generated on Fri Aug 21 2026 13:41:37 for https://mooseframework.inl.gov by
1.9.8