This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
OutputStep.py
204 lines (179 loc) · 7.31 KB
/
OutputStep.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
from abaqusConstants import *
from .DiagnosticPrint import DiagnosticPrint
from .Monitor import Monitor
from .Restart import Restart
from ..Step.StepBase import StepBase
class OutputStep(StepBase):
"""The Step object stores the parameters that determine the context of the step. The Step
object is the abstract base type for other Step objects. The Step object has no explicit
constructor. The methods and members of the Step object are common to all objects
derived from the Step.
Notes
-----
This object can be accessed by:
.. code-block:: python
import step
mdb.models[name].steps[name]
"""
def DiagnosticPrint(
self,
allke: Boolean = ON,
criticalElement: Boolean = ON,
dmass: Boolean = OFF,
etotal: Boolean = OFF,
contact: Boolean = ON,
modelChange: Boolean = OFF,
plasticity: Boolean = OFF,
residual: Boolean = ON,
frequency: int = 1,
solve: Boolean = ON,
mass: Boolean = OFF,
) -> DiagnosticPrint:
"""This method creates a DiagnosticPrint object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].steps[name].DiagnosticPrint
Parameters
----------
allke
A Boolean specifying a request for a column containing the total kinetic energy. This
argument is valid only for an Abaqus/Explicit analysis. The default value is ON.
criticalElement
A Boolean specifying a request for a column containing the element that has the smallest
stable time increment and a column listing the value. This argument is valid only for an
Abaqus/Explicit analysis. The default value is ON.
dmass
A Boolean specifying a request for a column containing the percent change in total mass
of the model as a result of mass scaling. This argument is valid only for an
Abaqus/Explicit analysis. The default value is OFF unless mass scaling is present in the
model.
etotal
A Boolean specifying a request for a column containing the energy balance of the model.
This argument is valid only for an Abaqus/Explicit analysis. The default value is OFF.
contact
A Boolean specifying a request for detailed output of points that are contacting or
separating in interface and gap problems. This argument is valid only for an
Abaqus/Standard analysis. The default value is ON.
modelChange
A Boolean specifying a request for detailed output of which elements are being removed
or reactivated in the step. This argument is valid only for an Abaqus/Standard analysis.
The default value is OFF.
plasticity
A Boolean specifying a request for detailed output of element and integration point
numbers for which the plasticity algorithms have failed to converge in the material
routines. This argument is valid only for an Abaqus/Standard analysis. The default value
is OFF.
residual
A Boolean specifying a request for output of equilibrium residuals during the
equilibrium iterations. This argument is valid only for an Abaqus/Standard analysis. The
default value is ON.
frequency
An Int specifying the frequency of output, in increments. The default value is 1.
solve
A Boolean specifying a request for information regarding the actual number of equations
and the wavefront in each iteration. This argument is valid only for an Abaqus/Standard
analysis. The default value is ON.
mass
A Boolean specifying a request for a column containing the total mass of the model as a
result of mass scaling. This argument is valid only for an Abaqus/Explicit analysis. The
default value is OFF.
Returns
-------
diagnosticPrint: DiagnosticPrint
A DiagnosticPrint object
"""
self.diagnosticPrint = diagnosticPrint = DiagnosticPrint(
allke,
criticalElement,
dmass,
etotal,
contact,
modelChange,
plasticity,
residual,
frequency,
solve,
mass,
)
return diagnosticPrint
def Monitor(self, node: str, dof: SymbolicConstant, frequency: int) -> Monitor:
"""This method creates a request for a degree of freedom to be monitored in a general or
modal procedure.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].steps[name].Monitor
Parameters
----------
node
A String specifying the name of the region to be monitored.
dof
A SymbolicConstant specifying the degree of freedom to be monitored at the node.
Possible values are:
- U1
- U2
- U3
- UR1
- UR2
- UR3
- WARP
- FLUID_PRESSURE
- ELECTRICAL_POTENTIAL
- NT11
- NT30
- NN11
- NN30
The NT identifiers are not available for mass diffusion. The NN identifiers are
available only for mass diffusion.
frequency
An Int specifying the output frequency in increments. This argument is valid only for an
Abaqus/Standard analysis.
Returns
-------
monitor: Monitor
A Monitor object
"""
self.monitor = monitor = Monitor(node, dof, frequency)
return monitor
def Restart(
self,
numberIntervals: int = 0,
timeMarks: Boolean = OFF,
overlay: Boolean = OFF,
frequency: int = 0,
) -> Restart:
"""This method creates a restart request.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].steps[name].Restart
Parameters
----------
numberIntervals
An Int specifying the number of intervals during the step at which restart information
will be written. The default value is 0. The default value is 1.
timeMarks
A Boolean specifying whether to use exact time marks for writing during an analysis. The
default value is OFF. The default value is OFF.
overlay
A Boolean specifying that only one increment per step should be retained on the restart
file, thus minimizing the size of the restart file. The default value is OFF. The
default value is ON.
frequency
An Int specifying the increments at which restart information will be written. The
default value is 0. The default value is 0.This argument applies only to Abaqus/Standard
analyses.
Returns
-------
restart: Restart
A Restart object
Raises
------
RangeError.
"""
self.restart = restart = Restart(numberIntervals, timeMarks, overlay, frequency)
return restart