This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
EventSeries.py
109 lines (90 loc) · 2.96 KB
/
EventSeries.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
from abaqusConstants import *
class EventSeries:
"""The EventSeries object is used to define an event based on an already defined
EventSeriesType object.
After EventSeries is instantiated, making changes to EventSeriesType may lead to data
corruption.
Notes
-----
This object can be accessed by:
.. code-block:: python
mdb.models[name].eventSeriesDatas[name]
The corresponding analysis keywords are:
- EVENT SERIES TYPE
- EVENT SERIES
"""
def __init__(
self,
name: str,
createStepName: str,
eventSeriesType: str,
transformType: str = NONE,
timeSpan: str = STEP_TIME,
transformations: str = "",
fileName: str = "",
data: str = "",
):
"""This method creates an EventSeries object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].EventSeriesData
Parameters
----------
name
A String specifying the repository key.
createStepName
A string specifying the step name.
eventSeriesType
A string specifying the type of event series.
transformType
A Symbolic constant specifying the type of transformation. Possible values are NONE,
BOTH, TRANSLATE, and ROTATE. The default value is NONE.
timeSpan
A Symbolic constant specifying time. Possible values are TOTAL_TIME and STEP_TIME. The
default value is STEP_TIME.
transformations
An Array specifying the required transformations over event series data.
fileName
A String specifying the filename.
data
An Array of double specifying the values of fields provided in EventSeriesType.
Returns
-------
An EventSeries object.
Raises
------
RangeError
"""
pass
def setValues(
self,
transformType: str = NONE,
timeSpan: str = STEP_TIME,
transformations: str = "",
fileName: str = "",
data: str = "",
):
"""This method modifies the EventSeries object.
Parameters
----------
transformType
A Symbolic constant specifying the type of transformation. Possible values are NONE,
BOTH, TRANSLATE, and ROTATE. The default value is NONE.
timeSpan
A Symbolic constant specifying time. Possible values are TOTAL_TIME and STEP_TIME. The
default value is STEP_TIME.
transformations
An Array specifying the required transformations over event series data.
fileName
A String specifying the filename.
data
An Array of double specifying the values of fields provided in EventSeriesType.
Returns
-------
Raises
------
RangeError
"""
pass