Nonlinear Dynamics Laboratory

SOD toolbox

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
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 multichannel record that change most slowly in time, for modal identification, damping estimation, trend extraction and reduced-order models. Python and MATLAB, MIT license.

Code on GitHubUser manual (PDF)Live slidesSlides (PDF)Slides (PowerPoint)

The decomposition

One real symmetric pencil, smoothest coordinates first

For a record X with time along the rows and its time derivative, SOD solves

Σvψ=μΣxψ,Σx=⟨xx⊤⟩,Σv=⟨x˙x˙⊤⟩

with the values μ ascending. Each value is the mean-square frequency of its coordinate q=XΨ. When the modal coordinates of an undamped structure are uncorrelated and in virial balance, the smooth orthogonal values 1/μ are exactly 1/ωi2 and the smooth modes are the linear normal modes.

SOD here is the temporal form: it smooths the coordinates in time. Its spatial dual, smooth mode decomposition (SMD; Li, Wanchoo, Shukla and Chelidze, Mechanical Systems and Signal Processing 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 smd module. A smooth mode of SOD is the shape paired with a temporally smooth coordinate, not a spatially smoothed shape.

Smooth orthogonal values against one over omega squared, and smooth modes against the linear normal modes, for a 4-DOF chain
A 4-DOF chain with equal modal energies: the values fall on 1/ω² to within 5×10⁻⁴ and the smooth modes on the linear normal modes.

Damping

State SOD returns each damped mode as a decaying plane

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 (x,x˙) returns each complex mode as a pair of coordinates spanning its modal plane, with μaμb=|s|4. A least-squares fit on the plane gives its damping.

Animation: two state-SOD coordinates of a damped chain trace a decaying circle
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%.

Practical data

Derivatives, sensor noise, recognition and trends

Your dataUse
Displacement and velocitysod(X, V)
Displacement only, cleansod(X, dt=dt), then cd_correct
Displacement with white sensor noisesod(X, dt=dt, h=2, lag=5)
Damped free decaystate_sod, pair_state, decay_damping
Smooth trend under fast contentsod(X, dt=dt, h=15, lag=31, center=True)
Nonlinear free decaysod_track(X, dt, nwin, step, boundary=True)
Reduced-order modelsod_modes, rom_config, rom_state

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.

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
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.

Nonlinear systems

Windowed SOD traces frequency-energy dependence

Animation: a window slides along a hardening decay; the SOD frequency of each window follows the zero-crossing frequency back to the linear frequency
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×10⁻⁴.

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’s SOD papers, now in preparation.

Full-field data

Smooth mode decomposition: mode shapes and frequencies from snapshots in any order

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.

Eight membrane modes from SMD and their wavenumber errors from 200 and from 8 unordered snapshots
Eight snapshots give the first eight modes of a membrane; the remaining wavenumber error, 0.4% or less, is the central-difference bias.
True and unit-weight SMD modes of a non-uniform beam, and the frequency error with physical weights against grid spacing
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².
Frequency error against sampling rate for SMD and SOD on a beam
Down to 0.035 times the highest natural frequency, and from 12 randomly timed snapshots, SMD reads all six frequencies to 2×10⁻⁴. SOD needs time-resolved data.
Wavenumber error against smoothing cutoff for Whittaker and Savitzky-Golay derivatives at three noise levels
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%.
Your dataUse
Clean full-field snapshotssmd(W, g, op, 'fd')
Noisy, or with holessmd(W, g, op, 'whittaker', kc=...), choose kc with smd_kc_scan
Known density and stiffnesssmd(..., density=rho, stiffness=EI), frequencies in R.omega

Getting started

Using the code

Python (NumPy and SciPy):

git clone https://github.com/nld-uri/sod-toolbox.git
export PYTHONPATH=$PWD/sod-toolbox/python

import sodtoolbox as st
R  = st.sod(X, V)                     # X, V: samples x channels
R.freq, R.Phi, R.Q                    # SOD frequencies, smooth modes, coordinates
Rs = st.state_sod(Y, Yd)              # Y = [X V], Yd = [V A]
D  = st.decay_damping(Rs, Yd, dt, wmax)   # per-plane eigenvalues and zeta

MATLAB (base MATLAB, no toolboxes):

addpath('sod-toolbox/matlab')
R  = sod_decomp(X, V);
Rs = sod_state(Y, Yd);
planes = sod_pair_state(Rs.Q, dt, wmax, struct('Phi', Rs.Phi));

The user manual covers the theory, the options and ten worked examples; the slides summarize them; the repository README lists the contents.

Citation

How to cite

Please cite the software, archived on Zenodo as doi:10.5281/zenodo.24602190, and the method paper.

@software{chelidze2026sod,
  author    = {Chelidze, David},
  title     = {{SOD} toolbox: smooth orthogonal decomposition and smooth mode decomposition for {Python} and {MATLAB}},
  version   = {0.3.0},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24602190},
  url       = {https://github.com/nld-uri/sod-toolbox}
}

@article{chelidze2006sod,
  author  = {Chelidze, David and Zhou, Wenliang},
  title   = {Smooth orthogonal decomposition-based vibration mode identification},
  journal = {Journal of Sound and Vibration},
  volume  = {292},
  number  = {3--5},
  pages   = {461--473},
  year    = {2006},
  doi     = {10.1016/j.jsv.2005.08.006}
}

For smooth mode decomposition, please also cite H. Li, P. Wanchoo, A. Shukla, D. Chelidze, Mechanical Systems and Signal Processing 200 (2023) 110541, doi:10.1016/j.ymssp.2023.110541.