開発版ドキュメント · 0.2.3 30c2f8ba · 入門例の検証対象 0.2.3 · 版情報 · 既知の制限

gwexpy.interop.opensees_#

Interoperate with OpenSeesPy recorder output.


Interoperability with OpenSeesPy recorder output.

OpenSeesPy writes node/element recorder data to text files with columns [time, n1_d1, n1_d2, ..., n2_d1, ...]. This module reads such files into TimeSeriesMatrix or TimeSeriesDict.

参照

https://opensees.berkeley.edu/ https://openseespydoc.readthedocs.io/

Functions

from_opensees_recorder(cls, filepath, *, ...)

Read an OpenSeesPy recorder text file into a TimeSeriesMatrix.

gwexpy.interop.opensees_.from_opensees_recorder(cls: type, filepath: str | Path, *, nodes: list[int], dofs: list[int], response_type: str = 'disp', dt: float | None = None, has_time_column: bool = True) Any#

Read an OpenSeesPy recorder text file into a TimeSeriesMatrix.

パラメータ:
  • cls (type) -- TimeSeriesMatrix or TimeSeriesDict.

  • filepath (str or Path) -- Path to the recorder output file (space-delimited text).

  • nodes (list[int]) -- Node numbers recorded (in order).

  • dofs (list[int]) -- DOF numbers recorded per node (1-based, e.g. [1, 2, 3] for X, Y, Z).

  • response_type (str) -- Response quantity for unit inference ("disp", "vel", "accel", "force").

  • dt (float, optional) -- Time step. Required if has_time_column is False.

  • has_time_column (bool) -- Whether the first column is a time vector (default True).

戻り値の型:

TimeSeriesMatrix or TimeSeriesDict