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

How could I get the gradient of UDM?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2011, 10:27
Default How could I get the gradient of UDM?
  #1
New Member
 
Join Date: Mar 2009
Posts: 19
Rep Power: 17
fireman is on a distinguished road
Hi, everyone,

I am trying to get the second derivative of the velocity using UDF. I give the value of the gradient of velocity to a UDM, then I need to know how to get the gradient of the UDM? Could anyone help?

Thanks very much!

Fireman
fireman is offline   Reply With Quote

Old   February 7, 2011, 20:57
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
You could write the derivative of velocity (C_DUDX, etc) to a UDS, then use C_UDSI_G(c,t,0) to get the derivative of the scalar. That's kind of a hack way to do it, but it's there.

You'll need to enable the User-defined scalar, and turn off solution of the transport equation for your scalar in order to keep the values you write fixed.


You could also calculate the numerical derivative yourself by looking at the cell's neighboring values for Du/Dx (etc) and coming up with some approximation.

Hope this helps.
ComputerGuy
ComputerGuy is offline   Reply With Quote

Old   February 8, 2011, 06:36
Default
  #3
New Member
 
Join Date: Mar 2009
Posts: 19
Rep Power: 17
fireman is on a distinguished road
ComputerGuy, thank you very much!
fireman 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
Segmentation violation louiza FLUENT 16 June 27, 2017 16:41
specified shear at wall - temperature gradient - UDF - access violation error senD Fluent UDF and Scheme Programming 9 September 18, 2014 08:29
Pressure Gradient in channelOodles sega OpenFOAM Running, Solving & CFD 14 August 12, 2009 07:21
for help about gradient of UDM Hanxsi FLUENT 0 April 28, 2006 02:42
How to compute gradient for non-orthogonal grids? Paul Hsieh Main CFD Forum 3 November 11, 2003 05:52


All times are GMT -4. The time now is 06:15.