CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > Tecplot

How to plot variable along different vertical lines

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2015, 06:23
Default How to plot variable along different vertical lines
  #1
New Member
 
Join Date: Jul 2013
Posts: 28
Rep Power: 13
Roule is on a distinguished road
Hi

I have a .dat file with x, y, and velocity values in 1st, 2nd, and 3rd column respectively. I can import this to Tecplot and it looks like this
https://imgur.com/q2uIerM

Now, I want to plot the velocity vectors along different vertical lines at x = 10, 20 ,30, 40, 50 for a Y range of 0 - 100.

It feels like it should be simple, but I am using Tecplot for the first time. So can't figure it out.

Can anyone help.

Thanks a lot.

I am using Tecplot 360 2014.
Roule is offline   Reply With Quote

Old   October 22, 2015, 18:37
Default
  #2
New Member
 
Matthew Hjelm
Join Date: Oct 2015
Location: Newcastle, Wa
Posts: 3
Rep Power: 10
mhjelm_tecplot is on a distinguished road
It is possible to change the spacing of your vectors by using the I,J,K skip feature. Go into the "Zone Style" dialog and the "Points" tab. In there you can change the "Index Skip" which will skip the cells that you do not want drawn. You can see in the attachment that I set up my vector field and only have the vectors starting every 7th cell in the x direction. You can then also change where the vectors are originating from using the "Vector" Tab in "Zone Style". Depending on how your cells line up with the x values that you need, you might be able to make it work. Let me know how it works.

Matthew Hjelm
Attached Images
File Type: jpg Skip_Vectors.jpg (144.4 KB, 86 views)
mhjelm_tecplot is offline   Reply With Quote

Old   October 23, 2015, 00:15
Default
  #3
New Member
 
Join Date: Jul 2013
Posts: 28
Rep Power: 13
Roule is on a distinguished road
Quote:
Originally Posted by mhjelm_tecplot View Post
It is possible to change the spacing of your vectors by using the I,J,K skip feature. Go into the "Zone Style" dialog and the "Points" tab. In there you can change the "Index Skip" which will skip the cells that you do not want drawn. You can see in the attachment that I set up my vector field and only have the vectors starting every 7th cell in the x direction. You can then also change where the vectors are originating from using the "Vector" Tab in "Zone Style". Depending on how your cells line up with the x values that you need, you might be able to make it work. Let me know how it works.

Matthew Hjelm
Hey, thanks a lot for the reply and attaching the pic.

I am now able to plot the vectors along several vertical lines using the skip function, however the vector lengths are not as per their magnitude as seen in the legend. In ur pic however, it looks like the vector length is as per their magnitude.

Can you suggest something. Sorry for this follow-up question.
Attached Images
File Type: png vectors.PNG (48.4 KB, 72 views)
Roule is offline   Reply With Quote

Old   October 23, 2015, 11:36
Default
  #4
New Member
 
Matthew Hjelm
Join Date: Oct 2015
Location: Newcastle, Wa
Posts: 3
Rep Power: 10
mhjelm_tecplot is on a distinguished road
Quote:
Originally Posted by Roule View Post
Hey, thanks a lot for the reply and attaching the pic.

I am now able to plot the vectors along several vertical lines using the skip function, however the vector lengths are not as per their magnitude as seen in the legend. In ur pic however, it looks like the vector length is as per their magnitude.

Can you suggest something. Sorry for this follow-up question.
No problem, follow up questions are good. It looks like your vectors have an i-component that is equal to the value on the x axis, which is why the length increases from left to right. It also looks like your j-component is identically zero, which is why the length is constant going up and the vectors all point at 0 rad.

If you go into plot>>vector>>variables, you should be able to change your vectors to have what ever i,j (or in tecplot it is u,v) components you want. It looks like you have the contour as "V-position". I'm not sure how you might want to set up your vectors to display that data, maybe V-position as the new v component and make your current v component as the new u component.

Hope that helps.

Matthew Hjelm
mhjelm_tecplot is offline   Reply With Quote

Old   October 24, 2015, 02:09
Default
  #5
New Member
 
Join Date: Jul 2013
Posts: 28
Rep Power: 13
Roule is on a distinguished road
Quote:
Originally Posted by mhjelm_tecplot View Post
No problem, follow up questions are good. It looks like your vectors have an i-component that is equal to the value on the x axis, which is why the length increases from left to right. It also looks like your j-component is identically zero, which is why the length is constant going up and the vectors all point at 0 rad.

If you go into plot>>vector>>variables, you should be able to change your vectors to have what ever i,j (or in tecplot it is u,v) components you want. It looks like you have the contour as "V-position". I'm not sure how you might want to set up your vectors to display that data, maybe V-position as the new v component and make your current v component as the new u component.

Hope that helps.

Matthew Hjelm

Hey, thanks so much. You were correct that I had chosen the wrong vectors to display, hence the incorrect vector length.

I changed the vector variables to Vx and Vy, and now they are looking exactly as I wanted. I am also attaching a pic of the same.


Thanks a lot
Attached Images
File Type: png correct vectors.png (25.7 KB, 51 views)
Roule is offline   Reply With Quote

Reply

Tags
tecplot 360, velocity field


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Foam warnings - related to swak4Foam Salam-H OpenFOAM Community Contributions 20 August 2, 2015 15:40
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 04:35
Plot variable for the cylindrical sector Cristiano FLUENT 0 April 4, 2008 09:34
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09
how to plot 3D lines shango Main CFD Forum 0 August 10, 2002 21:56


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