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

UDF reading the temperature gradient

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

LinkBack Thread Tools Display Modes
Old   May 23, 2003, 04:15
Default UDF reading the temperature gradient
Posts: n/a

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, 20:18
Default Re: UDF reading the temperature gradient
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


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem converting fluent mesh vinz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 28 October 12, 2015 06: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 16:34
normal temperature gradient on a boundary Sandrine FLUENT 0 June 10, 2009 12:29
UDF or any approach for Bulk Temperature calculation vemps FLUENT 0 May 1, 2009 01:09

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