eval recorder

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

Moderators: silvia, selimgunay, Moderators

Post Reply
AbRiahi
Posts: 20
Joined: Thu Sep 22, 2011 5:50 am

eval recorder

Post by AbRiahi »

Hi everybody

I want to know what is the difference between "eval recorder" and "recorder command" in OpenSees, e.g. in the following commands of SCBF example in Discovering Opensees?
What will happen if we omit eval from the second command?

recorder Element -xml "$dataDir/$subDir2/Column_Force.out" -time -ele 11 12 force
eval recorder Element -xml "$dataDir/$subDir2/Brace_MN_ForceDeformation.out" -time -ele $lst section 1 forceAndDeformation
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: eval recorder

Post by fmk »

it is just useful when you want to provide lists of values to a command as you have in the above:

e.g. if you create a list:
set eList 11 12 15 16 17 18 20 21
this works:
eval "recorder Element ..... -ele $eList force"
this won't:
recorder Eleemnt ... -ele $eList force"

e.g. -ele 11 12
AbRiahi
Posts: 20
Joined: Thu Sep 22, 2011 5:50 am

Re: eval recorder

Post by AbRiahi »

thank you very much
Post Reply