CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

UDS UDF for post-processing

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

LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2007, 17:31
Default UDS UDF for post-processing
Posts: n/a
The following fragment of udf comes from the Fluent UDF manual on using uds to calculate the derivative of temperature to the fourth power for post-processing. I want to do something like this to get the second order derivatives of the velocity (which I need only at the cell centers).

I am concerned about the face values. Can anybody tell me what line 11 is doing in this code? Thanks.

1. thread_loop_f (t,domain) 2. { 3. if (NULL != THREAD_STORAGE(t,SV_UDS_I(T4))) 4. { 5. begin_f_loop (f,t) 6. { 7. real T = 0.; 8. if (NULL != THREAD_STORAGE(t,SV_T)) 9. T = F_T(f,t); 10. else if (NULL != THREAD_STORAGE(t->t0,SV_T)) 11. T = C_T(F_C0(f,t),t->t0); 12. F_UDSI(f,t,T4) = pow(T,4.); 13. } 14. end_f_loop (f,t)

  Reply With Quote

Old   January 19, 2007, 04:31
Default Re: UDS UDF for post-processing
Posts: n/a
Hi !

Boundary face value to be equal to boundary cell value .

t-> t0 ;indicates to boundary cell thread "t0" adjacent with boundary face that it's thread is "t".
  Reply With Quote


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
uds flux - drift velocity - udf johnwinter Fluent UDF and Scheme Programming 3 November 25, 2017 04:07
uds and udf????????????? rubis FLUENT 1 April 26, 2011 10:14
connection between udf and uds a.maroofi Fluent UDF and Scheme Programming 1 September 19, 2010 08:46
Associating profile files for the UDS though a UDF Bharath FLUENT 0 December 1, 2006 15:58
UDF in batch processing tucker FLUENT 0 January 26, 2006 16:39

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