The Tcl scripting language was chosen to support the OpenSees commands, which are used to define the problem geometry, loading, formulation and solution. These commands are one-line commands which have specific tasks, as described in this manual. The Tcl language provides useful programming tools, such as variables manipulation, mathematical-expression evaluation and control structures.
Tcl is a string-based scripting language which allows the following:
More information on Tcl commands can be found at its web site: Tcl/Tk Primer (http://dev.scriptics.com/scripting/primer.html)
Handy Tcl commands:
incr - Increment the value of a variable:
set a 1
incr a
a book reference:
Brent Welch <welch@acm.org>, Ken Jones, and Jeff Hobbs: Practical Programming in Tcl and Tk, 4th Edition ISBN: 0-13-038560-3, June, 2003 (http://www.beedub.com/book/)