Open-source MATLAB, C++ and Python tools for nonlinear vibration energy harvesting: bistable dynamics, bifurcations, chaos control, uncertainty quantification, optimization and harmonic-Gaussian magnetic barriers.
STONEHENGE — Suite for Nonlinear Analysis of Energy Harvesting Systems is an open-source research software collection for modeling, simulating, optimizing and analyzing nonlinear vibration energy harvesters. It covers bistable piezoelectric–magneto–elastic systems and includes MATLAB, C++ and Python implementations.
Each module has its own source-code directory and README. The 13 modules below are organized by their primary scientific use; they are not a single executable application.
Visit the STONEHENGE homepage · Browse the complete source repository · Read the module guide
TimeSeriesAnalysis (MATLAB) integrates the coupled mechanical and piezoelectric initial-value problem and studies displacement, velocity and voltage histories. The model permits potential asymmetry and nonlinear electromechanical coupling.
FourierAnalysis (MATLAB) analyzes vibration and electrical-response spectra using Fourier transforms and power spectral densities. It includes one-sided FFT and PSD routines.
PoincareSections (MATLAB) constructs phase portraits and stroboscopic Poincaré sections of forced bistable harvesters, helping distinguish periodic responses and more complicated dynamics.
ResonanceCurves (MATLAB) computes nonlinear resonance curves under harmonic excitation by varying the driving frequency.
BifurcationAnalysis (MATLAB) generates bifurcation diagrams from forcing-amplitude sweeps at different frequencies, including forward/backward sweeps and three-dimensional visualization.
BasinsOfAttraction (C++ and MATLAB) simulates multiple initial conditions to classify long-time responses and map basins of attraction. The C++ routines perform the numerical calculations and MATLAB scripts provide visualization.
DynamicAnimation (MATLAB) visualizes the motion of piezo-magneto-elastic beams in inertial and moving frames, including symmetric/asymmetric models and GIF output.
ChaosControl (MATLAB and Simulink) studies stabilization of nonlinear and chaotic harvester responses using the Ott–Grebogi–Yorke (OGY) method and extended time-delayed feedback (ETDF).
HarvesterOptimization (MATLAB) seeks designs that maximize mean electrical power using cross-entropy optimization and direct/grid search, with deterministic and noise-perturbed excitation variants.
DisplacementAmplifier (MATLAB) studies a bistable energy harvester coupled to a displacement-amplification mechanism and driven by base excitation.
SobolSensitivity (MATLAB with UQLab) estimates Sobol variance-based sensitivity indices using Monte Carlo sampling and polynomial-chaos-expansion metamodels.
StochasticSimulations (MATLAB) simulates bistable energy harvesters under colored-noise disturbances and analyzes their trajectories, attractors, and electrical output.
HarmonicGaussian (Python) reproduces numerical results for Harmonic-Gaussian vibration energy harvesting. It studies localized Gaussian and point-dipole magnetic barriers, nonlinear resonance, periodic-orbit continuation, Floquet stability, capture, and electrical power, with comparisons to Duffing-type potentials.
The HarmonicGaussian module README documents its Python dependencies, reproducibility scripts, stored data, figures and regression tests.
Yes. STONEHENGE is distributed under the MIT license. Some module workflows require separately installed research software such as MATLAB, Simulink or UQLab.
The legacy numerical modules use MATLAB and C++; the HarmonicGaussian module uses Python. Dependencies and execution commands vary by module.
Its principal application is vibration energy harvesting using bistable, electromechanically coupled piezoelectric–magneto–elastic oscillators. The modules cover forced nonlinear response, parameter sensitivity, stochastic excitation, chaotic dynamics and performance optimization.
Cite the associated STONEHENGE paper in Software Impacts (2021), DOI: 10.1016/j.simpa.2021.100161. Individual research modules may have additional publication references in their own documentation.