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

UDF reading the temperature gradient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2003, 05:15
Default UDF reading the temperature gradient
  #1
Fabian
Guest
 
Posts: n/a
Hello,

does anybody know how to acces the z-component of the temperature gradient with an UDF? My UDF works well as long as I define a certain value to the temperature gradient, but when I try it with :

' dT_dz = C_T_G(cell,thread)[3]; '

FLUENT gives me an Error:

' FLUENT received fatal signal (ACCESS_VIOLATION) '

Greetings Fabian

  Reply With Quote

Old   May 29, 2003, 21:18
Default Re: UDF reading the temperature gradient
  #2
ap
Guest
 
Posts: n/a
Gradients are not defined at the first iteration. Put that command in an if like this:

if(Data_Valid_P()) { ... }

  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
[Commercial meshers] Problem converting fluent mesh vinz OpenFOAM Meshing & Mesh Conversion 28 October 12, 2015 07:37
Temperature Gradient at Wall sven OpenFOAM 7 November 1, 2010 18:25
temperature normal gradient on a boundary Sandrine Main CFD Forum 2 June 10, 2009 17:34
normal temperature gradient on a boundary Sandrine FLUENT 0 June 10, 2009 13:29
UDF or any approach for Bulk Temperature calculation vemps FLUENT 0 May 1, 2009 02:09


All times are GMT -4. The time now is 14:51.