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

UDS UDF for post-processing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2007, 18:31
Default UDS UDF for post-processing
  #1
KRK
Guest
 
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, 05:31
Default Re: UDS UDF for post-processing
  #2
Asghari
Guest
 
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

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


All times are GMT -4. The time now is 22:16.