필터 지우기
필터 지우기

linke fluent to matlab without AAS toolbox

조회 수: 15 (최근 30일)
sina salahshour
sina salahshour 2022년 11월 9일
답변: SorMun 2023년 11월 16일
Hello,
I want to run fluent from matlab and i can't use AAS toolbox because i don't access to it, how can i run multiple times ?
i use it :
! "C:\Program Files\ANSYS Inc\v212\fluent\ntbin\win64\fluent.exe" 2ddp -i "C:\Users\SINA\Desktop\New_folder\15KArms.jou" '
but i want to run again this file by another journal file after finishing the first journal file i mean in following of first journal . How can i do it?
Best Regards,
  댓글 수: 3
Jiri Hajek
Jiri Hajek 2022년 11월 10일
Well, actually you can achieve that using parametric modelling through Workbench, but this is nothing to do with Matlab...
Walter Roberson
Walter Roberson 2022년 11월 10일
If you are using windows then investigate System.Diagnostics.Process

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

채택된 답변

Jiri Hajek
Jiri Hajek 2022년 11월 10일
편집: Jiri Hajek 2022년 11월 22일
Corrected (thanks to Walter Roberson for pointing out the imprecise formulation):
Hi, so you are looking for a way to let MATLAB know, when the fluent execution has completed? Generally speaking, when you issue a system command from MATLAB, there are two possible scenarios:
1) MATLAB waits for the system command to complete (and collects its outputs, if any). For example:
[status,cmdout] = system(command)
2) MATLAB issues the command and returns control to the command prompt.
!excel.exe &
See documentation on running system commands here and here. In your case, you need to make sure to wait for the completion of your first journal, until you start the second.
Also note that your script may again contain commands that either wait for completion or not. It is quite common in Fuent journal files that you just put some tasks into the queue on your HPC server. If you need to wait for completion of the journal file, you must use proper syntax within the journal file itself.

추가 답변 (1개)

SorMun
SorMun 2023년 11월 16일
Hi Sina,
the Matlab aaS toolbox is now available for download for download on Mathorks File Exchange at https://www.mathworks.com/matlabcentral/fileexchange/155122-ansys_aas-1-1-13

카테고리

Help CenterFile Exchange에서 Computational Fluid Dynamics (CFD)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by