how MATLAB can close Abaqus?
Mostrar comentarios más antiguos
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 comentario
Zakaria Zergoune
el 25 de Jun. de 2021
Hello Baghdad,
You should just use (mo='noGUI';) instead of (mo='script';)
Respuestas (0)
Categorías
Más información sobre Data Type Identification en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!