Hello every one!
i have connected MATLAB and Abaqus using this command "([status,cmdout]=system(['abaqus cae ',mo,'=Main.py &'])" as a part of my optimization process. every thing is OK except closing the Abaqus because it remain open and after a few loop i have plenty of open Abaqus windows occupying the ram.
i would like to close Abaqus with or without saving that to start the next run. i have tried some MATLAB commands but they didn't work.
i would be really thankful if you could help me in this case.
Actin
*** online founded and applied commands****
%Variables
GridSpaceX=1;
GridSpaceY=1;
%mo='noGUI';
mo='script';
%Make python file with variables
delete('Var.py');
fid = fopen('Var.py', 'w');
fprintf(fid,'GridSpaceX = %0.12f\n',GridSpaceX);
fprintf(fid,'GridSpaceY = %0.12f\n',GridSpaceY);
fclose(fid);
%Make part(run Abaqus)
% unix(['abaqus cae ',mo,'=Main.py']); %Unix system
[status,cmdout]=system(['abaqus cae ',mo,'=Main.py &']); %Windows system?

댓글 수: 1

Zakaria Zergoune
Zakaria Zergoune 2021년 6월 25일
Hello Baghdad,
You should just use (mo='noGUI';) instead of (mo='script';)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Type Identification에 대해 자세히 알아보기

질문:

2016년 5월 23일

댓글:

2021년 6월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by