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

Plot over line question

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

Like Tree4Likes
  • 4 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   February 21, 2014, 06:12
Default Plot over line question
  #1
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,097
Rep Power: 16
RodriguezFatz will become famous soon enough
Hi all,

I really don't know how to explain this:
Is there any way to get a "plot over line" plot, where only the cell center values of a cell are shown? I want to see the numerical (spatial) resolution of my grid in the plot, to see if all calculated curves are sampled sufficiently.

Basically, I want exactly what I get when I do an x-y-plot in Ansys Fluent.

In the surface plot you can see the cell size / spatial resolution:
surface_plot.jpg

The plot over line is always equally sampled:
plot_over_line.jpg


Thanks for any help!
Philipp.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   February 22, 2014, 11:52
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,308
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Philipp,

Took me a while to think about this, but I believe I know what you're looking for. The steps should be as follows:
  1. Apply the "Slice" filter, along the direction of your original line.
  2. Apply a second "Slice" filter, applied to the first one, along the location of the intended line.
  3. You should now have the same line you originally intended, but with some extra information that the "Plot over line" doesn't give you, namely the "Cell Data". This is because "Plot over line" does interpolation into point data.
  4. Now, apply the filter "Plot data" to the second slice.
  5. In the... I think it's the "Display" tab (writing from memory here ), you can choose to plot the cell data, instead of the point data.
And that should be the solution for your question!

Best regards,
Bruno
kiddmax, ArathoN, Hueto and 1 others like this.
wyldckat is offline   Reply With Quote

Old   February 22, 2014, 12:38
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,110
Rep Power: 19
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

Maybe you are looking for 'Point Data To Cell Data' filter? I've attached comparison of the Plot Over Line with and without applying the filter. Steps in the plot over line after point data to cell data correspond to the cells of the mesh.
Attached Images
File Type: jpg Capture dcran 2014-02-22 17.32.07.jpg (35.1 KB, 79 views)
alexeym is offline   Reply With Quote

Old   February 22, 2014, 12:57
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,308
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Alexey,
Quote:
Originally Posted by alexeym View Post
Maybe you are looking for 'Point Data To Cell Data' filter? I've attached comparison of the Plot Over Line with and without applying the filter. Steps in the plot over line after point data to cell data correspond to the cells of the mesh.
Be very careful with that filter, because that filter interpolates the data from points to cells. And interpolating twice (cell -> point -> cell) does not necessarily give you the same exact original data.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 24, 2014, 04:02
Default
  #5
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,097
Rep Power: 16
RodriguezFatz will become famous soon enough
Quote:
Originally Posted by wyldckat View Post
Greetings Philipp,

Took me a while to think about this, but I believe I know what you're looking for. The steps should be as follows:
  1. Apply the "Slice" filter, along the direction of your original line.
  2. Apply a second "Slice" filter, applied to the first one, along the location of the intended line.
  3. You should now have the same line you originally intended, but with some extra information that the "Plot over line" doesn't give you, namely the "Cell Data". This is because "Plot over line" does interpolation into point data.
  4. Now, apply the filter "Plot data" to the second slice.
  5. In the... I think it's the "Display" tab (writing from memory here ), you can choose to plot the cell data, instead of the point data.
And that should be the solution for your question!

Best regards,
Bruno
Great Bruno, that worked in a minute!!!
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   September 3, 2014, 06:28
Default
  #6
New Member
 
Carla Ubbink
Join Date: Sep 2014
Posts: 5
Rep Power: 2
Carla is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Philipp,

Took me a while to think about this, but I believe I know what you're looking for. The steps should be as follows:
  1. Apply the "Slice" filter, along the direction of your original line.
  2. Apply a second "Slice" filter, applied to the first one, along the location of the intended line.
  3. You should now have the same line you originally intended, but with some extra information that the "Plot over line" doesn't give you, namely the "Cell Data". This is because "Plot over line" does interpolation into point data.
  4. Now, apply the filter "Plot data" to the second slice.
  5. In the... I think it's the "Display" tab (writing from memory here ), you can choose to plot the cell data, instead of the point data.
And that should be the solution for your question!

Best regards,
Bruno
Hi Bruno,

Thank you so much for your help. I have tried this, but would really like to plot the cell data vs the y-coordinates ( Points (1) ). Do you know of a way?

Thanks,
Carla
Carla is offline   Reply With Quote

Old   October 12, 2014, 13:36
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,308
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Carla and welcome to the forum!

Quote:
Originally Posted by Carla View Post
Thank you so much for your help. I have tried this, but would really like to plot the cell data vs the y-coordinates ( Points (1) ). Do you know of a way?
Sorry for the very late reply, but only did I manage to get to your question. I believe the following image pretty much answers your question (Note: you have to log-in to see the picture ):



Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2014-10-12 18:33:40.jpg (56.0 KB, 147 views)

Last edited by wyldckat; October 12, 2014 at 13:38. Reason: added "Note:"
wyldckat is offline   Reply With Quote

Old   November 3, 2014, 09:57
Default
  #8
New Member
 
Alejandro Martinez-Cava
Join Date: Oct 2012
Posts: 1
Rep Power: 0
Hueto is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Philipp,

Took me a while to think about this, but I believe I know what you're looking for. The steps should be as follows:
  1. Apply the "Slice" filter, along the direction of your original line.
  2. Apply a second "Slice" filter, applied to the first one, along the location of the intended line.
  3. You should now have the same line you originally intended, but with some extra information that the "Plot over line" doesn't give you, namely the "Cell Data". This is because "Plot over line" does interpolation into point data.
  4. Now, apply the filter "Plot data" to the second slice.
  5. In the... I think it's the "Display" tab (writing from memory here ), you can choose to plot the cell data, instead of the point data.
And that should be the solution for your question!

Best regards,
Bruno
Hi Bruno,

Thank you for your advice in this post, is really helping me to understand how Paraview works

I still have a doubt that I hope you can solve:
Basically I would like to retrieve Boundary Layer data using Paraview, and obviously 'Plot Over Line' is not the correct choice.
The thing is that if I use the 'Slice' filter over a normal line from the surface, the conflict could appear if the 'slicing line' does not follow a perfect normal direction from the surface.
Retrieving cell data in that way can imply the appearance of noise, can't it?

Thank you in advance.

Alex
Hueto is offline   Reply With Quote

Old   April 6, 2015, 14:03
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,308
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Alex and welcome to posting on the forum!

Sorry, but only today did I finally manage to look into your question. Essentially the solution is that you should:
  1. Use the filter "Extract Cells by Region" to extract only the cells you want to measure.
  2. Then use the filter "Plot Data" on that result, and don't forget to choose the "Cell Data" data type, so that you can see the accurate result of the values for the centres of the cells.
The other possibility is to:
  1. Select the cells with the face selection tool, as shown here: http://www.paraview.org/Wiki/index.p...ev&oldid=57405
  2. Then use the "Extract Selection" filter.
  3. Then use the filter "Plot Data" on that result.
Best regards,
Bruno
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
Derivative of velocity and mean velocity hiuluom OpenFOAM Post-Processing 1 May 29, 2015 23:42
2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45


All times are GMT -4. The time now is 13:07.