Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

How to assign CPU or GPU to a two-way coupling of Rocky-Fluent in batch mode

TAGGED: ,

    • mkhademi
      Subscriber

      Hi everyone,

      I know that the syntax for Rocky in batch mode is something like this 

      Rocky --simulate "project.rocky" --resume=0 --use-gpu=1

      but what about when you want to assign some cpu cores (40 cores for example) to Fluent and use one GPU for Rocky in a two way coupling?

    • Lucas Bertollo Baggio
      Ansys Employee

       

       

       

      Helo mkhademi,

       

      You should assign CPU cores for the Fluent through Rocky interface in CFD Coupling | 2-Way | Fluent | Solver Processes.

      This can be done via API:PrePost with a script, that you can run to finish your setup and then simulate your (existing) project, both in batch mode. 

       

      FOR EXAMPLE

       

      Rocky.exe --script "script_name.py" --headless "project.rocky"
      Rocky.exe --simulate "project.rocky" --resume=0 --use-gpu=1

       

      You may check on Section 7.4.4–Use the Command Line to Process a Simulation–of the User Manual (that you can access from Rocky Menu | Help | Manuals | User Manuals) for more information. 

      Kind regards, 

      Lucas

       

       

       

Viewing 1 reply thread
  • The topic ‘How to assign CPU or GPU to a two-way coupling of Rocky-Fluent in batch mode’ is closed to new replies.