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

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

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 2 Post By Artur
  • 2 Post By Artur
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2013, 11: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: 15
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, 07:46
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
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 and dgfemkadri like 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: 15
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, 554 views)
File Type: jpg 2.jpg (85.3 KB, 647 views)
File Type: jpg 3.jpg (84.3 KB, 361 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: 15
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, 475 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: 15
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: 372
Rep Power: 20
Artur will become famous soon enough
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, 408 views)
File Type: jpg line.jpg (15.7 KB, 364 views)
s.m and dyle like this.
Artur is offline   Reply With Quote

Old   January 5, 2014, 18:20
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: http://www.cfd-online.com/Forums/ope...tml#post468732 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: http://www.cfd-online.com/Forums/par...tml#post455158 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: http://www.cfd-online.com/Forums/ope...tml#post468745 post #15

Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2014-01-05 22:00:04.jpg (46.4 KB, 459 views)
File Type: jpg Screenshot from 2014-01-05 22:04:24.jpg (45.3 KB, 321 views)
File Type: jpg Screenshot from 2014-01-05 22:06:39.jpg (46.2 KB, 306 views)
File Type: jpg Screenshot from 2014-01-05 22:08:24.jpg (47.0 KB, 307 views)
s.m and seav like this.
__________________
wyldckat is offline   Reply With Quote

Reply


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
[Gmsh] Structured meshing in Gmsh the_phew OpenFOAM Meshing & Mesh Conversion 19 August 24, 2022 04:19
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
InterFoam average WATER velocity along a line and plot over time Nick_civ OpenFOAM Post-Processing 0 June 20, 2014 07:17
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32
Problems of Duns Codes! Martin J Main CFD Forum 8 August 15, 2003 00:19


All times are GMT -4. The time now is 17:51.