This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
MassScaling.py
97 lines (78 loc) · 3.9 KB
/
MassScaling.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
from abaqusConstants import *
class MassScaling:
"""A MassScaling object defines the region and controls that govern mass scaling.
Attributes
----------
objective: SymbolicConstant
A SymbolicConstant specifying :py:class:`~.the` objective of :py:class:`~.the` mass scaling definition. Possible
values are SEMI_AUTOMATIC, AUTOMATIC, and REINITIALIZE. The default value is
SEMI_AUTOMATIC.
occurs: SymbolicConstant
A SymbolicConstant specifying whether mass scaling should be performed at the beginning
of the step or throughout the step. Possible values are AT_BEGINNING and
THROUGHOUT_STEP.
type: SymbolicConstant
A SymbolicConstant specifying the type of scaling. Possible values are UNIFORM,
BELOW_MIN, SET_EQUAL_DT, and ROLLING. The default value is BELOW_MIN.
factor: float
A Float specifying a scaling factor.
dt: float
A Float specifying a target time increment.
frequency: int
An Int specifying the frequency at which mass scaling calculations are performed.
numberInterval: int
An Int specifying the number of intervals at which mass scaling calculations are
performed.
feedRate: float
A Float specifying the estimated average velocity of the workpiece in the rolling
direction at steady-state conditions.
extrudedLength: float
A Float specifying the average element length in the extruded direction.
crossSection: int
An Int specifying the number of nodes in the cross-section of the workpiece.
direction: SymbolicConstant
A SymbolicConstant specifying the rolling direction. Possible values are GLOBAL_X,
GLOBAL_Y, GLOBAL_Z, and GLOBAL_NONE. The default value is GLOBAL_X.
region: SymbolicConstant
The SymbolicConstant MODEL or a :py:class:`~abaqus.Region.Region.Region` object specifying where the mass scaling is
applied. The default value is MODEL.
Notes
-----
This object can be accessed by:
.. code-block:: python
import step
mdb.models[name].steps[name].massScaling[i]
"""
# A SymbolicConstant specifying the objective of the mass scaling definition. Possible
# values are SEMI_AUTOMATIC, AUTOMATIC, and REINITIALIZE. The default value is
# SEMI_AUTOMATIC.
objective: SymbolicConstant = SEMI_AUTOMATIC
# A SymbolicConstant specifying whether mass scaling should be performed at the beginning
# of the step or throughout the step. Possible values are AT_BEGINNING and
# THROUGHOUT_STEP.
occurs: SymbolicConstant = None
# A SymbolicConstant specifying the type of scaling. Possible values are UNIFORM,
# BELOW_MIN, SET_EQUAL_DT, and ROLLING. The default value is BELOW_MIN.
type: SymbolicConstant = BELOW_MIN
# A Float specifying a scaling factor.
factor: float = None
# A Float specifying a target time increment.
dt: float = None
# An Int specifying the frequency at which mass scaling calculations are performed.
frequency: int = None
# An Int specifying the number of intervals at which mass scaling calculations are
# performed.
numberInterval: int = None
# A Float specifying the estimated average velocity of the workpiece in the rolling
# direction at steady-state conditions.
feedRate: float = None
# A Float specifying the average element length in the extruded direction.
extrudedLength: float = None
# An Int specifying the number of nodes in the cross-section of the workpiece.
crossSection: int = None
# A SymbolicConstant specifying the rolling direction. Possible values are GLOBAL_X,
# GLOBAL_Y, GLOBAL_Z, and GLOBAL_NONE. The default value is GLOBAL_X.
direction: SymbolicConstant = GLOBAL_X
# The SymbolicConstant MODEL or a Region object specifying where the mass scaling is
# applied. The default value is MODEL.
region: SymbolicConstant = MODEL