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!
OpenSeesSP + MATLAB
Moderator: selimgunay
OpenSeesSP + MATLAB
Best Regards,
A.H.Arshian
A.H.Arshian
Re: OpenSeesSP + MATLAB
don't know .. did you try giving the full path to matlab ..
Re: OpenSeesSP + MATLAB
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,
Actually, the executable can be run without any problem. The problem is the "mpiexec" command! Matlab reports it as invalid command ...
Best regards,
Best Regards,
A.H.Arshian
A.H.Arshian
Re: OpenSeesSP + MATLAB
did you try
!mpiexec
!mpiexec
Re: OpenSeesSP + MATLAB
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!
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!
Best Regards,
A.H.Arshian
A.H.Arshian