how MATLAB can close Abaqus?

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 commentaire

Zakaria Zergoune
Zakaria Zergoune le 25 Juin 2021
Hello Baghdad,
You should just use (mo='noGUI';) instead of (mo='script';)

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Data Type Identification dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by