Problems executing input file at OpenSees prompt

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

Moderators: silvia, selimgunay, Moderators

Post Reply
msabau
Posts: 1
Joined: Thu Mar 31, 2016 12:01 pm
Location: Universidad de la Costa

Problems executing input file at OpenSees prompt

Post by msabau »

Hello all,
Today I installed OpenSees on my computer. The installation worked fine but when I open the program I can't run input files at OpenSees prompt.
I mention that I followed the steps indicating in "Getting Started Manual" but when I try to run the example Truss.tpl from "Basic Examples Manual" it gives me the following message: "couldn’t read file “Truss.tcl”: no such file or directory". The command used was “source Truss.tcl” in the Command Prompt as is indicating in the manual.
How can I set the directory where tcl files are located?
Thanks in advance.
skygrandpa
Posts: 6
Joined: Mon Mar 07, 2016 7:23 am
Location: Beijing University of Civil Engineering and Architechture

Re: Problems executing input file at OpenSees prompt

Post by skygrandpa »

using cd command in cmd console to change the working directory to the folder of Truss.tcl
e.g.
cd /d d:\opensees\example

then run opensees and source the .tcl file
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Problems executing input file at OpenSees prompt

Post by fmk »

when you start OpenSees type

pwd

at the prompt. This will show you what directory the interpreter is currently working in. If not the directory containing your file you have to use the

cd BLAH\BLAH\BLAH

command to move to that directory before you can source in the script. NOTE BLAH BLAH BLAH is the directory containing the input file.
Post Reply