CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Saving report value to a variable using TUI commands

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2024, 17:20
Default Saving report value to a variable using TUI commands
  #1
New Member
 
Join Date: Oct 2024
Posts: 3
Rep Power: 3
kyle9 is on a distinguished road
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!
kyle9 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:20.