Cell_Gradient_Upwind
Posted: Sun Jul 05, 2020 5:17 pm
Hi,
I know that if I want to get the gradient of a vector or scalar field in a cell volume, there is the predefined 'field_gradient_scalar' function which returns based on the least square or iterative process etc.. However, say that I want to compute the dU/dx across a cell but instead to use upwind to get the east or west face velocity. Is there a function that can I use for that or even is it possible to modify the 'field_gradient_scalar' and add an argument say to return the upwind gradient? Any ideas?
Thanks,
Costas
I know that if I want to get the gradient of a vector or scalar field in a cell volume, there is the predefined 'field_gradient_scalar' function which returns based on the least square or iterative process etc.. However, say that I want to compute the dU/dx across a cell but instead to use upwind to get the east or west face velocity. Is there a function that can I use for that or even is it possible to modify the 'field_gradient_scalar' and add an argument say to return the upwind gradient? Any ideas?
Thanks,
Costas