insert a lot of number in several lines in TCL

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

Moderators: silvia, selimgunay, Moderators

Post Reply
julyan
Posts: 24
Joined: Thu Dec 25, 2014 6:16 am

insert a lot of number in several lines in TCL

Post by julyan »

HI everyone,

when I insert lot of number for example a list of displacement for running a cyclic analyze , I need a large space in TCL,Now How can I insert data in several lines?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: insert a lot of number in several lines in TCL

Post by fmk »

you can use the \

set a {1 2 3 \
4 5 6 \
7 8 9}
julyan
Posts: 24
Joined: Thu Dec 25, 2014 6:16 am

Re: insert a lot of number in several lines in TCL

Post by julyan »

Dear Prof.Mckenna,

Thanks for your all help.

Best,
Post Reply