run OpenSees in 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
firubila
Posts: 3
Joined: Tue Jan 29, 2013 4:03 pm
Location: PUC

run OpenSees in mac

Post by firubila »

Hi,

I'm a MSc Student and i've worked with OpenSees in windows. Now, I bought my first mac and I don't know how to run OpenSees in it.

I've already downloaded the program and tcl. There is another else to do?

In windows, I store together in one folder open sees.exe and the file.tcl, then in open sees source file.tcl and that's it! How do I do in Mac?

Greetings
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: run OpenSees in mac

Post by fmk »

You need to use the Terminal application. I suggest you learn a few basic linux commands as well, i.e. cd, pwd, ..

I place OpenSees in a bin directory off my home directory. I have updated the PATH variable to pint to this location. There are a number of ways to do that. I simply added a line to the .profile file in my home directory:

export PATH=/Users/fmk/bin:/usr/local/mpich2/bin:$PATH:/usr/local/bin

once this is set up, no matter what directory i am in in the terminal application, when i ype OpenSees i get the interpreter.

I typically use Terminal to cd to the directory containing the scripts, and either start OpenSees and source the filename or just run OpenSees filename from the command line.
milosevicmaja
Posts: 6
Joined: Mon Sep 22, 2014 5:43 pm
Location: California State University, Long Beach

Re: run OpenSees in mac

Post by milosevicmaja »

I am having the same issue and i cannot even run the command source without getting an error for the directory. Any help is appreciated.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: run OpenSees in mac

Post by fmk »

1. can you start the program from the terminal application?
2. if so can you type "pwd" when you start it?
3. is the location of the file you want to source in that directory?
4. if not, issue some cd commands to get there?
milosevicmaja
Posts: 6
Joined: Mon Sep 22, 2014 5:43 pm
Location: California State University, Long Beach

Re: run OpenSees in mac

Post by milosevicmaja »

Thank you for your help! I changed the working directory and it worked.
Post Reply