CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Matlab PP: Generating X-vel Contour Error Plot

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 4, 2011, 07:40
Default Matlab PP: Generating X-vel Contour Error Plot
  #1
New Member
 
P Bennett
Join Date: Dec 2010
Posts: 11
Rep Power: 6
Bennp2000 is on a distinguished road
Hi,
I'd like to generate a 2d contour plot through a slice (y=0) from two different versions of the same model (one meshed by me, one by my predecessor) and then create a plot of the difference in velocities between them.

There are a few problems here that I can see:
the meshes are different (one structure one tets)
the meshes have a different origin (0,0,0)

I've output two ASCII files (one from each) of x-vel along the relevant plane but I can't work out how on earth to generate the required plot.

I've been trying this in matlab but this:

%-Clear all
clear all;
close all;
format('longe')

%-Common Grid Density Settings
meshmax=1.5;
meshdens=0.01;

%-Input data files
low1 = csvread('192.csv',2,1);
low2 = csvread('248.csv',2,1);

x=low1(:,1);
y=low1(:,2);
V=low1(:,4);

commongrid = meshgrid(-meshmax:meshdens:meshmax,-meshmax:meshdens:meshmax);


is as far as I've got. Can anyone suggest how to progress?
Bennp2000 is offline   Reply With Quote

Old   March 4, 2011, 08:58
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
if the problem is different meshes, you can interpolate one of the results to another in FLUENT and then compare.
Amir is offline   Reply With Quote

Old   March 4, 2011, 10:12
Default
  #3
New Member
 
P Bennett
Join Date: Dec 2010
Posts: 11
Rep Power: 6
Bennp2000 is on a distinguished road
(can I ask how?)

I'm not sure this will work as one mesh has some extra (pipe) at either end of the model and the origin will still be different.
Bennp2000 is offline   Reply With Quote

Old   March 4, 2011, 11:36
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
different origin is not a matter and you can get rid of.
this method will work if you want to compare to slices with the same boundary positions. (it seems that this constraint should be satisfied!)
Amir is offline   Reply With Quote

Old   March 4, 2011, 11:41
Default
  #5
New Member
 
P Bennett
Join Date: Dec 2010
Posts: 11
Rep Power: 6
Bennp2000 is on a distinguished road
the boundary positions aren't the same unfortunately. (Both in the x and Y directions. Only the Z [cross section] is the same). I think I have to do it either solely in Tecplot or in Matlab?
Bennp2000 is offline   Reply With Quote

Old   March 4, 2011, 16:58
Default
  #6
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
I meant that 2 planes which you want to compare should be similar and have the same dimensions not positions,i.e. similar in local coordinates. their origin and/or angles with axises can be different and as I said before you can get rid of them.
if this is the case, using profile files after translating or rotating grids may help.
Amir is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gambit, Matlab & generating a neutral file ".neu" francois Main CFD Forum 4 May 9, 2013 01:41
ParaView and Qt 4.3.5 on Mac OS X 10.6 Adrian OpenFOAM 3 August 8, 2010 03:16
Matlab contour plots Chris CFX 10 January 22, 2007 04:43
How to plot vel vector & contour on same plane? student CFX 7 May 12, 2006 08:15
contour plotts using matlab matlab Main CFD Forum 2 March 27, 2002 11:33


All times are GMT -4. The time now is 14:15.