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 visualize numerical field data (velocities) in MATLAB (https://www.cfd-online.com/Forums/main/242018-how-visualize-numerical-field-data-velocities-matlab.html)

researcher March 31, 2022 11:55

How to visualize numerical field data (velocities) in MATLAB
 
Hi fellow members
I have calculated 2D velocity field on a rectangular domain in which I would like to visualize in MATLAB the boundary layer and gradients including boundary layer thickness. Could any one please guide regarding that?

FMDenaro March 31, 2022 17:17

Quote:

Originally Posted by researcher (Post 825226)
Hi fellow members
I have calculated 2D velocity field on a rectangular domain in which I would like to visualize in MATLAB the boundary layer and gradients including boundary layer thickness. Could any one please guide regarding that?


What kind of problem do you have? Just load the matrix in matlab and use the contour/plot/quiver functions.
https://www.mathworks.com/help/matlab/ref/load.html


You can visualize the boundary layer by the contour line at 0.99Uinf value.

researcher March 31, 2022 23:47

Quote:

Originally Posted by FMDenaro (Post 825242)
What kind of problem do you have? Just load the matrix in matlab and use the contour/plot/quiver functions.
https://www.mathworks.com/help/matlab/ref/load.html


You can visualize the boundary layer by the contour line at 0.99Uinf value.

I only have grid coordinates and corresponding u velocities. I want to see the boundary layer and of course see the thickness and points as needed. I am attaching the file though.

researcher March 31, 2022 23:50

i doubt the file got attached. let me attach again. oh it says the file is big. it is a 4+ MB file.but any hypothetical data in columns xcoord,ycoord,u-velocity can be used.


All times are GMT -4. The time now is 13:54.