Hi
Am working on an optimization problem which requires interfacing of Ansys and MATLAB. The optimization algorithm written in MATLAB has to send input values to Ansys, get back results and process it. The cycle continues till optimal value is reached. Can any1 please help me in doing this? Thanks in advance.
was deleted
was deleted
let the working folder of
let the working folder of ansys be the current folder (working folder) of matlab at the same time (if it does not work you may ask ansys to save the data in working folder of matlab), as, you know, matlab can read from notpad, wordpad, excel , etc.. files using severla commands such as (load, fscanf, fread... etc) and it can also save the data in any folder in computer you like, use the matlab command 'pause' in matlab, this will force matlab to pause (wait) until ansys finishs , (you may end the pause when certain ansys file appear use 'if-statment' and the matlab command for checking the file existance to end the pause) matlab then can read the output-files of ansys and works on them and finally save them in working folder of ansys, asnys can read in the data files of matlab. You may need to find out the command in ansys equivalent to 'pause' in matlab (i think WAIT), of course you can make interface between matlab, c++, fortran, etc.. using mex files (this is the idea behind FEAPMEX which interface feap with matlab), the problem here is that ansys code (it could be written in fortran or c++ or java i do not know) is hidden (black box), if it was no so we would be able to interface it with matlab like we do with the feap (open source) since they are writeen in (either c++, fortran, java ,...)
In reply to let the working folder of by abeed
hi..thanks..but I
hi..thanks..but I read here (http://www.eng-tips.com/viewthread.cfm?qid=118159&page=76)
that windos doesnt support this kind of ansys intefacing with matlab..\they say unix is well suited to do this..True? Does it mean windows CANNOT do this at all?