Fluids

Fluids

Fluent crushes when it create dynamic mesh

Tagged: 

    • shoji
      Subscriber

      I'm trying to operate Fluent in non-graphical mode from MATLAB using aas and TUI code, but when MATLAB send a command which make Fluent create dynamic mesh (following command), Fluent display the error(following image) and crushes.

    • Karthik R
      Administrator
      Hello,nAnsys employees are not able to download any files from the learning forum as Ansys.nHaving said that, can you confirm if you are able to run your case correctly on standalone Fluent? Is your dynamic mesh set-up working correctly? Are you able to obtain a converged solution? I'd like to understand if this problem is with Matlab integration or with the dynamic mesh set-up.nThanks.nKarthikn
    • shoji
      Subscriber
      Thank you for the comment Kremella.nnWhen I run Fluent standalone, mesh set-up work correctly and I can obtain a converged solution.nThat's why I think the problem is Matlab integration.nIn addition to above error, bellow error also occurred when Matlab send below command.nnShoji.n
    • shoji
      Subscriber
      I can fix this error, and the cause was my programming mistake.nHowever, I can't fix this error.n This occur when MATLAB send following command. nI calculate Fluent simulation repeatedly, and this command can work for first 8 times, but after MATLAB send this command 8 times, error occurred (9th time). nn
    • Rob
      Ansys Employee
      How many cells have you got when it fails? If you're using Student or Teaching key you're limited to 512k cells. n
    • shoji
      Subscriber
      The number of Total cells is 266k. n
    • Karthik R
      Administrator
      Hello,nAre you saying that your Matlab Fluent connection worked in the last 8 attempts and this issue you are talking about appears the 9 time you send this command?nCould you please clarify this so we can understand things better?nThanks.nKarthikn
    • shoji
      Subscriber
      Sure.nnWhat I want to do is running fluent repeatedly (about 100 times). And the name of the program to run fluent is Fluent_pitch and I repeat it by using below matlab program. nOf course I can run Fluent_Pitch correctly. However when I run fluent_repeat, fluent pitch run correctly for the first several times, then program stops at following code. nI said it can work 8 times, but this time it can work only 5 times.nThis is the video how the program work and stop.nArraynThanks.n
    • shoji
      Subscriber
      Although I said I could fix this error, it was misunderstanding and I can't fix yet.nIf you have any idea, please tell me.nThanks,n
    • Karthik R
      Administrator
      Hello,nPlease take a look at this blog post and make sure that your code is correct. nAlso, If you still looking to debug this issue, you might first want to isolate the issue. Here is what I'd do.nFirst, I would type out each command that you have in your journal file and test them line by line by copying them into Fluent console. Fluent console asks a lot of questions and if one of these questions are missed or incorrectly answered, then the case would throw an error. This is because there are no exception in the journal file.nOnce you are sure of this, then I'd use the journal file and make sure that your case is running exactly as it should.nOnce all these tests work, then you will lastly try to run your case using Matlab commands. nThis will help you isolate where the issue and you can then take care of this.nThanks.nKarthikn
    • shoji
      Subscriber
      HellonThank you for the comment.nnI tried step1,2 and 3 , and Fluent worked without error. However when I run fluent repeatedly from MATLAB error occurred.nAlthough Fluent works for the first several times, the error occurred at bellow program after Fluent run several times.nFluent run as follow program without error for the first several times.nnconnect fluent nload UDFncreate dynamic meshninitializenstart calculationnnThanksn
    • Rob
      Ansys Employee
      If the system works a few times and then fails, what is different about the command or starting point?n
Viewing 11 reply threads
  • You must be logged in to reply to this topic.