Running OpenSees from a Mac

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

Moderators: silvia, selimgunay, Moderators

Post Reply
fcharney
Posts: 5
Joined: Wed Feb 17, 2010 11:28 am
Location: Virginia Tech

Running OpenSees from a Mac

Post by fcharney »

I am trying to run OpenSees from a Mac. I have the program working, with the OpenSees executable in a certain folder. From that folder I can open OpenSees and run OpenSees commands. I also have in that same folder an example file called Test1.tcl. When I try to use the command SOURCE TEST1.TCL the program tells me ["TEST1.TCL": no such file or directory.]

Also, how do I run a problem from the command prompt in Terminal? As before, I am working in the directory under which the executable and the example file are stored. I can run the command "open OpenSees" and OpenSees opens. However, "Open OpenSees Test1.tcl" does nothing.

Any advice on the above would be appreciated!
F. Charney
Virginia Tech
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

i like to keep all my applications in one folder my $HOME/bin .. this is were i have placed OpenSees .. this way i don't need copies of the .exe all over the place, nor do i have all my scripts in 1 directory.

so that i can access any of my applications from a terminal no matter what directory i am in, i have made sure my PATH env variable is pointing to the $HOME/bin directory.

how to do this depends on what shell you have chosen for yourself. i am using bash and have placed the following line in $HOME/.bash_profile

PATH=./:$HOME/bin:/usr/local/bin:/usr/local/rappture/bin:$PATH

when i run a script in a terminal windows from anywhere i have 2 options:

1) start exe and source file
a) start OpenSees by typing "OpenSees" in a terminal window
b) type "source Test.tcl" in the interpreter.

2) start exe with file to be sourced
type: "OpenSees Test.tcl" in terminal window.
Post Reply