Fluids

Fluids

Suppress Fluent to open with GUI while performing in journal file

    • philippconen
      Subscriber

      Dear members,

      I would like to automate my process of several simulations.

      For preparing I’ve already done:

      • The complete case setup
      • Create a recorded journal file

      The desired procedure should look like:

      • Start a batch which
        • Opens ANSYS Workbench
        • Loads the Project
        • Runs the journal files
          • Switch to Fluent
          • Load Case
          • Change a few settings
          • Do the simulation
          • Post-processing
          • Switch back to Workbench
          • Update Project

      And everything without GUI!

      Actually, working:

      I managed to run all mentioned steps. Also the Workbench starts and performs in batch mode.

      Actually, not working:

      As the journal file in Workbench gets called, Fluent performs with GUI.

      Batch Skript:

      ECHO OFF

      C:Program FilesANSYS Incv201FrameworkinWin64RunWB2.exe" -B -F "D:DLR_MasterarbeitSimulationenDigitalTwinFluegelVersuchTestbenchTestbench_FluegelVersuch.wbpj" -R "C:Userscone_phDesktopAutomatisierung2021_08_30FluegelWB_Journal.wbjn"

      PAUSE

      When I tried to launch only the Fluent journal via:

      "C:Program FilesANSYS Incv201fluent tbinwin64fluent.exe" 2ddp -g -t 4 -i C:Userscone_phDesktopAutomatisierung2021_08_30FLUENT_Journal

      It gives me back:

      Done.

      > /file/set-tui-version "20.1"

      > (cx-gui-do cx-set-toggle-button2 "General*Table1*Table2(Solver)*ToggleBox5(Time)*Transient" #t)

      Error: No GUI functions are available.

      Error Object: ()

      Warning: An error or interrupt occurred while reading the journal file.

      Some commands may not have been completed.

      Means to me that the journal file is not compatible for no GUI application.

      My actual goal is to keep this process, but get the journal file running without GUI. Can I turn of Fluent GUI in the journal file? Do I need to use other command inside the journal file? Is it further possible to simply convert the journal file towards this approach?

      I would be very happy for any ideas on this topic!

      Greetings

      Philipp

    • Rob
      Ansys Employee
      What does the journal look like? There is a section in the manual for launching Fluent without the GUI, and I'd not use that via Workbench.
    • ai0013
      Subscriber
      Actually, when you execute "C:\Program Files\ANSYS Inc\v201\fluent\ntbin\win64\fluent.exe" 2ddp -g -t 4 -i C:\Users\cone_ph\Desktop\Automatisierung\2021_08_30\FLUENT_Journal" You have properly flagged -g, which already turns off GUI and graphics at the moment you launch Fluent.


      I believe you are making reference to some commands that depend on the graphics engine. From the command "(cx-gui-do cx-set-toggle-button2 "General*Table1*Table2(Solver)*ToggleBox5(Time)*Transient" #t)" It looks like your journal was automatically recorded from a session where you did the case setup with the GUI on.
      I'd rather type each TUI command in your journal
    • philippconen
      Subscriber
      Thanks for your fast reply!
      :
      Here is my journal file:
      But why is there an opportunity from Workbench to record the tasks in Workbench and Fluent when this should not be done? Don not get me wrong, but at first glance this inconsistency seems not to be user friendly.

      :
      Your right, this could be an understandable reason - a bit frustrating but understandable. As I am strongly limited in time, converting everything to TUIs manually seems not to help me out here.

      So if there are no other ideas on this, I would close this discussion with an unfulfilled desire.

    • Rob
      Ansys Employee
      I'm not permitted to open the attachment, please repost (or someone else can as it's just staff who have the restriction).
      We have GUI journals (cx-gui-stuff "button-1") for the macros within Fluent as they're easier for newer users to work with. Batch and journaling (without the GUI) is generally done with TUI journals which are fairly straight forward once you know what you're looking for. As I don't know which commands need altering I can't comment, it may only be a line or two that needs to be included.
    • ai0013
      Subscriber
      Well I believe that if you want to stick with your actual GUI journal then you need to unflag "-g", so you'll launch a Fluent session with the GUI on.
      Or If you want to proceed with batch mode (as you requested) then turn off the GUI by flagging -g. But you'll need to modify your journal file with corresponding TUI commands.

      Note that as for now, the way you have everything set up is not consistent. You cannot run GUI commands with the graphics engine off. Please correct me if I'm wrong, you may know more about this.
    • DrAmine
      Ansys Employee
      Use pure TUI commands and do no rely on cortex commands which require graphics.
    • Rob
      Ansys Employee
      correct, if the GUI is off the commands fail as they link to the panels, options and buttons there. It's why GUI journals tend to be unreliable as they fail if you open/close a panel that the journal expects to be closed/open. TUI is "simple" to use, and was how we used to drive Fluent in the "good old days" before computers used mice, and in some cases key boards.....
    • philippconen
      Subscriber
      Thanks for your help. At the moment I do not think I will translate the GUI commands to the TUI commands. But if I do so, what would be the fastet way to get into these commands?
    • Rob
      Ansys Employee
      Look what it does (eg set a boundary condition) and look in the TUI, hit "Enter" to show the command menus, and type the command in to move to that folder, hit "Enter" again to show what it's in that level. Use q (Q) to move up a level. The search function in the top right will also show where some commands are. It's very quick when you understand the menus, note the exact command may vary based on what models are active so documentation is fairly limited. Use () to close a list and , to accept a default.

    • philippconen
      Subscriber
      Okay then I will try to interact with the command line. Many thanks!
Viewing 10 reply threads
  • You must be logged in to reply to this topic.