Ansys Products

Ansys Products

How can I submit a Fluent job to HPC with DPM and sampling?

    • mkhademi
      Subscriber

      Hi everyone,

      I want to submit a Fluent job to HPC, but I still dn't know the basics. I have seen on the web that journal file is required for that and reading the case file, executing the job, and saving data files must be included in the journal file. My questions are:

      1) If I setup a case file on my PC, run the Fluent for a transient case and save a data file, then write a journal file to read these case and data, do I need to activate again DPM model from the journal file, or Fluent already knows that DPM is included in the case file?

      2) I need that Fluent write a sample file of DPM in some frequencies. Is it enough to have this in the initial case and data file, or again I should use a syntax in journal file for sampling the DPM in specific zones I need?

      Thank you all.

    • Rob
      Ansys Employee

      Reading the case and data will mean you continue running from that point. Anything that was set up will continue. 

      Sample files should work fine, but check whether they append or try to overwrite when you restart. You can test the journal on the local PC to ensure nothing weird happens: I still test journals before submitting. 

    • mkhademi
      Subscriber

      Thank you so much Rob. Can you please briefly explain how I can load Fluent in batch mode on Windows operating system? Thank you.

    • Rob
      Ansys Employee

      Funnily enough, there's a chapter on that! https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v222/en/flu_ug/flu_ug_BatchExecution.html%23flu_ug_sec_batch_execution_windows

    • mkhademi
      Subscriber

      Thank you Rob, I have seen this content on the user guide, but when I use this syntax, there is a message that "fluent is not recognized an internal command". 

    • Rob
      Ansys Employee

      I think you need to set an environment variable somewhere: these used to be done semi-automatically but as very few run batch on Windows it may no longer be the case.  Try replacing "fluent" with "C:\Program Files\ANSYS Inc\v222\fluent\ntbin\win64\fluent.exe"    

    • mkhademi
      Subscriber

      Hi Rob,

      When we do the sampling on GUI, we start and stop the sampling. Can this be included in the journal file? For example, have it to the iterations, start DPM sampling, again do the itneration, and stop sampling? 

    • Rob
      Ansys Employee

      Yes, assuming it's a one off, you need to have:

      • Read files
      • Run iterations etc. That will terminate when it hits the iteration count or converges.
      • Set sampling
      • Run iteration(s)
      • Stop sampling
      • Write out files. 

      It may not be overly efficient, and I'm not sure how easy triggering the reports via the TUI will be. 

    • mkhademi
      Subscriber

      Thank you so much again Rob,

      I recorded a journal file and the format must be like for starting the sampling:

      /report/dpm-sample "injection-dr0015" () int_live:003 int_live:002 () "injectionline" () no no 

      and for stopping the sampling:

      /report/dpm-sample

Viewing 8 reply threads
  • You must be logged in to reply to this topic.