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

UDS gradient ??

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2012, 15:49
Exclamation UDS gradient ??
  #1
akm
New Member
 
Join Date: Jan 2010
Location: Netherlands
Posts: 28
Rep Power: 16
akm is on a distinguished road
Previously i was trying to compute gradient of a UDM, but as i understand UDS gradients are pre-calculated by Fluent. And for post-processing, I want to store this gradient value in a UDM.

C_UDSI(c,t,RK) = SQRT(C_UDSI(c,t,K);

C_UDMI(c,t,DE) = SQR(C_UDSI_G(c,t,RK)[1]);

here, 'k' is the scalar for which transport eqns are being solved, and i need to compute the y-direction gradient of sqrt(k). 'de' is the UDM which i have created to store the square of this gradient value.

On compiling the UDF, I am getting an error in the second line
error C2109: subscript requires array or pointer type
Kindly tell me what i may be doing incorrectly, or alternatively any other method of computing gradient of a UDS...

Thanks a lot in advance..

Last edited by akm; April 24, 2012 at 10:08.
akm is offline   Reply With Quote

Reply

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
Gradient of UDS gemini Fluent UDF and Scheme Programming 2 December 24, 2013 01:24
How to compute UDS fourth order gradient Emma66 FLUENT 1 April 27, 2010 06:44
reconstruction gradient of a UDS gemini Fluent UDF and Scheme Programming 0 June 7, 2009 17:03
Gradient UDS tom FLUENT 1 April 28, 2006 04:46
Gradient of a UDS Ilkay FLUENT 0 March 8, 2000 14:42


All times are GMT -4. The time now is 07:58.