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 Comment

Hello Baghdad,
You should just use (mo='noGUI';) instead of (mo='script';)

Sign in to comment.

Answers (0)

Categories

Asked:

on 23 May 2016

Commented:

on 25 Jun 2021

Community Treasure Hunt

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

Start Hunting!