CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   Plotting 2D FVM results in MATLAB (

Aloex April 20, 2012 04:36

Plotting 2D FVM results in MATLAB

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!


phy4me April 21, 2012 12:15

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 11:56.