PHP Classes

Dynamic PHP SDOF Class: Analyse the response of a structure to earthquakes

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 77 All time: 10,159 This week: 560Up
Version License PHP version Categories
dynamic-sdof-php-cla 1.0Custom (specified...5Algorithms, Tools, Physics
Description 

Author

This class can be used to analyse the response of a structure to earthquakes.

It can load accelerogram from a text file values that define time and ground excitation pairs which will act on a physical structure that are called Single Degree-of-Freedom (SDOF) systems, so it can perform an analysis of response to strong vibrations like those of EarthQuakes.

The class can compute the values to generate a chart that shows the frequency spectrum of the response of the given SDOF system.

Innovation Award
PHP Programming Innovation award nominee
December 2020
Number 3
An accelerogram is a recording of ground activity that can be used to monitor possible earthquakes that may be going on.

This class can analyse accelerogram data to produce charts that help evaluating how physical structures are able to handle the forces that may be propagating during the activity of earthquakes.

Manuel Lemos
Picture of Win Aung Cho
  Performance   Level  
Name: Win Aung Cho is available for providing paid consulting. Contact Win Aung Cho .
Classes: 11 packages by
Country: Myanmar Myanmar
Age: 60
All time rank: 25004 in Myanmar Myanmar
Week rank: 206 Up2 in Myanmar Myanmar Up
Innovation award
Innovation award
Nominee: 3x

Example

<?php
$peak
= 0;
$imgfile = "xydata2.txt";
$sdof = new SDOF();
$sdof->loadGAcc("kobens.txt");
//$peak = $sdof->calcRHA();
$peak = $sdof->calcSpectrum();
$sdof->saveSpectrum($peak);
$sdof->drawSpectrum($imgfile, $peak);

?>


Details

Dynamic-SDOF-PHP-Class

PHP class for the dynamic analysis on single degree of freedom structure due to earthquake ground shaking.

  1. SDOF Class solve for the dynamic motion equation in which including inertia force, dumping force, elastic force of sdof structure to resist the forces due to ground shaking.
  2. Differential motion equation is discrete by using finite difference method. By this method, central difference method to solve response of SDOF structure.
  3. Ground acceleration data due to Kobe earthquake is used in test example.
  4. Analysis is carried on step by step time interval according to seismic record stored in kobens.txt.
  5. 2 analysis are implemented in class, RHA response history analysis and other is to generate response spectrum curve.
  6. Response spectrum curve help engineers to design earthquake resisting buildings.
  7. If one has accelerogram recorded by strong motion accelerometer, response spectrum graph can be easily driven by using SDOF Class.

Screenshots (1)  
  • rhaspectrum.jpg
  Files folder image Files (7)  
File Role Description
Accessible without login Plain text file kobens.txt Doc. Documentation
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Plain text file sdofclass.php Class Class source
Accessible without login Plain text file testsdof.php Example Example script
Accessible without login Plain text file xygraph.inc Aux. Auxiliary script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:77
This week:0
All time:10,159
This week:560Up