Dynamic Response History Analysic on SDOF Structure
Author: Win Aung ChoDynamic_SDOF_PHP_Class
PHP class for the dynamic analysis on single degree of freedom structure due to earthquake ground shaking.
SDOF Class solve for the dynamic motion equation in which including inertia force, dumping force, elastic force of sdof structure to reflect the forces due to ground shaking.
Differential motion equation is discreted by using finite difference method. By this method, central difference method is used to solve response of SDOF structure.
Ground acceleration data due to Kobe earthquake is used in test example.
Analysis is carried on step by step time interval according to seismic record stored in kobens.txt.
2 analysis are implemented in class, RHA response history analysis and other is to generate response spectrum curve.
Response spectrum curve help engineers to design earthquake resisting buildings.
If one has accelerogram recorded by strong motion accelerometer, response spectrum graph can be easily driven by using SDOF Class.
PHP class for the dynamic analysis on single degree of freedom structure due to earthquake ground shaking.
SDOF Class solve for the dynamic motion equation in which including inertia force, dumping force, elastic force of sdof structure to reflect the forces due to ground shaking.
Differential motion equation is discreted by using finite difference method. By this method, central difference method is used to solve response of SDOF structure.
Ground acceleration data due to Kobe earthquake is used in test example.
Analysis is carried on step by step time interval according to seismic record stored in kobens.txt.
2 analysis are implemented in class, RHA response history analysis and other is to generate response spectrum curve.
Response spectrum curve help engineers to design earthquake resisting buildings.
If one has accelerogram recorded by strong motion accelerometer, response spectrum graph can be easily driven by using SDOF Class.

Response Spectrum Output from PHP Class
download PHP source code
Dynamic-SDOF-PHP-Class
Test demo
Demo
Usage of this class
…
To do a response history analysis,
Dynamic-SDOF-PHP-Class
Test demo
Demo
Usage of this class
…
To do a response history analysis,
- first input stiffness and mass properties of system using setKM($k, $m) function.
- Then load accelerogram file using loadGAcc($name) where $name is the url or "kobens.txt".
- Then run calcRHA(). Out put response is in array $this->u and corresponding time is as that of accelerogram.

Response History Analysic.
To perform spectrum analysis,
Sample file format of accelerogram is
Original Post
- first load accelerogram file using loadGAcc($name).
- Then run calcSpectrum().
- Result is in array $this->Umax which is an array of pairs [T, #RA] where T is damped natural period of system and #RA represent the response acceleration at center of mass.
Sample file format of accelerogram is
0.0,-0.3 0.02,-0.3 0.04,0 0.06,0.3 0.08,0.3 0.1,0.3 0.12,0.3 0.14,0.3 0.16,0.3 0.18,0.3 0.2,0.3 0.22,0.3 0.24,0.3 0.26,0.3 0.28,0.3 0.3,0 0.32,0 … …
Original Post
Author: Win Aung Cho
13-Mar-2022 03:27:52 PM*