|
[Sponsors] | |||||
Saving report value to a variable using TUI commands |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Join Date: Oct 2024
Posts: 3
Rep Power: 3 ![]() |
Hi all,
I am writing a script using TUI commands to run Fluent in batch mode, and am looking for a way to save the actual value of a report to a variable in the script. I want the value of a mass flow rate report, so I want to write something like this: (define mass_flow_rate 0) ; initialize and solve (set! mass_flow_rate (report/surface-integrals/mass-flow-rate outlet , ,)) but the command: report/surface-integrals/mass-flow-rate outlet , , only prints the value to the console, so the above doesn't work to get the value. Is there a simple way to access the value of the report to save to the variable? I have also tried creating an expression, but I can't figure out how to access an expression's value either. I can save the expression to a text file, but still can't figure out how to load that into a variable. Any help would be greatly appreciated! |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| two different gas! Fluid pair model! | saha2122 | CFX | 9 | June 11, 2025 08:29 |
| Add or subtract two variables in TUI | Tarantino | Fluent UDF and Scheme Programming | 4 | October 17, 2017 13:36 |
| Report Output Filename - variable | Jiricbeng | CFX | 0 | August 15, 2014 08:44 |
| Report > Discrete Phase > Report > How to commands | Francesco Micchetti | FLUENT | 1 | January 23, 2008 07:10 |
| Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |