|
[Sponsors] |
October 25, 2010, 05:21 |
Gradient of velocity
|
#1 |
New Member
Seondoo Jo
Join Date: Sep 2010
Posts: 1
Rep Power: 0 |
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) } } } Last edited by SeanJo; October 25, 2010 at 15:26. |
|
|
|
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 |