Page 1 of 1

OpenSeesSP + MATLAB

Posted: Tue Jan 19, 2016 1:00 am
by AHARSHIAN
Hi,

I have problem in coupling matlab with OpenSeesSP. When I run my code with direct use of OpenSeesSP executable, everything goes well. However, when I try to run it through matlab platform, it doesn't recognize "mpiexec". Generally speaking, I have problem in commanding "mpiexec -np i OpenSeesSP code.tcl" through matlab.

Why I need to use matlab? Because my simulations are kind of restarting analysis. That is, I need to do post processing (using matlab) of analysis number i, and then use the results for the analysis number i+1.


I guess that the problem is because I don't have license for the parallel toolbox in matlab! Isn't that so?


Thanks for you help!

Re: OpenSeesSP + MATLAB

Posted: Sun Jan 31, 2016 10:08 pm
by fmk
don't know .. did you try giving the full path to matlab ..

Re: OpenSeesSP + MATLAB

Posted: Wed Feb 03, 2016 3:31 am
by AHARSHIAN
Thanks for the comment,

Actually, the executable can be run without any problem. The problem is the "mpiexec" command! Matlab reports it as invalid command ...


Best regards,

Re: OpenSeesSP + MATLAB

Posted: Thu Feb 11, 2016 4:16 pm
by fmk
did you try
!mpiexec

Re: OpenSeesSP + MATLAB

Posted: Sun Feb 14, 2016 4:44 am
by AHARSHIAN
I tried the two following ways:

1) Calling the OpenSeesSP executable from MATLAB:

clear all
clc
fname = tempname;
while exist(fname, 'file')
fname = tempname;
end
fid = fopen(fname, 'wt');
fprintf(fid, 'mpiexec -np 4 OpenSeesSP Test.tcl');
system(['OpenSeesSP < ' fname]);

Then MATLAB responded:

invalid command name "mpiexec"
Master Process Running OpenSees Interpreter 0


OpenSees -- Open System For Earthquake Engineering Simulation
Pacific Earthquake Engineering Research Center -- 2.4.6 (rev 6062)

(c) Copyright 1999-2013 The Regents of the University of California
All Rights Reserved
(Copyright and Disclaimer @ http://www.berkeley.edu/OpenSees/copyright.html)


Process Terminating 0


2) Callin OpenSeesSP from the cmd:

clear all
clc
dos('mpiexec -np 4 OpenSeesSP Test.tcl')

Then MATLAB says:

Aborting: unable to connect to "my computer ID", smpd version mismatch

ans =

-1


So, in the first try, it doesn't recognize the mpiexec (!mpiexec also didn't work). In the second try, there is a mismatch between the smpd of OpenSeesSP and MATLAB.


I will appreciate your help in this issue!