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

Gradient of velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2010, 05:21
Default Gradient of velocity
  #1
New Member
 
Seondoo Jo
Join Date: Sep 2010
Posts: 1
Rep Power: 0
SeanJo is on a distinguished road
Hi, guys.
I'm trying to get value of gradient of velocity.
But I can't get gradient values at the face.

I mean, first and last nodes value are strange.

I attached graph of 1st, 2nd order gradient of velocity.


How can I get right values?

It's my code.

Code:
DEFINE_ADJUST(my_adjust, d)
{
 Thread *t,;
 cell_t c, ;
 face_t f;
 
 if(N_ITER > 1)
 {
  thread_loop_c(t, d)
  {
   begin_c_loop (c, t)
   {
    C_UDSI(c,t,0) = C_U(c,t);
   }
   end_c_loop (c, t)
  }
  thread_loop_c(t, d)
  {
   begin_c_loop (c, t)
   {
    C_UDSI(c,t,1) = C_UDSI_G(c,t,0)[1];
   }
   end_c_loop (c, t)
  }
  thread_loop_c(t, d)
  {
   begin_c_loop (c, t)
   {
    C_UDSI(c,t,2) = C_UDSI_G(c,t,1)[1];
   }
   end_c_loop (c, t)
  }
 }
}
Thanks. ^^
Attached Images
File Type: jpg Snap3.jpg (40.9 KB, 9 views)

Last edited by SeanJo; October 25, 2010 at 15:26.
SeanJo 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
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
can I use static enthalpy gradient to describe dT Jay CFX 0 August 7, 2008 00:01
How to compute gradient for non-orthogonal grids? Paul Hsieh Main CFD Forum 3 November 11, 2003 05:52
pressure gradient term in low speed flow Atit Koonsrisuk Main CFD Forum 2 January 10, 2002 11:52


All times are GMT -4. The time now is 03:45.