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

gradient for UDS variable

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By A CFD free user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2014, 19:01
Default gradient for UDS variable
  #1
New Member
 
Tejasvi Krishna
Join Date: Sep 2010
Location: College station,Tx, USA
Posts: 12
Rep Power: 15
tejasvikrishna is on a distinguished road
Send a message via Skype™ to tejasvikrishna
Can anyone please let me know how after defining a UDS using Set_User_Scalar_Name, how to define the gradients ?

Thanks Tejasvi
tejasvikrishna is offline   Reply With Quote

Old   April 21, 2014, 14:14
Default
  #2
Senior Member
 
A CFD free user's Avatar
 
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14
A CFD free user is on a distinguished road
Dear Tejasvi,
You can use the predefined macro C_UDSI(c,t,i)[j], to define the gradients in direction you want. Here, i, is index of the scalar which identify the the number of the UDS you defined before. j is the direction which gradient is desired. j=0 is gradient in x direction, j=1 in y direction and j=2 in z direction. You can also use NV_MAG(C_UDSI_G(c,t,i)) to calculate the magnitude of the UDS gradient which is in turn a scalar quantity. Other information can be found in Fluent UDF manual specifically in UDS sections. Keep in mind that UDS gradient is defined only for cell threads and for wall (c0) and interior (c0,c1) faces you can use appropriate gradient macros.
I hope it helps
lleite likes this.
__________________
Regard yours
A CFD free user is offline   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
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 04:35
Gradient of a User defined Variable Ramadas CFX 2 August 21, 2007 09:19
solution variable gradient N.R. CFX 4 July 20, 2007 07:52
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 08:32.