|
[Sponsors] |
April 20, 2014, 20:01 |
gradient for UDS variable
|
#1 |
New Member
|
Can anyone please let me know how after defining a UDS using Set_User_Scalar_Name, how to define the gradients ?
Thanks Tejasvi |
|
April 21, 2014, 15:14 |
|
#2 |
Senior Member
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14 |
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
__________________
Regard yours |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 10:14 |
error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | COMSOL | 1 | May 30, 2008 05:35 |
Gradient of a User defined Variable | Ramadas | CFX | 2 | August 21, 2007 10:19 |
solution variable gradient | N.R. | CFX | 4 | July 20, 2007 08:52 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |