CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   How to extract data from a specific layer of the grid? (https://www.cfd-online.com/Forums/main/247058-how-extract-data-specific-layer-grid.html)

reespanau January 10, 2023 17:38

How to extract data from a specific layer of the grid?
 
Hi Foamers,

I have a very simple question. I ran a channel flow simulation with 950*150*25 grids in streamwise (x), vertical (y), and spanwise (z) direction. After the simulation, I would like to extract the velocity fields at a specific height, e.g., y=50. How can I do that? I know that "sample" utility can do a simple work, but interpolation is always needed. How can I just give a y index and extract the data from specific vertical layer of the grids?

Thanks!

FMDenaro January 10, 2023 21:47

Quote:

Originally Posted by reespanau (Post 842626)
Hi Foamers,

I have a very simple question. I ran a channel flow simulation with 950*150*25 grids in streamwise (x), vertical (y), and spanwise (z) direction. After the simulation, I would like to extract the velocity fields at a specific height, e.g., y=50. How can I do that? I know that "sample" utility can do a simple work, but interpolation is always needed. How can I just give a y index and extract the data from specific vertical layer of the grids?

Thanks!

Do not use interpolation, find the nearest value y(j) to 50.


All times are GMT -4. The time now is 11:06.