Run OpenSees through Matlab in Mac Unix Systems

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

Moderators: silvia, selimgunay, Moderators

Post Reply
Jeena
Posts: 50
Joined: Tue Mar 19, 2013 12:40 pm
Location: Virginia Tech

Run OpenSees through Matlab in Mac Unix Systems

Post by Jeena »

Hi all,

Does anyone here have experience in running OpenSees through Matlab in a mac computer ??

I need to run so many simulations and thus I decided to make a small routine in Matlab to create the required .tcl files and call OpenSees through Matlab to run these .tcl files...I have installed OpenSees in mac and I have set the path for OpenSees also ...

If I have a file 'Test.tcl', all I am trying to do is use the command ' !OpenSees Test.tcl' through my Matlab code ... I have the OpenSees binary application in the same folder as the Matlab code... But the code keeps showing an error '/bin/bash: OpenSees: command not found' .... So the Matlab code is not able to initiate the OpenSees application ....

Any suggestions ??

Thanks,
Jeena
nskok
Posts: 17
Joined: Wed May 15, 2013 12:09 pm
Location: Purdue University

Re: Run OpenSees through Matlab in Mac Unix Systems

Post by nskok »

I would try setting a path to the folder in Matlab.

If you click "File" on the main Matlab toolbar and then select "Set Path", you should be prompted with a window that has all of the Matlab search paths. Select "Add Folder...", and navigate to the folder that has your model. Once you add the folder, save your changes in the Set Path window.

Hope this helps.

-Nick
ace
Posts: 2
Joined: Mon Jun 02, 2014 7:16 pm
Location: Stanford

Re: Run OpenSees through Matlab in Mac Unix Systems

Post by ace »

Hi Jeena,

The way I went about it was to copy the OpenSees executable to /usr/bin and that seemed to solve the problem. See below for the procedure:
sudo cp OpenSees /usr/bin (this is assuming you're in the same directory where OpenSees executable is located)

Hope this helps!

-Ace
Jeena
Posts: 50
Joined: Tue Mar 19, 2013 12:40 pm
Location: Virginia Tech

Re: Run OpenSees through Matlab in Mac Unix Systems

Post by Jeena »

Thanks for all the guidance ....
Post Reply