This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
TabularAmplitude.py
106 lines (85 loc) · 3.08 KB
/
TabularAmplitude.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
import typing
from abaqusConstants import *
from .Amplitude import Amplitude
from .BaselineCorrection import BaselineCorrection
class TabularAmplitude(Amplitude):
"""The TabularAmplitude object defines an amplitude curve as a table of values at
convenient points on the time scale.
The TabularAmplitude object is derived from the Amplitude object.
Attributes
----------
baselineCorrection: BaselineCorrection
A :py:class:`~abaqus.Amplitude.BaselineCorrection.BaselineCorrection` object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import amplitude
mdb.models[name].amplitudes[name]
import odbAmplitude
session.odbs[name].amplitudes[name]
The corresponding analysis keywords are:
- AMPLITUDE
"""
# A BaselineCorrection object.
baselineCorrection: BaselineCorrection = BaselineCorrection()
def __init__(
self,
name: str,
data: tuple,
smooth: typing.Union[SymbolicConstant, float] = SOLVER_DEFAULT,
timeSpan: SymbolicConstant = STEP,
):
"""This method creates a TabularAmplitude object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].TabularAmplitude
session.odbs[name].TabularAmplitude
Parameters
----------
name
A String specifying the repository key.
data
A sequence of pairs of Floats specifying time/frequency and amplitude pairs. Possible
values for time/frequency are positive numbers.
smooth
The SymbolicConstant SOLVER_DEFAULT or a Float specifying the degree of smoothing.
Possible float values are between 0 and 0.5. If *smooth*=SOLVER_DEFAULT, the default
degree of smoothing will be determined by the solver. The default value is
SOLVER_DEFAULT.
timeSpan
A SymbolicConstant specifying the time span of the amplitude. Possible values are STEP
and TOTAL. The default value is STEP.
Returns
-------
A TabularAmplitude object.
Raises
------
InvalidNameError
RangeError
"""
super().__init__()
pass
def setValues(
self,
smooth: typing.Union[SymbolicConstant, float] = SOLVER_DEFAULT,
timeSpan: SymbolicConstant = STEP,
):
"""This method modifies the TabularAmplitude object.
Parameters
----------
smooth
The SymbolicConstant SOLVER_DEFAULT or a Float specifying the degree of smoothing.
Possible float values are between 0 and 0.5. If *smooth*=SOLVER_DEFAULT, the default
degree of smoothing will be determined by the solver. The default value is
SOLVER_DEFAULT.
timeSpan
A SymbolicConstant specifying the time span of the amplitude. Possible values are STEP
and TOTAL. The default value is STEP.
Raises
------
RangeError
"""
pass