Page 1 of 1

TeraGrid Example

Posted: Mon Nov 25, 2013 1:28 pm
by brag006
In Example3 in the TeraGrid folder in OpenSees there are the following lines which I didn't understand. I'm sure it has a simple explanation:

set Gaccel "PeerDatabase $gMotionDir $gMotionName -accel 384.4 -dT dT -nPts nPts"
pattern UniformExcitation 2 1 -accel $Gaccel

So that line sets the ground motion and as I understand the time step is dT and the number of points is nPts

doDynamic [expr $dT*$nPts] $dT

then when the dynamic procedure is called in the above line, I don't understand why we multiply dT by nPts, especially considering the proc is defined as follow:

proc doDynamic {dT nPts} {

which if I understand correctly means we are passing the procedure the wrong values?

I am sure there is an explanation for it..

Re: TeraGrid Example

Posted: Wed Nov 27, 2013 10:44 am
by fmk
yes it was a mistake in the example file. i have fixed it. thanks.