Gradient of UDS
Hi everyone,
I want to calculate the gradient of a UDS by using Green Gauss theorem using cell based approximation for face values of UDS. Below you can see the corresponding c code. However i created a simple test case which contains a square domain (in which UDS solved using dirichlet type BCs) and test whether my gradient function and C_UDSI_G(c, t, uds_no) gives the same values. The result is that my function gives totally different and unrealistic gradient values while C_UDSI_G gives correct values, So anybody can help me to correct the code below: I used both uniform and nonuniform structured grids. thanks so much Code:
real evaluate_gradient(cell_t c, Thread *t, int i_uds, real *x_vec, real *y_vec, real *z_vec) 
search help
hi, do you have solved the problem about how to get second order graident of UDS,i have the same problem now, and have no way to do it .could you give me some help ?,waiting for your reply,thanks

Dear liu:
Do you have solve this problem? I meet the same problem as yours. thank you Quote:

All times are GMT 4. The time now is 10:23. 