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

UDF: Density Cell Gradient Vector Macros

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

LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2007, 12:14
Default UDF: Density Cell Gradient Vector Macros
Posts: n/a

I'm trying to use in a UDF the command to resume the density gradient C_R_G(c,t). I use a coupled solver and I have activated the command "keep temporary solver memory from being freed?" as indicated in the user guide. My geometry is "2D axisymmetric.

The argument C_R_G(c,t) is actually passed to UDF (I checked by Data_Valid_P(C_R_G(c,t)), but it seems to be a constant scalar field instead of a vector field. Indeed, when I try to resume a component of the gradient vector,for instance C_R_G(c,t)[0], I have a mistake. On the other hand, other derivative arguments seem to work correctly.

Does anyone have any suggestion about this?

Thank you. Matteo.
  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
udf: volume fraction gradient in eulerian model jwwang FLUENT 22 April 15, 2015 06:27
UDF fluent, Cell Zone natantyt Fluent UDF and Scheme Programming 1 August 30, 2011 15:18
Unit of Density Gradient Eric Main CFD Forum 4 August 20, 2007 09:33
passing a cell mark to UDF toni FLUENT 0 April 4, 2006 11:11
UDF reading the temperature gradient Fabian FLUENT 1 May 29, 2003 20:18

All times are GMT -4. The time now is 13:43.