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

Monitoring/writing a single parameter from UDF.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2018, 09:33
Default Monitoring/writing a single parameter from UDF.
  #1
Senior Member
 
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13
nvarma is on a distinguished road
Hi,
what is the best way to write an output parameter (calculated in a udf) as a monitor? It is not a variable like temperature or pressure that has to be stored at each cell location. Just something similar to global maxima of temperature (not the same). So using c_udmi seems inefficient.

What would be the best way?
nvarma is offline   Reply With Quote

Old   August 31, 2018, 10:20
Default
  #2
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
You can store them in file-scope or static variables.
blackmask is offline   Reply With Quote

Old   August 31, 2018, 10:21
Default
  #3
Senior Member
 
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13
nvarma is on a distinguished road
Can you also tell me how to access this (to plot or monitor) from the fluent GUI? I am not sure I understand.
nvarma is offline   Reply With Quote

Old   August 31, 2018, 10:33
Default
  #4
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
You can output the necessary information to a file and you can process it later. Is a real-time visualization of such information critical for your application?
blackmask is offline   Reply With Quote

Old   August 31, 2018, 10:36
Default
  #5
Senior Member
 
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13
nvarma is on a distinguished road
Quote:
Originally Posted by blackmask View Post
You can output the necessary information to a file and you can process it later. Is a real-time visualization of such information critical for your application?
Okay. I can use Gnuplot or something to plot it real time. Was wondering if fluent had a "more direct" way to do that.


Yes, real time plotting would help me tune the relaxation factors in the UDF quickly.
nvarma is offline   Reply With Quote

Old   September 2, 2018, 21:52
Default
  #6
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may write variable value to output console using Message macro

best regards
AlexanderZ is offline   Reply With Quote

Reply

Tags
fluent, udf


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
Scheme (or UDF) load Parameter value HHOS FLUENT 0 September 4, 2017 04:25
Replicating Scalable Wall Function with a UDF yousefaz FLUENT 0 August 4, 2017 02:30
udf for valve closing a pipe using dynamic mesh chem engineer Fluent UDF and Scheme Programming 2 May 13, 2017 09:39
Single v.s. double precision Confused CFX 15 November 10, 2016 04:42
UDF for linear PTT model implementation dpitz Fluent UDF and Scheme Programming 1 February 4, 2011 10:08


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