Getting Started with OpenSees -- Run OpenSees: Difference between revisions
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
<h2>Execute Input File at OpenSees prompt</h2> | <h2>Execute Input File at OpenSees prompt</h2> | ||
This method is the most-commonly used one. An external file containing the input commands can be generated a-priori (inputFile.tcl) and be executed at the OpenSees prompt by using the source command. The generation of the input script files is presented in this chapter. The file execution is shown in the figure (Win32 version): | This method is the most-commonly used one. <br> | ||
An external file containing the input commands can be generated a-priori (inputFile.tcl) and be executed at the OpenSees prompt by using the Tcl source command. The generation of the input script files is presented in this chapter. <br> | |||
In the figure below, the user types the following command at the OpenSees prompt: | |||
:'''source inputFile.tcl''' | |||
The file execution is shown in the figure (Win32 version): | |||
[[File:RunOpenSees2.gif|link=Getting Started with OpenSees -- Run OpenSees]] | [[File:RunOpenSees2.gif|link=Getting Started with OpenSees -- Run OpenSees]] | ||
Line 15: | Line 19: | ||
<h2>Batch Mode</h2> | <h2>Batch Mode</h2> | ||
The previously-created input file containing the Tcl script commands necessary to execute the analsis can also be executed at the MS-DOS/Unix prompt, as shown in the figure (Win32 version): | The previously-created input file containing the Tcl script commands necessary to execute the analsis can also be executed at the MS-DOS/Unix prompt, as shown in the figure (Win32 version): | ||
In the figure below, the user types the following command at the DOS prompt: | |||
:'''OpenSees inputFile.tcl''' | |||
[[File:RunOpenSees3.gif|link=Getting Started with OpenSees -- Run OpenSees]] | [[File:RunOpenSees3.gif|link=Getting Started with OpenSees -- Run OpenSees]] |
Revision as of 05:31, 28 November 2009
There are three ways that OpenSees/Tcl commands can be executed:
Interactive
Commands can be input directly at the propt, as shown in the figure (Win32 version):
Execute Input File at OpenSees prompt
This method is the most-commonly used one.
An external file containing the input commands can be generated a-priori (inputFile.tcl) and be executed at the OpenSees prompt by using the Tcl source command. The generation of the input script files is presented in this chapter.
In the figure below, the user types the following command at the OpenSees prompt:
- source inputFile.tcl
The file execution is shown in the figure (Win32 version):
Batch Mode
The previously-created input file containing the Tcl script commands necessary to execute the analsis can also be executed at the MS-DOS/Unix prompt, as shown in the figure (Win32 version):
In the figure below, the user types the following command at the DOS prompt:
- OpenSees inputFile.tcl
Return to Getting Started with OpenSees