Gradient of UDS
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
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
Do you have solve this problem?
I meet the same problem as yours.
|All times are GMT -4. The time now is 14:02.|