TAGGED: automation, batch-mode, fluent, scripting-journaling-udf, workbench
-
-
September 1, 2021 at 1:42 pmphilippconenSubscriber
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 pmRobAnsys EmployeeWhat 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 pmphilippconenSubscriberThanks 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 pmRobAnsys EmployeeI'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 amDrAmineAnsys EmployeeUse pure TUI commands and do no rely on cortex commands which require graphics.
September 7, 2021 at 9:07 amRobAnsys Employeecorrect, 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 amphilippconenSubscriberThanks 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 amRobAnsys EmployeeLook 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 amphilippconenSubscriberOkay then I will try to interact with the command line. Many thanks!
October 23, 2022 at 11:00 amajdusk kalidoSubscriberI’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- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Suppress Fluent to open with GUI while performing in journal file
- Mesh Interfaces in ANSYS FLUENT
- Time Step Size and Courant Number
- error: Received signal SIGSEGV
Top Contributors-
7272
-
4248
-
2899
-
1374
-
1322
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.
-