TAGGED: automation, batch-mode, fluent, scripting-journaling-udf, workbench
-
-
September 1, 2021 at 1:42 pmphilipp.conenSubscriber
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
September 2, 2021 at 3:44 pmRobForum ModeratorWhat 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.
September 3, 2021 at 3:18 amai0013SubscriberActually, 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
September 6, 2021 at 2:49 pmphilipp.conenSubscriberThanks 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.
September 6, 2021 at 4:05 pmRobForum ModeratorI'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.
September 6, 2021 at 8:08 pmai0013SubscriberWell 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.
September 7, 2021 at 5:29 amAmine Ben Hadj AliAnsys EmployeeUse pure TUI commands and do no rely on cortex commands which require graphics.
September 7, 2021 at 9:07 amRobForum Moderatorcorrect, 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.....
September 7, 2021 at 9:15 amphilipp.conenSubscriberThanks 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?
September 7, 2021 at 9:25 amRobForum ModeratorLook 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.
September 7, 2021 at 9:28 amphilipp.conenSubscriberOkay then I will try to interact with the command line. Many thanks!
October 23, 2022 at 11:00 amajdusk kalidoSubscriberÂ
Â
I’m attempting to get familiar to yield an extended region into the terminal window, yet without client intercession. The issue is the projected region capability expects you to enter in wall zones you need and hit enter when you’re finished characterizing them. Is there some order I can place in the info prearrange that will do this? I was unable to track down anything about it in the TUI manual.
Â
Â
Â
Â
Â
Viewing 11 reply threads- The topic ‘Suppress Fluent to open with GUI while performing in journal file’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Fluent fails with Intel MPI protocol on 2 nodes
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- UDF, Fluent: Access count of iterations for “Steady Statistics”
- RIBBON WINDOW DISAPPEARED
Top Contributors-
1421
-
599
-
591
-
565
-
366
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-