CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   derivatives on a curvilinear grid (https://www.cfd-online.com/Forums/main/211739-derivatives-curvilinear-grid.html)

clyne November 18, 2018 11:26

derivatives on a curvilinear grid
 
Hello, can someone please shed some light on how to compute partial derivatives using finite differences on a 2D or 3D curvilinear mesh (hexahedral or quadrilateral cells)? I know only the coordinates and sample values at the mesh nodes.

thanks!

agd November 18, 2018 18:44

Look up body-fitted grids or curvilinear grids. The equations are transformed into computational space using the grid metrics. This is for structured grids. For unstructured grids you would need to use the directional derivative, which is the gradient projected alond a coordinate direction. There are various ways to compute the gradient, including Green-Gauss and least squares.

FMDenaro November 19, 2018 02:41

Alternatively, you can define linear or quadratic shape functions over triangles in a FEM manner.


All times are GMT -4. The time now is 20:36.