timoshenko-engine 2.1.0__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/PKG-INFO +58 -14
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/README.md +55 -13
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/pyproject.toml +4 -2
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/__init__.py +67 -2
- timoshenko_engine-2.2.0/src/timoshenko/alignment.py +287 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/beams.py +3 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/csv_source.py +1 -4
- timoshenko_engine-2.2.0/src/timoshenko/dynamics.py +213 -0
- timoshenko_engine-2.2.0/src/timoshenko/environmental.py +147 -0
- timoshenko_engine-2.2.0/src/timoshenko/model_update.py +172 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/mqtt.py +3 -6
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/oma.py +86 -2
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/polygon.py +14 -0
- timoshenko_engine-2.2.0/src/timoshenko/postgres.py +493 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/pressure.py +12 -8
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/sections.py +9 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/session.py +7 -9
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/shafts.py +18 -9
- timoshenko_engine-2.2.0/src/timoshenko/ssi.py +324 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/stability.py +10 -10
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/storage.py +96 -4
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/strength.py +13 -3
- timoshenko_engine-2.2.0/src/timoshenko/structural_3d.py +528 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/structure.py +3 -3
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/uncertainty.py +3 -3
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/vibration.py +7 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko_engine.egg-info/PKG-INFO +58 -14
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko_engine.egg-info/SOURCES.txt +15 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko_engine.egg-info/requires.txt +3 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_adapters.py +228 -28
- timoshenko_engine-2.2.0/tests/test_csv_source.py +163 -0
- timoshenko_engine-2.2.0/tests/test_dynamics.py +252 -0
- timoshenko_engine-2.2.0/tests/test_environmental.py +129 -0
- timoshenko_engine-2.2.0/tests/test_examples.py +72 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_formulas.py +186 -8
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_modal.py +68 -13
- timoshenko_engine-2.2.0/tests/test_model_update.py +132 -0
- timoshenko_engine-2.2.0/tests/test_oma_advanced.py +219 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_polygon.py +47 -10
- timoshenko_engine-2.2.0/tests/test_postgres_store.py +127 -0
- timoshenko_engine-2.2.0/tests/test_project_report.py +312 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_storage_session.py +138 -13
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_structural.py +27 -14
- timoshenko_engine-2.2.0/tests/test_structural_3d.py +211 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_uncertainty.py +46 -33
- timoshenko_engine-2.1.0/tests/test_project_report.py +0 -168
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/LICENSE +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/setup.cfg +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/_spectral.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/_validation.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/adapters.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/assets.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/health.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/mechanics.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/modal.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/monitor.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/multichannel.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/observations.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/plugins.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/project.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/py.typed +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/report.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/sensors.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/sensorthings.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/structural.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko/update.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko_engine.egg-info/dependency_links.txt +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko_engine.egg-info/entry_points.txt +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/src/timoshenko_engine.egg-info/top_level.txt +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_multichannel_csv.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_package.py +0 -0
- {timoshenko_engine-2.1.0 → timoshenko_engine-2.2.0}/tests/test_sensor_inputs.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: timoshenko-engine
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Composable structural engineering calculations and analysis primitives for Python applications.
|
|
5
5
|
Author: Ayberk Korkmaz
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -35,6 +35,8 @@ Requires-Dist: ruff>=0.6; extra == "lint"
|
|
|
35
35
|
Requires-Dist: mypy>=1.10; extra == "lint"
|
|
36
36
|
Provides-Extra: docs
|
|
37
37
|
Requires-Dist: mkdocs-material<10,>=9.5; extra == "docs"
|
|
38
|
+
Provides-Extra: postgres
|
|
39
|
+
Requires-Dist: psycopg[binary]<4,>=3.2; extra == "postgres"
|
|
38
40
|
Dynamic: license-file
|
|
39
41
|
|
|
40
42
|
<p align="center">
|
|
@@ -56,13 +58,30 @@ Dynamic: license-file
|
|
|
56
58
|
<a href="https://github.com/Ayberkrk/timoshenko/actions/workflows/tests.yml"><img alt="Tests" src="https://github.com/Ayberkrk/timoshenko/actions/workflows/tests.yml/badge.svg"></a>
|
|
57
59
|
<a href="https://github.com/Ayberkrk/timoshenko/tree/python-coverage-comment-action-data"><img alt="Coverage" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FAyberkrk%2Ftimoshenko%2Fpython-coverage-comment-action-data%2Fendpoint.json&style=for-the-badge"></a>
|
|
58
60
|
<a href="https://timoshenko.readthedocs.io/en/latest/"><img alt="Documentation" src="https://img.shields.io/readthedocs/timoshenko?style=for-the-badge"></a>
|
|
61
|
+
<a href="https://github.com/Ayberkrk/timoshenko/labels/good%20first%20issue"><img alt="Good first issues" src="https://img.shields.io/github/issues/Ayberkrk/timoshenko/good%20first%20issue?style=for-the-badge&label=good%20first%20issues"></a>
|
|
59
62
|
</p>
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
Monitoring a bridge or building usually means writing the same code again:
|
|
65
|
+
modal identification from accelerometer records, comparison against a
|
|
66
|
+
reference model, stiffness updating, and a decision on whether a frequency
|
|
67
|
+
shift needs an engineer's review. Timoshenko packages these steps as a
|
|
68
|
+
tested, embeddable Python library so a monitoring application can call them
|
|
69
|
+
instead of rebuilding them.
|
|
70
|
+
|
|
71
|
+
- **Modal identification:** peak picking, FDD/EFDD and covariance-driven SSI,
|
|
72
|
+
including asynchronous channel alignment
|
|
73
|
+
- **Model comparison and updating:** frequency and MAC checks, global and
|
|
74
|
+
per-story stiffness updating, environmental normalization
|
|
75
|
+
- **Health assessment:** evidence-oriented mode-change reports with a review
|
|
76
|
+
threshold that you choose explicitly
|
|
77
|
+
- **Structural models:** shear buildings plus linear 2D/3D trusses and frames
|
|
78
|
+
(static, modal, buckling, Newmark time history)
|
|
79
|
+
- **Monitoring runtime:** rolling-window sessions with SQLite/PostgreSQL
|
|
80
|
+
history and CSV, MQTT and OGC SensorThings sources
|
|
81
|
+
- **Engineering calculations:** section properties, beam, torsion and
|
|
82
|
+
buckling formulas, and GUM/Monte Carlo uncertainty
|
|
83
|
+
|
|
84
|
+
It is not a hosted monitoring service or a general finite-element solver.
|
|
66
85
|
|
|
67
86
|
> **Alpha:** the API may still change between releases. Every behavior change
|
|
68
87
|
> is listed in the [changelog](https://timoshenko.readthedocs.io/en/latest/changelog/).
|
|
@@ -80,6 +99,10 @@ The distribution is named `timoshenko-engine`; the import package is
|
|
|
80
99
|
python -m pip install "timoshenko-engine[mqtt]"
|
|
81
100
|
```
|
|
82
101
|
|
|
102
|
+
For the synchronous PostgreSQL history backend, install
|
|
103
|
+
`timoshenko-engine[postgres]`. SQLite is included with Python and needs no
|
|
104
|
+
extra dependency.
|
|
105
|
+
|
|
83
106
|
## Quick start
|
|
84
107
|
|
|
85
108
|
Compare measured vibration with a reference model. This example simulates a
|
|
@@ -156,11 +179,12 @@ for the stiffness, mass and scope assumptions.
|
|
|
156
179
|
| Area | Components |
|
|
157
180
|
|---|---|
|
|
158
181
|
| Engineering calculations | Section properties (including polygons with holes), beam deflection with shear, torsion, Euler buckling, plane stress, thin-wall pressure, SDOF vibration, Rayleigh damping, and GUM / Monte Carlo uncertainty |
|
|
159
|
-
| Structural models | Lumped-mass shear buildings
|
|
160
|
-
| Modal analysis | Single-channel peak picking
|
|
161
|
-
| Model comparison |
|
|
162
|
-
|
|
|
163
|
-
|
|
|
182
|
+
| Structural models | Lumped-mass shear buildings; linear 2D trusses and frames with static, modal, P-delta and buckling analysis; and linear 3D trusses and frames with static, modal and ideal buckling analysis |
|
|
183
|
+
| Modal analysis | Single-channel peak picking, optional EFDD damping, multi-channel FDD, covariance-driven SSI and asynchronous channel alignment |
|
|
184
|
+
| Model comparison | Frequency and MAC tools, global and per-story stiffness updating, environmental frequency normalization, and evidence-oriented health assessment |
|
|
185
|
+
| Time history | Newmark average-acceleration response with optional Rayleigh damping and base acceleration for 2D and 3D models |
|
|
186
|
+
| Monitoring | Bounded rolling-window sessions, restart from SQLite or PostgreSQL history, and source adapters for CSV, MQTT, and OGC SensorThings |
|
|
187
|
+
| Data and reporting | Project manifests with SHA-256 provenance, SQLite and optional PostgreSQL history, and standalone HTML reports |
|
|
164
188
|
|
|
165
189
|
Sensor collection, alarm policy, and engineering interpretation remain with the
|
|
166
190
|
application that embeds Timoshenko.
|
|
@@ -168,7 +192,10 @@ application that embeds Timoshenko.
|
|
|
168
192
|
## Multi-channel modal analysis
|
|
169
193
|
|
|
170
194
|
Frequency domain decomposition needs synchronized channels with a common
|
|
171
|
-
sample rate and unit
|
|
195
|
+
sample rate and unit. FDD can optionally estimate damping with EFDD; use
|
|
196
|
+
covariance-driven SSI when you also need a pole-stability screening indicator.
|
|
197
|
+
For asynchronous sources, `tm.align_multichannel` can apply explicit clock
|
|
198
|
+
offsets and calibration before resampling onto one shared grid:
|
|
172
199
|
|
|
173
200
|
```python
|
|
174
201
|
signals = tm.load_multichannel_csv(
|
|
@@ -182,6 +209,9 @@ for mode in fdd.modes:
|
|
|
182
209
|
print(mode.frequency_hz, mode.shape_real)
|
|
183
210
|
```
|
|
184
211
|
|
|
212
|
+
Pass `estimate_damping=True` to request EFDD damping estimates; unresolved
|
|
213
|
+
estimates are returned as `None`. See [advanced OMA and channel alignment](https://timoshenko.readthedocs.io/en/latest/advanced-oma/).
|
|
214
|
+
|
|
185
215
|
## Monitoring sessions
|
|
186
216
|
|
|
187
217
|
A host application feeds timestamped observation batches. The session aligns
|
|
@@ -225,8 +255,9 @@ The full documentation is at
|
|
|
225
255
|
- Timoshenko is alpha software and is not a structural safety certification tool.
|
|
226
256
|
- The shear-building model is a small lumped-mass reference model, not a full FEM solver.
|
|
227
257
|
- Modal identification is a screening estimate. A single sensor may miss a mode near a modal node; unpaired peaks are reported rather than compared with the wrong mode.
|
|
228
|
-
- Damping is a
|
|
229
|
-
-
|
|
258
|
+
- Damping is a screening estimate. Peak-picking requires a resolved half-power bandwidth; EFDD and SSI damping can be sensitive to record length, mode overlap and model settings.
|
|
259
|
+
- `tm.update` applies one stiffness scale to all stories. `tm.update_story_stiffness` fits individual story scales from a complete ordered modal set, but neither method locates or sizes damage reliably without an identifiable model and engineering review.
|
|
260
|
+
- The 3D solver uses dense matrices, prismatic Euler-Bernoulli frame members, ideal restraints and nodal loads. It does not analyze plates, shells, nonlinear response or design-code compliance.
|
|
230
261
|
- A frequency shift is evidence for human review, not a damage verdict. Temperature, sensor placement, boundary conditions, and other effects also shift measured frequencies.
|
|
231
262
|
- Closed-form mechanics and section functions rely on their documented ideal assumptions. They are not code-compliance checks.
|
|
232
263
|
|
|
@@ -263,6 +294,19 @@ always resolves to the latest release; each release also has its own DOI on
|
|
|
263
294
|
[`CITATION.cff`](https://github.com/Ayberkrk/timoshenko/blob/main/CITATION.cff),
|
|
264
295
|
which GitHub's "Cite this repository" button reads.
|
|
265
296
|
|
|
297
|
+
Author: Ayberk Korkmaz, Eskişehir Osmangazi University
|
|
298
|
+
([ORCID 0009-0009-0699-090X](https://orcid.org/0009-0009-0699-090X)).
|
|
299
|
+
|
|
300
|
+
## Contributors
|
|
301
|
+
|
|
302
|
+
Thanks to everyone who has contributed:
|
|
303
|
+
|
|
304
|
+
<a href="https://github.com/Ayberkrk/timoshenko/graphs/contributors">
|
|
305
|
+
<img src="https://contrib.rocks/image?repo=Ayberkrk/timoshenko" alt="Contributors" />
|
|
306
|
+
</a>
|
|
307
|
+
|
|
308
|
+
New here? The [good first issues](https://github.com/Ayberkrk/timoshenko/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) each come with a clear "done when" check, and questions are welcome in [Discussions](https://github.com/Ayberkrk/timoshenko/discussions). If the project is useful to you, a star helps others find it.
|
|
309
|
+
|
|
266
310
|
## License
|
|
267
311
|
|
|
268
312
|
Apache License 2.0. See [LICENSE](https://github.com/Ayberkrk/timoshenko/blob/main/LICENSE).
|
|
@@ -17,13 +17,30 @@
|
|
|
17
17
|
<a href="https://github.com/Ayberkrk/timoshenko/actions/workflows/tests.yml"><img alt="Tests" src="https://github.com/Ayberkrk/timoshenko/actions/workflows/tests.yml/badge.svg"></a>
|
|
18
18
|
<a href="https://github.com/Ayberkrk/timoshenko/tree/python-coverage-comment-action-data"><img alt="Coverage" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FAyberkrk%2Ftimoshenko%2Fpython-coverage-comment-action-data%2Fendpoint.json&style=for-the-badge"></a>
|
|
19
19
|
<a href="https://timoshenko.readthedocs.io/en/latest/"><img alt="Documentation" src="https://img.shields.io/readthedocs/timoshenko?style=for-the-badge"></a>
|
|
20
|
+
<a href="https://github.com/Ayberkrk/timoshenko/labels/good%20first%20issue"><img alt="Good first issues" src="https://img.shields.io/github/issues/Ayberkrk/timoshenko/good%20first%20issue?style=for-the-badge&label=good%20first%20issues"></a>
|
|
20
21
|
</p>
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
Monitoring a bridge or building usually means writing the same code again:
|
|
24
|
+
modal identification from accelerometer records, comparison against a
|
|
25
|
+
reference model, stiffness updating, and a decision on whether a frequency
|
|
26
|
+
shift needs an engineer's review. Timoshenko packages these steps as a
|
|
27
|
+
tested, embeddable Python library so a monitoring application can call them
|
|
28
|
+
instead of rebuilding them.
|
|
29
|
+
|
|
30
|
+
- **Modal identification:** peak picking, FDD/EFDD and covariance-driven SSI,
|
|
31
|
+
including asynchronous channel alignment
|
|
32
|
+
- **Model comparison and updating:** frequency and MAC checks, global and
|
|
33
|
+
per-story stiffness updating, environmental normalization
|
|
34
|
+
- **Health assessment:** evidence-oriented mode-change reports with a review
|
|
35
|
+
threshold that you choose explicitly
|
|
36
|
+
- **Structural models:** shear buildings plus linear 2D/3D trusses and frames
|
|
37
|
+
(static, modal, buckling, Newmark time history)
|
|
38
|
+
- **Monitoring runtime:** rolling-window sessions with SQLite/PostgreSQL
|
|
39
|
+
history and CSV, MQTT and OGC SensorThings sources
|
|
40
|
+
- **Engineering calculations:** section properties, beam, torsion and
|
|
41
|
+
buckling formulas, and GUM/Monte Carlo uncertainty
|
|
42
|
+
|
|
43
|
+
It is not a hosted monitoring service or a general finite-element solver.
|
|
27
44
|
|
|
28
45
|
> **Alpha:** the API may still change between releases. Every behavior change
|
|
29
46
|
> is listed in the [changelog](https://timoshenko.readthedocs.io/en/latest/changelog/).
|
|
@@ -41,6 +58,10 @@ The distribution is named `timoshenko-engine`; the import package is
|
|
|
41
58
|
python -m pip install "timoshenko-engine[mqtt]"
|
|
42
59
|
```
|
|
43
60
|
|
|
61
|
+
For the synchronous PostgreSQL history backend, install
|
|
62
|
+
`timoshenko-engine[postgres]`. SQLite is included with Python and needs no
|
|
63
|
+
extra dependency.
|
|
64
|
+
|
|
44
65
|
## Quick start
|
|
45
66
|
|
|
46
67
|
Compare measured vibration with a reference model. This example simulates a
|
|
@@ -117,11 +138,12 @@ for the stiffness, mass and scope assumptions.
|
|
|
117
138
|
| Area | Components |
|
|
118
139
|
|---|---|
|
|
119
140
|
| Engineering calculations | Section properties (including polygons with holes), beam deflection with shear, torsion, Euler buckling, plane stress, thin-wall pressure, SDOF vibration, Rayleigh damping, and GUM / Monte Carlo uncertainty |
|
|
120
|
-
| Structural models | Lumped-mass shear buildings
|
|
121
|
-
| Modal analysis | Single-channel peak picking
|
|
122
|
-
| Model comparison |
|
|
123
|
-
|
|
|
124
|
-
|
|
|
141
|
+
| Structural models | Lumped-mass shear buildings; linear 2D trusses and frames with static, modal, P-delta and buckling analysis; and linear 3D trusses and frames with static, modal and ideal buckling analysis |
|
|
142
|
+
| Modal analysis | Single-channel peak picking, optional EFDD damping, multi-channel FDD, covariance-driven SSI and asynchronous channel alignment |
|
|
143
|
+
| Model comparison | Frequency and MAC tools, global and per-story stiffness updating, environmental frequency normalization, and evidence-oriented health assessment |
|
|
144
|
+
| Time history | Newmark average-acceleration response with optional Rayleigh damping and base acceleration for 2D and 3D models |
|
|
145
|
+
| Monitoring | Bounded rolling-window sessions, restart from SQLite or PostgreSQL history, and source adapters for CSV, MQTT, and OGC SensorThings |
|
|
146
|
+
| Data and reporting | Project manifests with SHA-256 provenance, SQLite and optional PostgreSQL history, and standalone HTML reports |
|
|
125
147
|
|
|
126
148
|
Sensor collection, alarm policy, and engineering interpretation remain with the
|
|
127
149
|
application that embeds Timoshenko.
|
|
@@ -129,7 +151,10 @@ application that embeds Timoshenko.
|
|
|
129
151
|
## Multi-channel modal analysis
|
|
130
152
|
|
|
131
153
|
Frequency domain decomposition needs synchronized channels with a common
|
|
132
|
-
sample rate and unit
|
|
154
|
+
sample rate and unit. FDD can optionally estimate damping with EFDD; use
|
|
155
|
+
covariance-driven SSI when you also need a pole-stability screening indicator.
|
|
156
|
+
For asynchronous sources, `tm.align_multichannel` can apply explicit clock
|
|
157
|
+
offsets and calibration before resampling onto one shared grid:
|
|
133
158
|
|
|
134
159
|
```python
|
|
135
160
|
signals = tm.load_multichannel_csv(
|
|
@@ -143,6 +168,9 @@ for mode in fdd.modes:
|
|
|
143
168
|
print(mode.frequency_hz, mode.shape_real)
|
|
144
169
|
```
|
|
145
170
|
|
|
171
|
+
Pass `estimate_damping=True` to request EFDD damping estimates; unresolved
|
|
172
|
+
estimates are returned as `None`. See [advanced OMA and channel alignment](https://timoshenko.readthedocs.io/en/latest/advanced-oma/).
|
|
173
|
+
|
|
146
174
|
## Monitoring sessions
|
|
147
175
|
|
|
148
176
|
A host application feeds timestamped observation batches. The session aligns
|
|
@@ -186,8 +214,9 @@ The full documentation is at
|
|
|
186
214
|
- Timoshenko is alpha software and is not a structural safety certification tool.
|
|
187
215
|
- The shear-building model is a small lumped-mass reference model, not a full FEM solver.
|
|
188
216
|
- Modal identification is a screening estimate. A single sensor may miss a mode near a modal node; unpaired peaks are reported rather than compared with the wrong mode.
|
|
189
|
-
- Damping is a
|
|
190
|
-
-
|
|
217
|
+
- Damping is a screening estimate. Peak-picking requires a resolved half-power bandwidth; EFDD and SSI damping can be sensitive to record length, mode overlap and model settings.
|
|
218
|
+
- `tm.update` applies one stiffness scale to all stories. `tm.update_story_stiffness` fits individual story scales from a complete ordered modal set, but neither method locates or sizes damage reliably without an identifiable model and engineering review.
|
|
219
|
+
- The 3D solver uses dense matrices, prismatic Euler-Bernoulli frame members, ideal restraints and nodal loads. It does not analyze plates, shells, nonlinear response or design-code compliance.
|
|
191
220
|
- A frequency shift is evidence for human review, not a damage verdict. Temperature, sensor placement, boundary conditions, and other effects also shift measured frequencies.
|
|
192
221
|
- Closed-form mechanics and section functions rely on their documented ideal assumptions. They are not code-compliance checks.
|
|
193
222
|
|
|
@@ -224,6 +253,19 @@ always resolves to the latest release; each release also has its own DOI on
|
|
|
224
253
|
[`CITATION.cff`](https://github.com/Ayberkrk/timoshenko/blob/main/CITATION.cff),
|
|
225
254
|
which GitHub's "Cite this repository" button reads.
|
|
226
255
|
|
|
256
|
+
Author: Ayberk Korkmaz, Eskişehir Osmangazi University
|
|
257
|
+
([ORCID 0009-0009-0699-090X](https://orcid.org/0009-0009-0699-090X)).
|
|
258
|
+
|
|
259
|
+
## Contributors
|
|
260
|
+
|
|
261
|
+
Thanks to everyone who has contributed:
|
|
262
|
+
|
|
263
|
+
<a href="https://github.com/Ayberkrk/timoshenko/graphs/contributors">
|
|
264
|
+
<img src="https://contrib.rocks/image?repo=Ayberkrk/timoshenko" alt="Contributors" />
|
|
265
|
+
</a>
|
|
266
|
+
|
|
267
|
+
New here? The [good first issues](https://github.com/Ayberkrk/timoshenko/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) each come with a clear "done when" check, and questions are welcome in [Discussions](https://github.com/Ayberkrk/timoshenko/discussions). If the project is useful to you, a star helps others find it.
|
|
268
|
+
|
|
227
269
|
## License
|
|
228
270
|
|
|
229
271
|
Apache License 2.0. See [LICENSE](https://github.com/Ayberkrk/timoshenko/blob/main/LICENSE).
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "timoshenko-engine"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.2.0"
|
|
8
8
|
description = "Composable structural engineering calculations and analysis primitives for Python applications."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -38,6 +38,7 @@ mqtt = ["paho-mqtt>=2.1,<3"]
|
|
|
38
38
|
test = ["pytest>=7", "pytest-cov>=5"]
|
|
39
39
|
lint = ["ruff>=0.6", "mypy>=1.10"]
|
|
40
40
|
docs = ["mkdocs-material>=9.5,<10"]
|
|
41
|
+
postgres = ["psycopg[binary]>=3.2,<4"]
|
|
41
42
|
|
|
42
43
|
[project.entry-points."timoshenko.plugins"]
|
|
43
44
|
mqtt = "timoshenko.mqtt:MqttPlugin"
|
|
@@ -69,6 +70,7 @@ relative_files = true
|
|
|
69
70
|
|
|
70
71
|
[tool.coverage.report]
|
|
71
72
|
show_missing = true
|
|
73
|
+
fail_under = 90
|
|
72
74
|
|
|
73
75
|
[tool.ruff]
|
|
74
76
|
target-version = "py310"
|
|
@@ -76,7 +78,7 @@ src = ["src", "tests"]
|
|
|
76
78
|
line-length = 100
|
|
77
79
|
|
|
78
80
|
[tool.ruff.lint]
|
|
79
|
-
select = ["E4", "E7", "E9", "F", "I", "B"]
|
|
81
|
+
select = ["E4", "E7", "E9", "F", "I", "B", "SIM", "C4", "PT011", "PT012"]
|
|
80
82
|
|
|
81
83
|
[tool.ruff.lint.isort]
|
|
82
84
|
force-sort-within-sections = true
|
|
@@ -2,17 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
from . import (
|
|
4
4
|
adapters,
|
|
5
|
+
alignment,
|
|
5
6
|
assets,
|
|
6
7
|
beams,
|
|
7
8
|
csv_source,
|
|
9
|
+
dynamics,
|
|
10
|
+
environmental,
|
|
8
11
|
health,
|
|
9
12
|
mechanics,
|
|
10
13
|
modal,
|
|
14
|
+
model_update,
|
|
11
15
|
mqtt,
|
|
12
16
|
observations,
|
|
13
17
|
oma,
|
|
14
18
|
plugins,
|
|
15
19
|
polygon,
|
|
20
|
+
postgres,
|
|
16
21
|
pressure,
|
|
17
22
|
project,
|
|
18
23
|
report,
|
|
@@ -20,14 +25,17 @@ from . import (
|
|
|
20
25
|
sensorthings,
|
|
21
26
|
session,
|
|
22
27
|
shafts,
|
|
28
|
+
ssi,
|
|
23
29
|
stability,
|
|
24
30
|
storage,
|
|
25
31
|
strength,
|
|
26
32
|
structural,
|
|
33
|
+
structural_3d,
|
|
27
34
|
uncertainty,
|
|
28
35
|
vibration,
|
|
29
36
|
)
|
|
30
37
|
from .adapters import AcknowledgingObservationSource, ObservationSource, SessionRunner
|
|
38
|
+
from .alignment import AlignedSegment, AlignmentResult, TimedChannel, align_multichannel
|
|
31
39
|
from .assets import Asset, Relation
|
|
32
40
|
from .beams import (
|
|
33
41
|
BeamDeflection,
|
|
@@ -37,6 +45,8 @@ from .beams import (
|
|
|
37
45
|
simply_supported_uniform_load,
|
|
38
46
|
)
|
|
39
47
|
from .csv_source import CSVObservationSource, CSVSourceError
|
|
48
|
+
from .dynamics import TimeHistoryResult, analyze_time_history
|
|
49
|
+
from .environmental import EnvironmentalFrequencyBaseline, fit_environmental_baseline
|
|
40
50
|
from .health import HealthAssessment
|
|
41
51
|
from .mechanics import (
|
|
42
52
|
average_shear_stress,
|
|
@@ -48,6 +58,7 @@ from .mechanics import (
|
|
|
48
58
|
youngs_modulus_from_shear,
|
|
49
59
|
)
|
|
50
60
|
from .modal import ModalResult, Mode
|
|
61
|
+
from .model_update import StoryUpdateResult, update_story_stiffness
|
|
51
62
|
from .monitor import MonitoringResult, monitor
|
|
52
63
|
from .mqtt import MqttObservationSource, MQTTSourceError
|
|
53
64
|
from .multichannel import MultiChannelData, load_multichannel_csv
|
|
@@ -68,6 +79,7 @@ from .polygon import (
|
|
|
68
79
|
polygon_bending_stress_pa,
|
|
69
80
|
polygon_section,
|
|
70
81
|
)
|
|
82
|
+
from .postgres import PostgresStore
|
|
71
83
|
from .pressure import ThinWallCylinderResult, thin_wall_cylinder_stress
|
|
72
84
|
from .project import (
|
|
73
85
|
LoadedProject,
|
|
@@ -95,8 +107,9 @@ from .session import (
|
|
|
95
107
|
SessionRestoreResult,
|
|
96
108
|
)
|
|
97
109
|
from .shafts import CircularTorsionResult, circular_shaft_torsion
|
|
110
|
+
from .ssi import SSIMode, SSIResult, identify_ssi
|
|
98
111
|
from .stability import euler_critical_load, slenderness_ratio
|
|
99
|
-
from .storage import BatchAppendResult, SQLiteStore
|
|
112
|
+
from .storage import BatchAppendResult, HistoryStore, SQLiteStore
|
|
100
113
|
from .strength import PlaneStressResult, plane_stress
|
|
101
114
|
from .structural import (
|
|
102
115
|
AxialMember,
|
|
@@ -118,11 +131,27 @@ from .structural import (
|
|
|
118
131
|
modal_assurance_criterion,
|
|
119
132
|
recover_member_response,
|
|
120
133
|
)
|
|
134
|
+
from .structural_3d import (
|
|
135
|
+
BucklingAnalysis3DResult,
|
|
136
|
+
FrameMaterial3D,
|
|
137
|
+
FrameMember3D,
|
|
138
|
+
FrameNode3D,
|
|
139
|
+
FrameSection3D,
|
|
140
|
+
ModalAnalysis3DResult,
|
|
141
|
+
StaticAnalysis3DResult,
|
|
142
|
+
StructuralModel3D,
|
|
143
|
+
TrussMember3D,
|
|
144
|
+
analyze_linear_buckling_3d,
|
|
145
|
+
analyze_linear_static_3d,
|
|
146
|
+
analyze_modes_3d,
|
|
147
|
+
assemble_matrices_3d,
|
|
148
|
+
)
|
|
121
149
|
from .structure import Structure
|
|
122
150
|
from .uncertainty import UncertaintyError, UncertaintyResult
|
|
123
151
|
from .uncertainty import propagate as propagate_uncertainty
|
|
124
152
|
from .update import update
|
|
125
153
|
from .vibration import (
|
|
154
|
+
HarmonicResponse,
|
|
126
155
|
RayleighDampingResult,
|
|
127
156
|
damping_ratio,
|
|
128
157
|
harmonic_response,
|
|
@@ -130,10 +159,20 @@ from .vibration import (
|
|
|
130
159
|
rayleigh_damping_coefficients,
|
|
131
160
|
)
|
|
132
161
|
|
|
133
|
-
__version__ = "2.
|
|
162
|
+
__version__ = "2.2.0"
|
|
134
163
|
|
|
135
164
|
__all__ = [
|
|
165
|
+
"AlignmentResult",
|
|
166
|
+
"AlignedSegment",
|
|
167
|
+
"BucklingAnalysis3DResult",
|
|
168
|
+
"FrameMaterial3D",
|
|
169
|
+
"FrameMember3D",
|
|
170
|
+
"FrameNode3D",
|
|
171
|
+
"FrameSection3D",
|
|
172
|
+
"HistoryStore",
|
|
136
173
|
"HealthAssessment",
|
|
174
|
+
"EnvironmentalFrequencyBaseline",
|
|
175
|
+
"StoryUpdateResult",
|
|
137
176
|
"Asset",
|
|
138
177
|
"BatchAppendResult",
|
|
139
178
|
"CSVObservationSource",
|
|
@@ -148,6 +187,7 @@ __all__ = [
|
|
|
148
187
|
"ModalResult",
|
|
149
188
|
"Mode",
|
|
150
189
|
"MonitoringSession",
|
|
190
|
+
"ModalAnalysis3DResult",
|
|
151
191
|
"MqttObservationSource",
|
|
152
192
|
"MQTTSourceError",
|
|
153
193
|
"FDDMode",
|
|
@@ -184,28 +224,47 @@ __all__ = [
|
|
|
184
224
|
"SectionProperties",
|
|
185
225
|
"ThinWallCylinderResult",
|
|
186
226
|
"RayleighDampingResult",
|
|
227
|
+
"HarmonicResponse",
|
|
187
228
|
"PlaneStressResult",
|
|
188
229
|
"PolygonSectionProperties",
|
|
189
230
|
"ProjectManifest",
|
|
190
231
|
"ProjectRunResult",
|
|
191
232
|
"Relation",
|
|
192
233
|
"SQLiteStore",
|
|
234
|
+
"PostgresStore",
|
|
235
|
+
"SSIMode",
|
|
236
|
+
"SSIResult",
|
|
193
237
|
"SessionIngestResult",
|
|
194
238
|
"SessionReport",
|
|
195
239
|
"SessionRestoreResult",
|
|
196
240
|
"SessionRunner",
|
|
241
|
+
"StaticAnalysis3DResult",
|
|
242
|
+
"StructuralModel3D",
|
|
243
|
+
"TimeHistoryResult",
|
|
244
|
+
"TimedChannel",
|
|
245
|
+
"TrussMember3D",
|
|
197
246
|
"axial_strain",
|
|
198
247
|
"axial_stress",
|
|
199
248
|
"average_shear_stress",
|
|
200
249
|
"bending_stress",
|
|
201
250
|
"beams",
|
|
251
|
+
"alignment",
|
|
252
|
+
"align_multichannel",
|
|
253
|
+
"analyze_linear_buckling_3d",
|
|
254
|
+
"analyze_linear_static_3d",
|
|
255
|
+
"analyze_modes_3d",
|
|
256
|
+
"analyze_time_history",
|
|
257
|
+
"assemble_matrices_3d",
|
|
202
258
|
"csv_source",
|
|
203
259
|
"cantilever_tip_load",
|
|
204
260
|
"cantilever_uniform_load",
|
|
205
261
|
"circular_shaft_torsion",
|
|
206
262
|
"circular_tube_section",
|
|
207
263
|
"damping_ratio",
|
|
264
|
+
"dynamics",
|
|
208
265
|
"euler_critical_load",
|
|
266
|
+
"environmental",
|
|
267
|
+
"fit_environmental_baseline",
|
|
209
268
|
"harmonic_response",
|
|
210
269
|
"health",
|
|
211
270
|
"i_section",
|
|
@@ -213,6 +272,7 @@ __all__ = [
|
|
|
213
272
|
"load_multichannel_csv",
|
|
214
273
|
"mechanics",
|
|
215
274
|
"modal",
|
|
275
|
+
"model_update",
|
|
216
276
|
"mqtt",
|
|
217
277
|
"monitor",
|
|
218
278
|
"natural_frequency_hz",
|
|
@@ -225,6 +285,7 @@ __all__ = [
|
|
|
225
285
|
"project",
|
|
226
286
|
"plugins",
|
|
227
287
|
"polygon",
|
|
288
|
+
"postgres",
|
|
228
289
|
"polygon_section",
|
|
229
290
|
"polygon_bending_stress_pa",
|
|
230
291
|
"report",
|
|
@@ -235,6 +296,8 @@ __all__ = [
|
|
|
235
296
|
"read_manifest",
|
|
236
297
|
"sections",
|
|
237
298
|
"sensorthings",
|
|
299
|
+
"ssi",
|
|
300
|
+
"identify_ssi",
|
|
238
301
|
"session",
|
|
239
302
|
"shafts",
|
|
240
303
|
"simply_supported_midpoint_load",
|
|
@@ -246,10 +309,12 @@ __all__ = [
|
|
|
246
309
|
"thermal_strain",
|
|
247
310
|
"thin_wall_cylinder_stress",
|
|
248
311
|
"update",
|
|
312
|
+
"update_story_stiffness",
|
|
249
313
|
"vibration",
|
|
250
314
|
"assets",
|
|
251
315
|
"adapters",
|
|
252
316
|
"structural",
|
|
317
|
+
"structural_3d",
|
|
253
318
|
"analyze_linear_static",
|
|
254
319
|
"analyze_modes",
|
|
255
320
|
"analyze_p_delta",
|