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

XY curved plot with Paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 5 Post By nunoloureiro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2010, 04:51
Default XY curved plot with Paraview
  #1
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
Hi all,

I have two questions regarding the way one can get results with a Line Plot in Paraview:

1- I want to measure a quantity over a curved line but the filter I find in Paraview only allows to select 2 points. Is there a way to make this line curved and plot the values in the line?

2- After getting the 2D plot with the filter is it possible to export the data. So I can use it with another program (Excel for example)?

Thanks,

Nuno
nunoloureiro is offline   Reply With Quote

Old   March 18, 2010, 05:53
Default
  #2
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
I found the answer for the second question already:
After having the plot, click in the button split horizontal in the up-right corner and then spreadsheet. You should see a table with the points of the plot.
To export go to File->Export and you will have a cvs file wich can be opened in Excel.

Still looking for the answer to the first question...

Nuno
nunoloureiro is offline   Reply With Quote

Old   March 18, 2010, 06:17
Default
  #3
New Member
 
Stylianos Kyriacou
Join Date: Mar 2010
Location: Cyprus - Athens - Austria - Zurich
Posts: 27
Rep Power: 16
Stylianos is on a distinguished road
You can give a look on pv-meshless (a viration of paraview). There you can insert external point prob files and plot variables on them .
An example of a point prob file is:

#Label X Y Z
PointProbe
P01 2.3955 0.50 0.021

where you can give as many points as you wont.

Stelios

p.s. there are also other type of probs like line,disc etc you can check them out your self and pick what suits your needs.
I usually use a line prob where a number of small line segments gives me the curve i want (thats pretty easy if can export this file directly out of your grid generator).
Stylianos is offline   Reply With Quote

Old   March 18, 2010, 08:17
Default
  #4
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
Thank you for the answer.

I installed pv-meshless and I am trying to insert the probes. Individual points and the line works fine (just like in PV) but I cannot make a disc.
Is it possible to add a file and import the points where you want to measure? For example it would be nice to generate points on a sphere surface and measure the values there.

I am not sure if this was what you meant with:
Quote:
#Label X Y Z
PointProbe
P01 2.3955 0.50 0.021
If yes, please tell me where I can edit the file.

Thanks,
Nuno
nunoloureiro is offline   Reply With Quote

Old   March 18, 2010, 09:03
Default
  #5
New Member
 
Stylianos Kyriacou
Join Date: Mar 2010
Location: Cyprus - Athens - Austria - Zurich
Posts: 27
Rep Power: 16
Stylianos is on a distinguished road
A typical prob file for disc is:

#Label X Y Z Nx Ny Nz out-radius in-radius
DiskProbe
D01 0.0 0.0 -0.165 0.0 0.0 -1.0 0.0 0.0

p.s. Disc with inner radius = 0 for normal installation (to manipulate the inner radius you need to hack vtkProbeReader.cxx)

I Don't think there is a ready to use sphere prob (although it might be there) but you can either create something yourself within PV (and share it with the community ) or simply create a perl(or whatever) script that creates a pointProb file with the points on a sphere.

Stelios
Stylianos is offline   Reply With Quote

Old   March 18, 2010, 09:17
Default
  #6
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
I actually found how to do this with the sphere;
You can add a sphere by Sources->Sphere; Then select the Filsters->SPH Probe qnd on the source select the sphere. I works just fine.

But for the disc I didn't quite get it. Where should I add the file you just wrote?
Or what kind of extension should I give it?

Nuno
nunoloureiro is offline   Reply With Quote

Old   March 18, 2010, 09:30
Default
  #7
New Member
 
Stylianos Kyriacou
Join Date: Mar 2010
Location: Cyprus - Athens - Austria - Zurich
Posts: 27
Rep Power: 16
Stylianos is on a distinguished road
To use a prob file:

1) load the probe file (File --> Open)
2) choose the "Probe Mesh/Meshless DataSet" filter (Filter --> Alphabetical --> Probe Mesh/Meshless DataSet). Input is your object and probe the probe file.

Stelios
p.s. maybe there is something similar to the way you used sphere though.. what ever is easier for you
Stylianos is offline   Reply With Quote

Old   March 18, 2010, 09:50
Default
  #8
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
Quote:
#Label X Y Z Nx Ny Nz out-radius in-radius
DiskProbe
D01 0.0 0.0 -0.165 0.0 0.0 -1.0 0.0 0.0
Thanks for the answers.

With what extension should I save the file of the disc? Since there are just certain files that PV can open.
nunoloureiro is offline   Reply With Quote

Old   March 18, 2010, 09:55
Default
  #9
New Member
 
Stylianos Kyriacou
Join Date: Mar 2010
Location: Cyprus - Athens - Austria - Zurich
Posts: 27
Rep Power: 16
Stylianos is on a distinguished road
You can use .probe .

Glad to help
Stelios
Stylianos is offline   Reply With Quote

Old   March 18, 2010, 10:09
Default
  #10
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
sorry but that extension doesn't work for the PV-meshless I have. maybe I am doing something wrong: I just copied the file you gave to a text editor and saved as new.probe. I then tried to load it (File->Open) but it doesn't recognize the file.
Can you tell me how you do it?
nunoloureiro is offline   Reply With Quote

Old   March 18, 2010, 10:14
Default
  #11
New Member
 
Stylianos Kyriacou
Join Date: Mar 2010
Location: Cyprus - Athens - Austria - Zurich
Posts: 27
Rep Power: 16
Stylianos is on a distinguished road
Actually the extension dose not play any role, its just good just to keep track of everything. file-->open-->files of type -->"All files"-->select probe file --> open
Stylianos is offline   Reply With Quote

Old   March 18, 2010, 10:31
Default
  #12
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
I am using Windows.. Maybe that is the reason why it does not work. When i try to open the file, after clicking "all files" qnd "OK" it asks for the reader to open the file: "A reader could not be found please selected one: ". There are a lot of possibilities but most of them give errors.
thanks
nunoloureiro is offline   Reply With Quote

Old   March 18, 2010, 10:46
Default
  #13
New Member
 
Stylianos Kyriacou
Join Date: Mar 2010
Location: Cyprus - Athens - Austria - Zurich
Posts: 27
Rep Power: 16
Stylianos is on a distinguished road
I've never used it under windows so i can't really help. Although i don't think this should be a prob (maybe a versioning think)!

Hope someone else can give you an answer ...
Stelios
Stylianos is offline   Reply With Quote

Old   March 18, 2010, 11:14
Default
  #14
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
thanks! I'll wait for someone else to answer
nunoloureiro is offline   Reply With Quote

Old   April 23, 2010, 06:35
Default
  #15
New Member
 
Nuno
Join Date: Mar 2010
Posts: 10
Rep Power: 16
nunoloureiro is on a distinguished road
Hi all,

I actually found a way of having the points on a circumference slice with paraview. I did this by making a first slice with a sphere and after making a slice of the sphere with a plane.
The advantage of doing this with PV and not pv-meshless is that we can export the points in the end (to excel for exmple). I couldn't find a way of exporting with pv-meshless.

Question: Does anyone know how to increase the number of points of each slice? When I cut the sphere I only get 60 points and I need a lot more to plot a good graph.

Nuno
nunoloureiro is offline   Reply With Quote

Old   August 25, 2010, 19:40
Default
  #16
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Quote:
Originally Posted by nunoloureiro View Post
thanks! I'll wait for someone else to answer
There is a file type in pv-meshless that is ESPHI-Probe (*.probe).
Use that to load you probe file.
aerothermal is offline   Reply With Quote

Old   August 26, 2013, 14:16
Smile
  #17
New Member
 
Join Date: Aug 2013
Posts: 1
Rep Power: 0
xingyun2013 is on a distinguished road
Hi all,
I have found a way without using pv-meshless. The plot on intersection curve filter would help. First, transfer cell data to point data, then use plot intersection curve filter to create an object(plane,box,or sphere) which intersect with the domain you are interested, the use plot data and you can view the data on this object.
xingyun2013 is offline   Reply With Quote

Reply

Tags
curved line, paraview 3.6.1, plot


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
[OpenFOAM] basic question contour plot in paraview Kate ParaView 7 July 23, 2020 15:05
[OpenFOAM] How to plot flow rate over time with Paraview sekunda ParaView 17 July 23, 2020 14:14
[OpenFOAM] plot particles and animation in paraview phsieh2005 ParaView 1 July 26, 2013 06:35
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
[OpenFOAM] Paraview Cp Plot prapanj ParaView 0 June 11, 2009 06:32


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