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

Adding Variables to Display Titles from an UDF or Scheme

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2021, 05:27
Question Adding Variables to Display Titles from an UDF or Scheme
  #1
New Member
 
Join Date: Jun 2021
Posts: 13
Rep Power: 5
anan12345 is on a distinguished road
Hello, does anyone has any experience with adding a variable to the display titles?
For an example I would like to have a changing variable just like time which is implemented by default to a transient analysis animation. I have enabled this by File>Preferences>Appearance>Titles

In fluent TUI, I have found that Title names can be customized. I would like to add another dynamic variable that changes over time to the animation display.

Any help would be appreciated. Thanks!
anan12345 is offline   Reply With Quote

Old   October 12, 2021, 23:21
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
there is an option to add annotations
Code:
display> annotate title
but you should click on the screen to place it, so I don't see an option to make it dynamic
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   October 13, 2021, 04:02
Default
  #3
New Member
 
Join Date: Jun 2021
Posts: 13
Rep Power: 5
anan12345 is on a distinguished road
The main problem with what you suggested and what I'm trying to do is that fluent accepts string inputs for those commands.

I did try something like (format #f "Moment Z is ~a" <variable>) with all its possible variants I could think of, but inside the string input quotation marks are not accepted.

Also, Fluent automatically updates the time part of the title, so in my opinion this should be possible in someway.
anan12345 is offline   Reply With Quote

Old   October 15, 2021, 01:46
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
if you need quotation marks you need to use \ before "

Code:
(format #f "Moment Z is \"~a\"" <variable>)
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply


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
Getting density, temperature, and other cell flow variables via macros in Fluent UDF ingabobjoe Fluent UDF and Scheme Programming 2 August 15, 2020 22:08
Dynamic mesh using UDF and layering method - no dynamic mesh zones to display error HootanRahimi Fluent UDF and Scheme Programming 3 May 7, 2019 13:03
conjugateHeatFoam + interFoam farhagim OpenFOAM Programming & Development 15 July 19, 2016 08:55
changing scheme variable with UDF? Wagemakers FLUENT 17 September 30, 2015 15:34
errors when installing openfoam2.1 on ubuntu12.o4 hewei OpenFOAM Installation 5 May 29, 2012 08:43


All times are GMT -4. The time now is 18:25.