Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

How to get the Fluent command line out of Workbench?

    • michael.vanhorn
      Subscriber

       


      I have a user who is using runwb2 to put his project together, and then run Fluent. Is there a way to "export" the explicit call to Fluent, such that we can run the command from the command line (outside of runwb2)? I'd like to try running it on our cluster.


       


      Thanks!

    • Karthik Remella
      Administrator

      Hello Michael,


      If I understand your question right, you should be able to run Fluent in a standalone manner. You can launch Fluent directly without going through workbench.


      Please find some additional help here. 


      https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v193/flu_ug/flu_gs_starting.html


      If I did not understand your question correctly, please let me know.


      Thank you.


      Best,
      Karthik

    • michael.vanhorn
      Subscriber

      Yes, I know that we *can* run Fluent without going through workbench. What I want to know is how to determine the command being used by Workbench to run Fluent. That is, when a user uses Workbench to start the Fluent process, how do we tell what the command line is that Workbench used? If we can get that, then we no longer need to use the Workbench interface.

    • Rob
      Forum Moderator

      You don't need that command: depending on how the machine is configured you can simply start the Fluent launcher and go on from there. On Windows it's under Start -> All Programs -> ANSYS 2019r1 -> CFD


      On LINUX it'll depend on the system but it's just a case of finding the install location & the Fluent launcher. 

    • michael.vanhorn
      Subscriber

      We can find that easy enough. I can even run Fluent straight from the command line. I was thinking that when he builds a project in Workbench, with his input and output files, etc., it must be building a command to run Fluent. I was thinking that if he could easily figure out what that command is, then I could easily show him how to not have to use the Workbench, and be able to run the command in the background on it's own, and not have to have the gui running for the length of the job.

    • Rob
      Forum Moderator

      You'd be better off using the command line options to trigger Fluent without the GUI and run using a journal: it's covered in the Getting Started Guide.  As the Workbench hooks into Fluent also retain some workflow links the launch command may not be clean or overly useful. 

    • BeginerModel
      Subscriber

      In linux, once I have loaded the ANSYS module my command to launch fluent is simply "fluent" and I use a command as such:


      fluent 3ddp -g -t 4 -i transient.commands


      Which Laucnhes Fluent in 3D, Double precision mode, runs without graphics, uses 4 cores and executes the commands in the input file "transient.commands" which would look something like:


      rc cylinder.cas


      /solve/initialize/hyb-initialization


      /solve/set/time-step 0.02


      /solve/dti 35 40


      exit


      yes


       


      Which would read your case file "cylinder.cas", initialise it, set time step size to 0.02, then solve the model for 35 time steps at 40 iterations per time step. 


       


      I have more complicated scripts for distributed processing and would be happy to offer any further advice if you think it relevant.


       


       


       

    • Amine Ben Hadj Ali
      Ansys Employee

      If you want to run WB in batch you will require a python script to steer everything. 

Viewing 7 reply threads
  • The topic ‘How to get the Fluent command line out of Workbench?’ is closed to new replies.