CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Plotting 2D FVM results in MATLAB (https://www.cfd-online.com/Forums/main/100093-plotting-2d-fvm-results-matlab.html)

Aloex April 20, 2012 04:36

Plotting 2D FVM results in MATLAB
 
Hi,

I'm searching for a option that I can plot the solution in the center of a control volume.

The function "surf" in MATLAB plots a mesh for my 2D domain, but the vertices of the mesh contain the physical values. I want that the physical values are plotted in the center of that mesh. Anybody knows how to do this?

Or is it possible to cover a plot with a arbitrary mesh by myself?
Many thanks in advance!

Alex

phy4me April 21, 2012 12:15

Hello,
I had the same type of need, and to be able to do what you want here, I interpolated the physical variables at the center of this triangle based on those peaks and then I plot the results with matlab simply.


All times are GMT -4. The time now is 03:49.