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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Type Identification finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 23 Mai 2016

Kommentiert:

am 25 Jun. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by