PathTimeSeries
PathTimeSeries
PathTimeSeries(dt: Optional[float] = None, values: Optional[Union[str, Sequence[float]]] = None, filePath: Optional[str] = None, factor: float = 1.0, useLast: bool = False, prependZero: bool = False, startTime: float = 0.0, time: Optional[Union[str, Sequence[float]]] = None, fileTime: Optional[str] = None)
Bases: TimeSeries
Path-based time series for recorded or tabulated histories.
This time series represents user-defined path data for dynamic loading or
ground-motion records. Values may be supplied inline or from a file, and
time may be defined through a constant dt, inline time values, or a
time file.
Tcl form
timeSeries Path <tag> <-dt dt | -time {...} | -fileTime file>
<-values {...} | -filePath file> [options...]
Note
PathTimeSeriesis the usual input for acceleration histories passed tomodel.ground_motion.plain(...)or uniform excitation patterns.- Exactly one value source and exactly one time source must be provided.
Example
Create a path time series.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dt
|
Optional[float]
|
Constant time step. Mutually exclusive with |
None
|
values
|
Optional[Union[str, Sequence[float]]]
|
Inline path values as a sequence or comma-separated string.
Mutually exclusive with |
None
|
filePath
|
Optional[str]
|
File containing path values. Mutually exclusive with
|
None
|
factor
|
float
|
Scale factor applied to values. |
1.0
|
useLast
|
bool
|
Whether OpenSees should hold the final value after the path ends. |
False
|
prependZero
|
bool
|
Whether OpenSees should prepend a zero value. |
False
|
startTime
|
float
|
Start time offset. |
0.0
|
time
|
Optional[Union[str, Sequence[float]]]
|
Inline time values. Mutually exclusive with |
None
|
fileTime
|
Optional[str]
|
File containing time values. Mutually exclusive with
|
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If exactly one value source and exactly one time source are not provided, or if supplied values are invalid. |