Run Abaqus cmd from MATLAB command line

16 ビュー (過去 30 日間)
Lucas Kassardjian
Lucas Kassardjian 2016 年 12 月 25 日
コメント済み: T E Joseph 2018 年 9 月 6 日
Hello. I have a MATLAB script to run my Abaqus models through MATLAB and it works fine when I'm using Linux on my University cluster. I'm trying to make it run on my own machine which runs Windows, but I can't get it done. My function basically writes a .py file that contains all information I need to my FEM model and I MATLAB to run all values I need on my model and, at the end, outputs me the results. What I've been using on my Linux is
try
unix('~/abaqus/Commands/abaqus cae noGUI=model.py && echo ENDED!');
%
load('results.txt')
%
final_results(end+1,:) = results;
catch me
disp('======= Error ========');
final_results(end+1,:) = [0 0];
end
I've tried to use dos() with the file location of my Abaqus cmd but it didn't work out.
Can anyone help me?
Thanks
  1 件のコメント
Geoff Hayes
Geoff Hayes 2016 年 12 月 29 日
Lucas - what is the code that you are using for the Windows machine? What is the error message when you do run it?

サインインしてコメントする。

回答 (1 件)

George Papazafeiropoulos
George Papazafeiropoulos 2017 年 7 月 21 日
編集済み: George Papazafeiropoulos 2017 年 7 月 21 日
You can execute the following Matlab code in Windows:
try
system(['abaqus cae noGUI=model.py interactive'])
%
load('results.txt')
%
final_results(end+1,:) = results;
catch me
disp('======= Error ========');
final_results(end+1,:) = [0 0];
end
For more ways of tackling this you can refer to the Abaqus2Matlab application ( http://www.abaqus2matlab.com/ )
HTH
  1 件のコメント
T E Joseph
T E Joseph 2018 年 9 月 6 日
Thanks.It works just fine

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGears についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by