This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
Correlation.py
52 lines (41 loc) · 1.88 KB
/
Correlation.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
from abaqusConstants import *
from .Amplitude import Amplitude
class Correlation(Amplitude):
"""A Correlation is an object used to define the cross-correlation as part of the
definition of random loading.
The Correlation object is derived from the Amplitude object.
Attributes
----------
name: str
A String specifying the repository key.
approach: SymbolicConstant
A SymbolicConstant specifying the approach used in the correlation data representation.
Possible values are CORRELATED, MOVING_NOISE, UNCORRELATED, and USER. The default value
is CORRELATED.
data: float
A tuple of tuples of Floats specifying the real and imaginary part of the scaling
factor. If **approach=MOVING_NOISE**, then **data** represents the noise velocity components
1, 2, and 3.
timeSpan: SymbolicConstant
A SymbolicConstant specifying the time span of the amplitude. Possible values are STEP
and TOTAL. The default value is STEP.
Notes
-----
This object can be accessed by:
.. code-block:: python
import load
mdb.models[name].boundaryConditions[name].correlation[i]
"""
# A String specifying the repository key.
name: str = ""
# A SymbolicConstant specifying the approach used in the correlation data representation.
# Possible values are CORRELATED, MOVING_NOISE, UNCORRELATED, and USER. The default value
# is CORRELATED.
approach: SymbolicConstant = CORRELATED
# A tuple of tuples of Floats specifying the real and imaginary part of the scaling
# factor. If *approach*=MOVING_NOISE, then *data* represents the noise velocity components
# 1, 2, and 3.
data: float = None
# A SymbolicConstant specifying the time span of the amplitude. Possible values are STEP
# and TOTAL. The default value is STEP.
timeSpan: SymbolicConstant = STEP