CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

how can plot velocity profile on an airfoil over a line?

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

Like Tree4Likes
  • 1 Post By Artur
  • 1 Post By Artur
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   October 12, 2013, 10:11
Default how can plot velocity profile on an airfoil over a line?
  #1
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Hi
i am simulating the flow over an airfoil, i done my simulation with openFoam, and now i wanna plot the velocity profile over a line that is approximately perpendicular to the surface of airfoil, at trailing edge.

what should i do?
P.S. i use paraview for postprocessing the results.
Thank you very much.
s.m is offline   Reply With Quote

Old   October 23, 2013, 06:46
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 226
Rep Power: 6
Artur is on a distinguished road
Hi,

In paraview you could use the "plot over line" filter. Optionally, you can use the OF sampling utilities. There's quite a lot of info in this link and the tutorials it mentions:

http://www.openfoam.org/docs/user/sample.php

Cheers,

A
s.m likes this.
Artur is offline   Reply With Quote

Old   December 2, 2013, 11:53
Default how two plot vlocity profile on the airfoils in the airfoil??
  #3
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
hi dear all
i am simulating the flow on an 3 element airfoil, now i want to plot the velocity profile at the different stations on the airfoil, as like as the pictures in the attachment, could you please give me some suggestion how i can plot this figure?
Attached Images
File Type: png 1.png (24.4 KB, 80 views)
File Type: jpg 2.jpg (85.3 KB, 112 views)
File Type: jpg 3.jpg (84.3 KB, 58 views)
s.m is offline   Reply With Quote

Old   December 8, 2013, 10:34
Default contour plot of turbulent intensity in paraview
  #4
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Dear Foamers, i need a help!
i want to plot the contour of turbulent intensity on my airfoil, somthing like the picture in the attachment, i don't know how can i do it, can any body guide me?
Thaknk you very much.
Attached Images
File Type: jpg 1.jpg (71.5 KB, 77 views)
s.m is offline   Reply With Quote

Old   December 8, 2013, 11:10
Default
  #5
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by Artur View Post
Hi,

In paraview you could use the "plot over line" filter. Optionally, you can use the OF sampling utilities. There's quite a lot of info in this link and the tutorials it mentions:

http://www.openfoam.org/docs/user/sample.php

Cheers,

A
Dear artur how can i set the plot over a line in paraview?
first of all i load the VTK of my file, then i select the plot over line in direction of y axis then i hit apply, i doesn't show my any thing in it's figure,
Sorry, can you guide me more
s.m is offline   Reply With Quote

Old   December 12, 2013, 09:50
Default
  #6
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 226
Rep Power: 6
Artur is on a distinguished road
Hi,

You got it right, not sure what your problem is to be fair. Here's a step-by-step of how I do it:

1. load your case to apraview using paraFoam
2. add the plotOverLine filter, in Display tab of the object inspector mark the thing you want to plot (my example is for pressure)
3. hit apply and a figure should appear on the right hand side showing a plot in the line coordinate system

Your problem might be that either you didn't load the data to paraview but just the mesh or you have nothing selected in the display tab I think.

If you want to plot the axial components of velocity and not just its magnitude you may use the Calculator filter first, select the result to be the U_X scalar and then apply the plot over line to it - without doing this you would only be able to plot the magnitude of U.

Let me know if that helps.

A

P.S. depending on what you want to plot, you might also look at the OpenFOAM probe utilities which allow you to sample over a surface. You can then easily read the data into Python, Matlab or whatever and make nice plots there. If you want to plot the Cp over your foil that's probably the better way to do it.
Attached Images
File Type: jpg p.jpg (21.7 KB, 64 views)
File Type: jpg line.jpg (15.7 KB, 67 views)
s.m likes this.
Artur is offline   Reply With Quote

Old   January 5, 2014, 18:20
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,253
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@Saeideh: Sorry for taking so long to answer to your questions, but my to-do list here on the forum is getting bigger than the time I have available

I moved a couple of posts you had made on other threads into this one, because they are all related, one way or another. So, in order:

Quote:
Originally Posted by s.m View Post
i am simulating the flow on an 3 element airfoil, now i want to plot the velocity profile at the different stations on the airfoil, as like as the pictures in the attachment, could you please give me some suggestion how i can plot this figure?
The PDF file you're referring seems to be this one: http://www.iitk.ac.in/reach/2010/ses...10_for_web.pdf
This is a pretty tricky thing to do in ParaView. Let's see:
  1. You need to do something similar to what I described in this post: plot cp on airfoils post #12
    The difference from that post is that you need the "n/c" which seems to stand for "normal by chord".
  2. In the first image attached, is a circle pretending to be an airfoil:
    1. I applied the "Slice" filter to the original case file from OpenFOAM.
    2. Then I applied the filter "Plot Over Line" to it. The position of the 2 points was done with the help of the big "Y axis" button on the lower left corner of the image to set the line aligned, then with the help of the mouse (+ the Shift key) to move the two extremities of the line.
      Note: you might have to manually calculate the positions of these two points, since you need them to be located exactly in the right place.
  3. Once the filter "Plot Over Line" is applied, in the second image is shown the settings used on the left, for the plot on the right. I don't have yet the "n/c" entry, but I do have "arc-length", which is the distance between the first line point to the sample point.
  4. Apply the "Calculator" filter to the "PlotOverLine1" entry, as shown in the 3rd image, with the calculation:
    Code:
    arc_length/0.5
    And the "Result Name Array" named "n/c".
  5. In the 4th image is shown that you now have to apply the filter "Plot Data" to the "Calculator1" entry. And is shown how the filter is configured.
  6. For configuring the labels for the plot axis, check this post: annotations size of cube axes post #2
Note: The use of the "Slice" filter was merely for making it easier to see where the line was placed. You can right-click on the entry "PlotOverLine1" and choose "Change Input..." and choose the ".OpenFOAM" file or VTK file as your input.

Then it's just a matter of doing the same for all other stations.

Quote:
Originally Posted by s.m View Post
i want to plot the contour of turbulent intensity on my airfoil, somthing like the picture in the attachment, i don't know how can i do it, can any body guide me?
First use the filter "Slice" and then apply the "Contour" filter to the item "Slice1"... Make sure to configure the correct field to be represented in the "Slice1" and the correct field and contour values for "Contour1".


Mmm... I was planning on taking care of another reply here, but it's best to answer where you had asked it, namely here: why can't i get streamlines in paraview? post #15

Best regards,
Bruno
s.m and seav like this.
wyldckat 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
To plot velocity profile along different x-axis devanson Tecplot 5 December 30, 2014 16:40
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19
plot the velocity profile Joe Trabo Main CFD Forum 2 January 13, 2003 23:23


All times are GMT -4. The time now is 19:24.