%%%%%%%% START OF DYNAMIC ANALYSES AT SaCT %%%%%%%%%%%%%%
clear all
nGM=40;
accFolder='GMset';
OSpath='C:\Program Files\Tcl\OpenSees\OpenSees246x32.exe';
SDOFdata.SactNC=2; % value of spectral acceleration at T1 [g] used to perform dynamic analysis



SDOFdata.m= 100 ; % mass of SDOF system in tons
SDOFdata.F=[100 100 0.01]; % forces of the F-U envelope of SDOF system in [kN]
SDOFdata.D=[0.05 0.4 0.8]; % displacements of the F-U envelope of SDOF system in [m]
SDOFdata.T=2.0;  % period of SDOF model


SDOFdata.hysteretic=[0 0 0 0 0.8]; % parameters of hysteretic backbone [pinchx pinchy damage1 damage2 beta]

ACCdata.name=([accFolder '/gmr1.acc']);
racDT=load([accFolder '/DT.acc']);
ACCdata.dt=racDT(1);
alfaM=0.8888;
SDOFdata.dynamic=[ACCdata.dt/2 alfaM 0 0 0]; % [tInteg alfaM betaK betaKcomm betaKinit]
 
[DynamicResult1]=SDOFDynamicAnalysis_SactNC(OSpath,SDOFdata,ACCdata);
