This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
HistoryPoint.py
284 lines (237 loc) · 11.9 KB
/
HistoryPoint.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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
import typing
from abaqusConstants import *
from .OdbAssembly import OdbAssembly
from .OdbInstance import OdbInstance
from .OdbMeshElement import OdbMeshElement
from .OdbMeshNode import OdbMeshNode
from .OdbPart import OdbPart
from .OdbSet import OdbSet
from .SectionPoint import SectionPoint
class HistoryPoint:
"""The HistoryPoint object specifies the point at which history data will be collected. The
HistoryPoint object is a temporary object used as an argument to the HistoryRegion
method.
Attributes
----------
ipNumber: int
An Int specifying the integration point. This argument is used to define a history
output position of INTEGRATION_POINT or ELEMENT_FACE_INTEGRATION_POINT. The default
value is 0.
face: SymbolicConstant
A SymbolicConstant specifying the element face. This argument is used to define a
history output position of ELEMENT_FACE or ELEMENT_FACE_INTEGRATION_POINT. Possible
values are:
- FACE_UNKOWN, specifying this value indicates that no value has been specified.
- FACE1, specifying this value indicates that element face 1 has been specified.
- FACE2, specifying this value indicates that element face 2 has been specified.
- FACE3, specifying this value indicates that element face 3 has been specified.
- FACE4, specifying this value indicates that element face 4 has been specified.
- FACE5, specifying this value indicates that element face 5 has been specified.
- FACE6, specifying this value indicates that element face 6 has been specified.
- SIDE1, specifying this value indicates that element side 1 has been specified.
- SIDE2, specifying this value indicates element side 2 has been specified.
- END1, specifying this value indicates that element end 1 has been specified.
- END2, specifying this value indicates that element end 2 has been specified.
- END3, specifying this value indicates that element end 3 has been specified.
The default value is FACE_UNKNOWN.
position: SymbolicConstant
A SymbolicConstant specifying the result position of the history point. Possible values
are:
- NODAL, specifying the values calculated at the nodes.
- ELEMENT_NODAL, specifying the values obtained by extrapolating results calculated at
the integration points.
- INTEGRATION_POINT, specifying the values calculated at the integration points.
- ELEMENT_FACE, specifying the results obtained for surface variables such as cavity
radiation that are defined for the surface facets of an element.
- ELEMENT_FACE_INTEGRATION_POINT, specifying the results obtained for surface variables
such as cavity radiation that are defined for the surface facets of an element when the
surface facets have integration points.
- WHOLE_ELEMENT, specifying the results obtained for whole element variables.
- WHOLE_REGION, specifying the results for an entire region of the model.
- WHOLE_PART_INSTANCE, specifying the results for an entire part instance of the model.
- WHOLE_MODEL, specifying the results for the entire model.
element: OdbMeshElement
An :py:class:`~abaqus.Odb.OdbMeshElement.OdbMeshElement` object specifying the element for which the data are to be collected.
sectionPoint: SectionPoint
A :py:class:`~abaqus.Odb.SectionPoint.SectionPoint` object.
region: OdbSet
An :py:class:`~abaqus.Odb.OdbSet.OdbSet` object specifying the region for which the data are to be collected.
assembly: OdbAssembly
An :py:class:`~abaqus.Odb.OdbAssembly.OdbAssembly` object specifying the assembly for which the data are to be collected.
instance: OdbInstance
An :py:class:`~abaqus.Odb.OdbInstance.OdbInstance` object specifying the instance for which the data are to be collected.
Notes
-----
This object can be accessed by:
.. code-block:: python
import odbAccess
session.odbs[name].steps[name].historyRegions[name].point
"""
# An Int specifying the integration point. This argument is used to define a history
# output position of INTEGRATION_POINT or ELEMENT_FACE_INTEGRATION_POINT. The default
# value is 0.
ipNumber: int = 0
# A SymbolicConstant specifying the element face. This argument is used to define a
# history output position of ELEMENT_FACE or ELEMENT_FACE_INTEGRATION_POINT. Possible
# values are:
# - FACE_UNKOWN, specifying this value indicates that no value has been specified.
# - FACE1, specifying this value indicates that element face 1 has been specified.
# - FACE2, specifying this value indicates that element face 2 has been specified.
# - FACE3, specifying this value indicates that element face 3 has been specified.
# - FACE4, specifying this value indicates that element face 4 has been specified.
# - FACE5, specifying this value indicates that element face 5 has been specified.
# - FACE6, specifying this value indicates that element face 6 has been specified.
# - SIDE1, specifying this value indicates that element side 1 has been specified.
# - SIDE2, specifying this value indicates element side 2 has been specified.
# - END1, specifying this value indicates that element end 1 has been specified.
# - END2, specifying this value indicates that element end 2 has been specified.
# - END3, specifying this value indicates that element end 3 has been specified.
# The default value is FACE_UNKNOWN.
face: SymbolicConstant = FACE_UNKNOWN
# A SymbolicConstant specifying the result position of the history point. Possible values
# are:
# - NODAL, specifying the values calculated at the nodes.
# - ELEMENT_NODAL, specifying the values obtained by extrapolating results calculated at
# the integration points.
# - INTEGRATION_POINT, specifying the values calculated at the integration points.
# - ELEMENT_FACE, specifying the results obtained for surface variables such as cavity
# radiation that are defined for the surface facets of an element.
# - ELEMENT_FACE_INTEGRATION_POINT, specifying the results obtained for surface variables
# such as cavity radiation that are defined for the surface facets of an element when the
# surface facets have integration points.
# - WHOLE_ELEMENT, specifying the results obtained for whole element variables.
# - WHOLE_REGION, specifying the results for an entire region of the model.
# - WHOLE_PART_INSTANCE, specifying the results for an entire part instance of the model.
# - WHOLE_MODEL, specifying the results for the entire model.
position: SymbolicConstant = None
# An OdbMeshElement object specifying the element for which the data are to be collected.
element: OdbMeshElement = OdbMeshElement()
# A SectionPoint object.
sectionPoint: SectionPoint = None
# An OdbSet object specifying the region for which the data are to be collected.
region: OdbSet = OdbSet("set", tuple[OdbMeshNode]())
# An OdbAssembly object specifying the assembly for which the data are to be collected.
assembly: OdbAssembly = OdbAssembly()
# An OdbInstance object specifying the instance for which the data are to be collected.
instance: OdbInstance = OdbInstance(
"instance", OdbPart("part", THREE_D, DEFORMABLE_BODY)
)
@typing.overload
def __init__(self, node: OdbMeshNode):
"""This method creates a HistoryPoint object for a node.
Notes
-----
This function can be accessed by:
.. code-block:: python
odbAccess.HistoryPoint
Parameters
----------
node
An OdbMeshNode object specifying the node for which the data are to be collected.
Returns
-------
A HistoryPoint object.
"""
pass
@typing.overload
def __init__(
self,
element: OdbMeshElement,
ipNumber: int = 0,
sectionPoint: SectionPoint = None,
face: SymbolicConstant = FACE_UNKNOWN,
node: OdbMeshNode = OdbMeshNode(),
):
"""This method creates a HistoryPoint object for an element.
Notes
-----
This function can be accessed by:
.. code-block:: python
odbAccess.HistoryPoint
Parameters
----------
element
An OdbMeshElement object specifying the element for which the data are to be collected.
ipNumber
An Int specifying the integration point. This argument is used to define a history
output position of INTEGRATION_POINT or ELEMENT_FACE_INTEGRATION_POINT. The default
value is 0.
sectionPoint
A SectionPoint object.
face
A SymbolicConstant specifying the element face. This argument is used to define a
history output position of ELEMENT_FACE or ELEMENT_FACE_INTEGRATION_POINT. Possible
values are:
- FACE_UNKOWN, specifying this value indicates that no value has been specified.
- FACE1, specifying this value indicates that element face 1 has been specified.
- FACE2, specifying this value indicates that element face 2 has been specified.
- FACE3, specifying this value indicates that element face 3 has been specified.
- FACE4, specifying this value indicates that element face 4 has been specified.
- FACE5, specifying this value indicates that element face 5 has been specified.
- FACE6, specifying this value indicates that element face 6 has been specified.
- SIDE1, specifying this value indicates that element side 1 has been specified.
- SIDE2, specifying this value indicates element side 2 has been specified.
- END1, specifying this value indicates that element end 1 has been specified.
- END2, specifying this value indicates that element end 2 has been specified.
- END3, specifying this value indicates that element end 3 has been specified.
The default value is FACE_UNKNOWN.
node
An OdbMeshNode object specifying the node for which the data are to be collected.
Returns
-------
A HistoryPoint object.
"""
pass
@typing.overload
def __init__(self, region: OdbSet):
"""This method creates a HistoryPoint object for a region.
Notes
-----
This function can be accessed by:
.. code-block:: python
odbAccess.HistoryPoint
Parameters
----------
region
An OdbSet object specifying the region for which the data are to be collected.
Returns
-------
A HistoryPoint object.
"""
pass
@typing.overload
def __init__(self, assembly: OdbAssembly):
"""This method creates a HistoryPoint object for the OdbAssembly object.
Notes
-----
This function can be accessed by:
.. code-block:: python
odbAccess.HistoryPoint
Parameters
----------
assembly
An OdbAssembly object specifying the assembly for which the data are to be collected.
Returns
-------
A HistoryPoint object.
"""
pass
@typing.overload
def __init__(self, instance: OdbInstance):
"""This method creates a HistoryPoint object for the OdbInstance object.
Notes
-----
This function can be accessed by:
.. code-block:: python
odbAccess.HistoryPoint
Parameters
----------
instance
An OdbInstance object specifying the instance for which the data are to be collected.
Returns
-------
A HistoryPoint object.
"""
pass
def __init__(self, *args, **kwargs):
pass