CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   non orthogonal 2d grid (https://www.cfd-online.com/Forums/main/219029-non-orthogonal-2d-grid.html)

Jauo July 12, 2019 09:41

non orthogonal 2d grid
 
Hey there
I have a nozzle like the image
http://uupload.ir/files/c94v_grid.png

the vertical grid is called r and the grid along each streamline is called m as a meridional grid

I dont know what to do to compute derivative of some parameter along m direcion with backward difference method...
i mean what should be the denominator ?

FMDenaro July 12, 2019 16:59

Just consider the transformation from the physical (csi,eta) to the computational domain (x,y). In your case csi=x, you have only to consider the transformation along the vertical direction given by the law eta(csi).

Jauo July 13, 2019 13:35

thanks
so you mean say for taking derivative of like function F along each stream line dFdm
will be (Fi-F(i-1))/(x(i)-x(i-1) ?

selig5576 July 18, 2019 16:40

Grid
 
From my experience with curvilinear grid (albeit still learning), you should calculate the metrics using central schemes. In this case

(F(i+1) - F(I-1))/(2*dx))


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