Monte Carlo simulation for uncertainty propagation with SAP2000 OAPI and MATLAB
The script performs a Monte Carlo simulation of a structural model which is previously defined in Sap2000.
The script requires as inputs:
- a Sap2000 .sdb model;
- a set of N values of uncertain parameters, sampled according to the user-defined probability density function.
The script computes the response of the structural system for each sample of parameters, and save it in a .mat file, together with the coordinates of the nodes and the connectivity matrix. The data can be then retrieved to study uncertainty propagation.
Different types of analyses (static, modal, dynamic) can be chosen.
Warning: the script is written for Sap2000 version 19; for different versions, the script should be changed accordingly (change all "SAP2000v19").
Cite As
Giovanni (2025). Monte Carlo simulation for uncertainty propagation with SAP2000 OAPI and MATLAB (https://se.mathworks.com/matlabcentral/fileexchange/62369-monte-carlo-simulation-for-uncertainty-propagation-with-sap2000-oapi-and-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Control Systems > Control System Toolbox > Linear Analysis > Time and Frequency Domain Analysis > Frequency-Domain Analysis >
- Sciences > Mathematics > Probability & Statistics > Monte-Carlo >
Tags
Acknowledgements
Inspired by: Simple Code for Running CSI Sap 2000 from Matlab in Batch mode for finding Natural Frequency, Matlab and SAP2000
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
