{"id":1935,"date":"2026-11-28T22:38:53","date_gmt":"2026-11-29T03:38:53","guid":{"rendered":"https:\/\/web.uri.edu\/nld\/?page_id=1935"},"modified":"2026-11-28T22:38:53","modified_gmt":"2026-11-29T03:38:53","slug":"sod-toolbox","status":"publish","type":"page","link":"https:\/\/web.uri.edu\/nld\/sod-toolbox\/","title":{"rendered":"SOD toolbox"},"content":{"rendered":"\n<div class=\"nld-page-band\" style=\"background:#132433;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 32px\">\n<div><p style=\"margin:0 0 10px;font-size:13px;line-height:16px;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;color:#A9B6BF\"><span style=\"display:inline-block;width:24px;height:4px;background:#D98A52;vertical-align:middle;margin-right:10px\"><\/span>Nonlinear Dynamics Laboratory<\/p>\n<h1 style=\"color:#F7F6F2;font-size:36px;line-height:42px;margin:0\">SOD toolbox<\/h1><\/div>\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/web.uri.edu\/nld\/wp-content\/uploads\/sites\/1815\/nld-hero-on-navy.jpg\" alt=\"\" width=\"96\" height=\"96\" style=\"width:96px;height:auto;flex:none\">\n<\/div>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/rayleigh_quotient.gif\" alt=\"Animation: a trial covector sweeps through all directions of a two-mass chain; the roughness of the coordinate it reads is smallest at omega 1 and largest at omega 2, where the coordinate is a single mode\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">Each direction reads one coordinate of the record. SOD keeps the directions where that coordinate is smoothest or roughest; for an undamped chain they read single modes at the natural frequencies. The POD axes (dotted) are orthogonal; the smooth modes are not.<\/figcaption><\/figure>\n\n<p class=\"wp-block-paragraph\">Smooth orthogonal decomposition (SOD): the coordinates of a multichannel record that change most slowly in time, for modal identification, damping estimation, trend extraction and reduced-order models. Python and MATLAB, MIT license.<\/p>\n\n<p style=\"margin:8px 0 24px\"><a href=\"https:\/\/github.com\/nld-uri\/sod-toolbox\" style=\"display:inline-block;background:#9A5323;color:#FFFFFF;padding:10px 16px;border-radius:2px;text-decoration:none;font-weight:600;margin:0 8px 8px 0\">Code on GitHub<\/a><a href=\"https:\/\/github.com\/nld-uri\/sod-toolbox\/blob\/main\/docs\/manual\/SOD_manual.pdf\" style=\"display:inline-block;border:1px solid #8A8578;color:#132433;padding:9px 16px;border-radius:2px;text-decoration:none;margin:0 8px 8px 0\">User manual (PDF)<\/a><a href=\"https:\/\/claude.ai\/artifact\/Fh5UGnY3oUgTfQRKY9xb7y\" style=\"display:inline-block;border:1px solid #8A8578;color:#132433;padding:9px 16px;border-radius:2px;text-decoration:none;margin:0 8px 8px 0\">Live slides<\/a><a href=\"https:\/\/github.com\/nld-uri\/sod-toolbox\/blob\/main\/docs\/slides\/SOD_toolbox_slides.pdf\" style=\"display:inline-block;border:1px solid #8A8578;color:#132433;padding:9px 16px;border-radius:2px;text-decoration:none;margin:0 8px 8px 0\">Slides (PDF)<\/a><a href=\"https:\/\/github.com\/nld-uri\/sod-toolbox\/raw\/main\/docs\/slides\/SOD_toolbox.pptx\" style=\"display:inline-block;border:1px solid #8A8578;color:#132433;padding:9px 16px;border-radius:2px;text-decoration:none;margin:0 8px 8px 0\">Slides (PowerPoint)<\/a><\/p>\n\n<p style=\"margin:40px 0 8px;font-size:13px;line-height:16px;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;color:#5B6168\"><span style=\"display:inline-block;width:24px;height:4px;background:#B4622A;vertical-align:middle;margin-right:10px\"><\/span>The decomposition<\/p>\n\n<h2 class=\"wp-block-heading\">One real symmetric pencil, smoothest coordinates first<\/h2>\n\n<p class=\"wp-block-paragraph\">For a record <math><mi mathvariant=\"bold\">X<\/mi><\/math> with time along the rows and its time derivative, SOD solves<\/p>\n\n<math display=\"block\" style=\"display:block math;font-family:&apos;Latin Modern Math&apos;,&apos;STIX Two Math&apos;,&apos;Cambria Math&apos;,math;font-size:1.15em;margin:16px 0\"><mrow><msub><mi mathvariant=\"bold\">\u03a3<\/mi><mi>v<\/mi><\/msub><mi mathvariant=\"bold-italic\">\u03c8<\/mi><mo>=<\/mo><mi>\u03bc<\/mi><msub><mi mathvariant=\"bold\">\u03a3<\/mi><mi>x<\/mi><\/msub><mi mathvariant=\"bold-italic\">\u03c8<\/mi><mo>,<\/mo><mspace width=\"2em\" \/><msub><mi mathvariant=\"bold\">\u03a3<\/mi><mi>x<\/mi><\/msub><mo>=<\/mo><mo>\u27e8<\/mo><mi mathvariant=\"bold\">x<\/mi><msup><mi mathvariant=\"bold\">x<\/mi><mo>\u22a4<\/mo><\/msup><mo>\u27e9<\/mo><mo>,<\/mo><mspace width=\"1em\" \/><msub><mi mathvariant=\"bold\">\u03a3<\/mi><mi>v<\/mi><\/msub><mo>=<\/mo><mo>\u27e8<\/mo><mover><mi mathvariant=\"bold\">x<\/mi><mo>\u02d9<\/mo><\/mover><msup><mover><mi mathvariant=\"bold\">x<\/mi><mo>\u02d9<\/mo><\/mover><mo>\u22a4<\/mo><\/msup><mo>\u27e9<\/mo><\/mrow><\/math>\n\n<p class=\"wp-block-paragraph\">with the values <math><mi>\u03bc<\/mi><\/math> ascending. Each value is the mean-square frequency of its coordinate <math><mi mathvariant=\"bold\">q<\/mi><mo>=<\/mo><mi mathvariant=\"bold\">X<\/mi><mi mathvariant=\"bold\">\u03a8<\/mi><\/math>. When the modal coordinates of an undamped structure are uncorrelated and in virial balance, the smooth orthogonal values <math><mn>1<\/mn><mo>\/<\/mo><mi>\u03bc<\/mi><\/math> are exactly <math><mn>1<\/mn><mo>\/<\/mo><msubsup><mi>\u03c9<\/mi><mi>i<\/mi><mn>2<\/mn><\/msubsup><\/math> and the smooth modes are the linear normal modes.<\/p>\n<p class=\"wp-block-paragraph\">SOD here is the temporal form: it smooths the coordinates in time. Its spatial dual, smooth mode decomposition (SMD; Li, Wanchoo, Shukla and Chelidze, <em>Mechanical Systems and Signal Processing<\/em> 200 (2023) 110541), smooths the mode shapes in space and suits full-field data that are richer in space than in time; the toolbox implements it in its <code>smd<\/code> module. A smooth mode of SOD is the shape paired with a temporally smooth coordinate, not a spatially smoothed shape.<\/p>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/ex01_linear_chain.jpg\" alt=\"Smooth orthogonal values against one over omega squared, and smooth modes against the linear normal modes, for a 4-DOF chain\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">A 4-DOF chain with equal modal energies: the values fall on 1\/\u03c9\u00b2 to within 5\u00d710\u207b\u2074 and the smooth modes on the linear normal modes.<\/figcaption><\/figure>\n\n<p style=\"margin:40px 0 8px;font-size:13px;line-height:16px;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;color:#5B6168\"><span style=\"display:inline-block;width:24px;height:4px;background:#B4622A;vertical-align:middle;margin-right:10px\"><\/span>Damping<\/p>\n\n<h2 class=\"wp-block-heading\">State SOD returns each damped mode as a decaying plane<\/h2>\n\n<p class=\"wp-block-paragraph\">Damping biases the plain decomposition through the circulation of the response and, in a free decay, through the energy lost over the record. The same pencil on the state <math><mo>(<\/mo><mi mathvariant=\"bold\">x<\/mi><mo>,<\/mo><mover><mi mathvariant=\"bold\">x<\/mi><mo>\u02d9<\/mo><\/mover><mo>)<\/mo><\/math> returns each complex mode as a pair of coordinates spanning its modal plane, with <math><msub><mi>\u03bc<\/mi><mi>a<\/mi><\/msub><msub><mi>\u03bc<\/mi><mi>b<\/mi><\/msub><mo>=<\/mo><msup><mrow><mo>|<\/mo><mi>s<\/mi><mo>|<\/mo><\/mrow><mn>4<\/mn><\/msup><\/math>. A least-squares fit on the plane gives its damping.<\/p>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/state_plane.gif\" alt=\"Animation: two state-SOD coordinates of a damped chain trace a decaying circle\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">The mode-1 plane of a damped 4-DOF chain. Fitted on all coordinates at once, the decay returns every damping ratio to machine precision; plane by plane, to within 1%.<\/figcaption><\/figure>\n\n<p style=\"margin:40px 0 8px;font-size:13px;line-height:16px;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;color:#5B6168\"><span style=\"display:inline-block;width:24px;height:4px;background:#B4622A;vertical-align:middle;margin-right:10px\"><\/span>Practical data<\/p>\n\n<h2 class=\"wp-block-heading\">Derivatives, sensor noise, recognition and trends<\/h2>\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Your data<\/th><th>Use<\/th><\/tr><\/thead><tbody><tr><td>Displacement and velocity<\/td><td><code>sod(X, V)<\/code><\/td><\/tr><tr><td>Displacement only, clean<\/td><td><code>sod(X, dt=dt)<\/code>, then <code>cd_correct<\/code><\/td><\/tr><tr><td>Displacement with white sensor noise<\/td><td><code>sod(X, dt=dt, h=2, lag=5)<\/code><\/td><\/tr><tr><td>Damped free decay<\/td><td><code>state_sod<\/code>, <code>pair_state<\/code>, <code>decay_damping<\/code><\/td><\/tr><tr><td>Smooth trend under fast content<\/td><td><code>sod(X, dt=dt, h=15, lag=31, center=True)<\/code><\/td><\/tr><tr><td>Nonlinear free decay<\/td><td><code>sod_track(X, dt, nwin, step, boundary=True)<\/code><\/td><\/tr><tr><td>Reduced-order model<\/td><td><code>sod_modes<\/code>, <code>rom_config<\/code>, <code>rom_state<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">Modes are recognized by their spectral peaks and planes by circularity, never by the smoothness order: a noise direction or a drift can be smoother than a weakly excited mode.<\/p>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/trend_extraction.gif\" alt=\"Animation: as sensor noise grows to 3 percent, the smoothest SOD coordinate follows a hidden drift with the error of the oracle unmixing; the leading POD coordinate does not\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">No dynamics needed: six channels mix a drift, a slow cycle and four fast sources. The smoothest coordinate recovers the drift with the error of the oracle unmixing.<\/figcaption><\/figure>\n\n<p style=\"margin:40px 0 8px;font-size:13px;line-height:16px;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;color:#5B6168\"><span style=\"display:inline-block;width:24px;height:4px;background:#B4622A;vertical-align:middle;margin-right:10px\"><\/span>Nonlinear systems<\/p>\n\n<h2 class=\"wp-block-heading\">Windowed SOD traces frequency-energy dependence<\/h2>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/backbone_tracking.gif\" alt=\"Animation: a window slides along a hardening decay; the SOD frequency of each window follows the zero-crossing frequency back to the linear frequency\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">A hardening two-mass chain decays from 12% above its linear frequency. With a symmetric boundary correction the windowed frequency follows the zero-crossing frequency to a median 4\u00d710\u207b\u2074.<\/figcaption><\/figure>\n\n<p class=\"wp-block-paragraph\">The toolbox also builds reduced-order models on smooth modes, linear normal modes, POD and MTA bases, with exact simulation, and a linear-core-plus-residual basis for nonlinear structures. It is the common code of the lab&#8217;s SOD papers, now in preparation.<\/p>\n\n<p style=\"margin:40px 0 8px;font-size:13px;line-height:16px;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;color:#5B6168\"><span style=\"display:inline-block;width:24px;height:4px;background:#B4622A;vertical-align:middle;margin-right:10px\"><\/span>Full-field data<\/p>\n\n<h2 class=\"wp-block-heading\">Smooth mode decomposition: mode shapes and frequencies from snapshots in any order<\/h2>\n\n<p class=\"wp-block-paragraph\">SMD transposes SOD. It combines snapshots instead of channels and uses spatial derivatives of the measured field instead of velocities, so it needs no time order, spacing or Nyquist rate. Choose the operator from the physics: gradient for strings, membranes and flows; second derivative for beams; the Kirchhoff energy for plates. With density and stiffness weights its values are the squared natural frequencies of the structure.<\/p>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/ex05_smd_membrane.jpg\" alt=\"Eight membrane modes from SMD and their wavenumber errors from 200 and from 8 unordered snapshots\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">Eight snapshots give the first eight modes of a membrane; the remaining wavenumber error, 0.4% or less, is the central-difference bias.<\/figcaption><\/figure>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/ex06_smd_nonuniform_beam.jpg\" alt=\"True and unit-weight SMD modes of a non-uniform beam, and the frequency error with physical weights against grid spacing\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">A beam whose mass triples along the span: unit weights bias the shapes; density and stiffness weights give the exact modes and the natural frequencies, with an error that falls as h\u00b2.<\/figcaption><\/figure>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/ex09_smd_subnyquist.jpg\" alt=\"Frequency error against sampling rate for SMD and SOD on a beam\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">Down to 0.035 times the highest natural frequency, and from 12 randomly timed snapshots, SMD reads all six frequencies to 2\u00d710\u207b\u2074. SOD needs time-resolved data.<\/figcaption><\/figure>\n\n<figure style=\"margin:24px 0\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/nld-uri\/sod-toolbox\/main\/docs\/web\/ex07_smd_noise.jpg\" alt=\"Wavenumber error against smoothing cutoff for Whittaker and Savitzky-Golay derivatives at three noise levels\" style=\"width:100%;height:auto;border:1px solid #DCD9D2\"><figcaption style=\"font-size:14px;color:#5B6168;margin-top:8px\">Noisy fields need regularized derivatives. Plain differences fail; Whittaker smoothing near 3 to 5 times the largest wavenumber restores the cantilever wavenumbers to below 1%.<\/figcaption><\/figure>\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Your data<\/th><th>Use<\/th><\/tr><\/thead><tbody><tr><td>Clean full-field snapshots<\/td><td><code>smd(W, g, op, 'fd')<\/code><\/td><\/tr><tr><td>Noisy, or with holes<\/td><td><code>smd(W, g, op, 'whittaker', kc=...)<\/code>, choose <code>kc<\/code> with <code>smd_kc_scan<\/code><\/td><\/tr><tr><td>Known density and stiffness<\/td><td><code>smd(..., density=rho, stiffness=EI)<\/code>, frequencies in <code>R.omega<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n<p style=\"margin:40px 0 8px;font-size:13px;line-height:16px;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;color:#5B6168\"><span style=\"display:inline-block;width:24px;height:4px;background:#B4622A;vertical-align:middle;margin-right:10px\"><\/span>Getting started<\/p>\n\n<h2 class=\"wp-block-heading\">Using the code<\/h2>\n\n<p class=\"wp-block-paragraph\">Python (NumPy and SciPy):<\/p>\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/nld-uri\/sod-toolbox.git\nexport PYTHONPATH=$PWD\/sod-toolbox\/python\n\nimport sodtoolbox as st\nR  = st.sod(X, V)                     # X, V: samples x channels\nR.freq, R.Phi, R.Q                    # SOD frequencies, smooth modes, coordinates\nRs = st.state_sod(Y, Yd)              # Y = [X V], Yd = [V A]\nD  = st.decay_damping(Rs, Yd, dt, wmax)   # per-plane eigenvalues and zeta<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">MATLAB (base MATLAB, no toolboxes):<\/p>\n\n<pre class=\"wp-block-code\"><code>addpath('sod-toolbox\/matlab')\nR  = sod_decomp(X, V);\nRs = sod_state(Y, Yd);\nplanes = sod_pair_state(Rs.Q, dt, wmax, struct('Phi', Rs.Phi));<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/github.com\/nld-uri\/sod-toolbox\/blob\/main\/docs\/manual\/SOD_manual.pdf\">user manual<\/a> covers the theory, the options and ten worked examples; the <a href=\"https:\/\/github.com\/nld-uri\/sod-toolbox\/blob\/main\/docs\/slides\/SOD_toolbox_slides.pdf\">slides<\/a> summarize them; the <a href=\"https:\/\/github.com\/nld-uri\/sod-toolbox\">repository README<\/a> lists the contents.<\/p>\n\n<p style=\"margin:40px 0 8px;font-size:13px;line-height:16px;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;color:#5B6168\"><span style=\"display:inline-block;width:24px;height:4px;background:#B4622A;vertical-align:middle;margin-right:10px\"><\/span>Citation<\/p>\n\n<h2 class=\"wp-block-heading\">How to cite<\/h2>\n\n<p class=\"wp-block-paragraph\">Please cite the software, archived on Zenodo as <a href=\"https:\/\/doi.org\/10.5281\/zenodo.24602190\">doi:10.5281\/zenodo.24602190<\/a>, and the method paper.<\/p>\n\n<pre class=\"wp-block-code\"><code>@software{chelidze2026sod,\n  author    = {Chelidze, David},\n  title     = {{SOD} toolbox: smooth orthogonal decomposition and smooth mode decomposition for {Python} and {MATLAB}},\n  version   = {0.3.0},\n  year      = {2026},\n  publisher = {Zenodo},\n  doi       = {10.5281\/zenodo.24602190},\n  url       = {https:\/\/github.com\/nld-uri\/sod-toolbox}\n}\n\n@article{chelidze2006sod,\n  author  = {Chelidze, David and Zhou, Wenliang},\n  title   = {Smooth orthogonal decomposition-based vibration mode identification},\n  journal = {Journal of Sound and Vibration},\n  volume  = {292},\n  number  = {3--5},\n  pages   = {461--473},\n  year    = {2006},\n  doi     = {10.1016\/j.jsv.2005.08.006}\n}<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">For smooth mode decomposition, please also cite H. Li, P. Wanchoo, A. Shukla, D. Chelidze, <em>Mechanical Systems and Signal Processing<\/em> 200 (2023) 110541, <a href=\"https:\/\/doi.org\/10.1016\/j.ymssp.2023.110541\">doi:10.1016\/j.ymssp.2023.110541<\/a>.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Nonlinear Dynamics Laboratory SOD toolbox Each direction reads one coordinate of the record. SOD keeps the directions where that coordinate is smoothest or roughest; for an undamped chain they read single modes at the natural frequencies. The POD axes (dotted) are orthogonal; the smooth modes are not. Smooth orthogonal decomposition (SOD): the coordinates of a [&hellip;]<\/p>\n","protected":false},"author":1291,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-1935","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/web.uri.edu\/nld\/wp-json\/wp\/v2\/pages\/1935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web.uri.edu\/nld\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/web.uri.edu\/nld\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/web.uri.edu\/nld\/wp-json\/wp\/v2\/users\/1291"}],"replies":[{"embeddable":true,"href":"https:\/\/web.uri.edu\/nld\/wp-json\/wp\/v2\/comments?post=1935"}],"version-history":[{"count":2,"href":"https:\/\/web.uri.edu\/nld\/wp-json\/wp\/v2\/pages\/1935\/revisions"}],"predecessor-version":[{"id":2130,"href":"https:\/\/web.uri.edu\/nld\/wp-json\/wp\/v2\/pages\/1935\/revisions\/2130"}],"wp:attachment":[{"href":"https:\/\/web.uri.edu\/nld\/wp-json\/wp\/v2\/media?parent=1935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}