Ground Motion & Scale Factor Parameters

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
Marco Faggella 2
Posts: 29
Joined: Fri May 13, 2005 5:36 am

Ground Motion & Scale Factor Parameters

Post by Marco Faggella 2 »

hi all

I am doing some parameter analyses, using different ground motions

I want to load different motions (Motion1... MotionN) using different Scale Factors for each one of them.

but I think I am missing some syntax rules on how to transform the Scale Factor string into a number
(should I use the eval command?)
here is my script:

source MODEL.tcl
set acc Motion1
set SF_Motion1 3.0224
set fac SF_$acc
set accelFNX "Path -filePath $acc.lng -dt 0.01 -factor $fac";
pattern UniformExcitation 3 1 -accel $accelFNX

and here is what I get
WARNING invalid cFactor SF_Motion1 - Series -factor ...
WARNING invalid accel series: pattern UniformExcitation -accel <args>
expected floating-point number but got "SF_MOtion1"
while executing
"pattern UniformExcitation 3 1 -accel $accelFNX"

thank you for your help
m.
Marco Faggella
Ph.D. student
Univ. Chieti-Pescara, Italy
UC San Diego
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

marco,

try this instead:
set acc Motion1
set SF_Motion1 3.0224
set fac [eval set SF_$acc]
set accelFNX "Path -filePath $acc.lng -dt 0.01 -factor $fac";
Marco Faggella 2
Posts: 29
Joined: Fri May 13, 2005 5:36 am

Post by Marco Faggella 2 »

thanks, that really helped

m.
Marco Faggella
Ph.D. student
Univ. Chieti-Pescara, Italy
UC San Diego
Post Reply