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

[General] EPS files in ParaView

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 3 Post By Yann
  • 7 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2013, 18:29
Default EPS files in ParaView
  #1
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello all,

I use ParaView 4.0.1 to post-process simulations from OpenFOAM and i'm stumbling to export eps files using the "export scene" function.

Basically, i plot a slice of velocity field and i would like to have a vectorial image of it in an eps file to use it in LaTeX.
The only thing i can get is a compressed image of the whole scene. If I choose to not rasterize 3D geometry in the export options, i get a vectorial image but the whole slice is gray and i don't see the velocity field.

Do i miss something somewhere ? Or is it just not possible to get a vectorial image of the slice ?
Does anybody has a trick to solve this problem ?

Thanks,
Yann
Yann is offline   Reply With Quote

Old   July 21, 2013, 07:18
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Nobody else with this problem ?
Or just not any solution to have a proper export in eps file ?
Yann is offline   Reply With Quote

Old   July 21, 2013, 13:32
Default
  #3
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 Yann,

Can you please show an example of what you are seeing in ParaView and on the EPS file?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 21, 2013, 20:15
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Bruno,

You're right, an example is better than a long talk so, here is the thing :

On the screenshot.jpg is what i see on Paraview : a velocity field, glyphs and a colormap.
Then, I use the "export scene" function with default options and here is what i have in my eps file (eps1.jpg) : the colormap is missing and when I zoom in (eps1_zoom.jpg) the velocity field and glyph are compressed.
I give a second try and i export with the same options except that i choose to untick the "rasterize 3D geometry" option : it works better (eps2.jpg), I have the colormap, the glyphs and both are vectorial (eps2_zoom.jpg) but I've lost the color on the velocity field...

I played with the options but I can't find something working...
Any suggestion ?

Regards,
Yann
Attached Images
File Type: jpg screenshot.jpg (84.9 KB, 325 views)
File Type: jpg eps1.jpg (97.3 KB, 258 views)
File Type: jpg eps1_zoom.jpg (89.3 KB, 210 views)
File Type: jpg eps2.jpg (81.4 KB, 219 views)
File Type: jpg eps2_zoom.jpg (69.3 KB, 161 views)
Yann is offline   Reply With Quote

Old   August 18, 2013, 19:24
Default
  #5
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
Hi Yann,

I don't know if you managed to find the solution and I don't know if you saw this other thread on nearly the same topic, that has a few possible solutions: http://www.cfd-online.com/Forums/par...-paraview.html

The options from post #2 worked well for me, although I had to first change the colours of the text for the scalar bar, otherwise the text would be white on white paper

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 19, 2013, 11:05
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi Bruno,

Thanks for your reply. I tried to use your solution on the other topic but i get the same result than in the second example in my previous post: it works but i loose the color of the velocity field.
I tried to export only the slice of velocity field without glyphs but it's the same result.

I'm using ParaView 4.0.1 64bit on Windows 7 64bit.
I tried the same version of ParaView running on a virtual machine with Ubuntu 12.04 but it was worst (nothing exported except the scalar bar). I'm not so confident in this machine as it isn't a clean install but currently i haven't another machine to test it.

If it works well for you i guess the problem can only come from me or my computer...

Best regards,
Yann

Last edited by Yann; August 19, 2013 at 18:25.
Yann is offline   Reply With Quote

Old   August 19, 2013, 13:13
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
Hi Yann,

Well, I tested ParaView 4.0.1 64bit on a machine with Windows 7 64bit and it crashes midway of the export scene.
Apparently there is a weird issue with renaming the temporary file that it generates for the export scene, at least on my machine.

Nonetheless, when I export to PDF, the resulting PDF file is somehow damaged, but the contents seem fine, as provided in the attachment.
edit: I used the settings from the post #2 on the other thread.


Unfortunately I'm unable to figure out the problem

Best regards,
Bruno
Attached Files
File Type: zip test.zip (29.2 KB, 43 views)
__________________

Last edited by wyldckat; August 19, 2013 at 13:13. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   August 19, 2013, 18:24
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Thank you Bruno for your tests!

The export seems surprisingly machine-dependant. I have no crash nor warnings in ParaView when exporting in EPS.
I also tried an export to PDF and it leads to the same problem than for EPS, as you can see in the attachment. (And the resulting PDF file seems "damaged" like your)

I have no idea about what could cause such differences as on your last test we use the same OS and same version of ParaView.
I know this function was one of the most requested features by the users, but I can't find other users dealing with the same issue on the internet.

For now I'm stuck, I'll try to export from another machine as soon as I'll have the occasion.

Best regards,
Yann
Attached Images
File Type: png options.png (39.9 KB, 268 views)
Attached Files
File Type: pdf testLight.pdf (84.8 KB, 116 views)
Yann is offline   Reply With Quote

Old   August 20, 2013, 18:52
Default
  #9
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
Hi Yann,

I remembered just now to check with my test case to export the scene when representing the "point data", instead of the "cell data" that I've been using, and I got the same issue of having a grey geometry... although ParaView still crashed
By the way, I always used the 3D representation, but 2D mode gave the same issue.

I'll test on my home computer at the end of this week, to see if on Ubuntu I get the same issue or not... because I think I used "cell data" as well on that case.

Nonetheless, my guess is that since point data is actually a representation of interpolated results onto surfaces, it is not easily pseudo-rasterized (because we turned off the 3D raster option) by the gl2ps driver.

But still, I'll test this on my Ubuntu machine later this week.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 21, 2013, 05:22
Default
  #10
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi Bruno,

Well done, that's it!
I was exporting the view from "point data" representation. It works well with the "cell data", as you can see in the attachment.

I've seen you were using "cell data" on the PDF file you've posted but I didn't realize it could be the source of the issue. You're probably right about the trouble for gl2ps to export interpolated data.
I hope this will be useful to users dealing with the same issue. Thank you for your help, I would have spent a lot of time before figuring this out on my own.

By the way, I post a PDF file but the export to EPS file works also fine for me.

Best regards,
Yann
Attached Files
File Type: zip testCellDat.zip (85.1 KB, 110 views)
wyldckat, kiddmax and flowAlways like this.
Yann is offline   Reply With Quote

Old   September 11, 2014, 03:34
Default
  #11
New Member
 
Bhim Prakash
Join Date: Sep 2014
Posts: 1
Rep Power: 0
jaibhi is on a distinguished road
I am having the same issue of losing colors when unchecking the rasterize 3D geometry option.
Reading through the discussions above, it seems that the data types I am using (Point) maybe the issue. However, I am confused on how to switch between 'point data' representation and 'cell data' representation while exporting from Paraview. Can you elaborate more on this issue?
jaibhi is offline   Reply With Quote

Old   September 13, 2014, 16:34
Default
  #12
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 jaibhi and welcome to the forum!
Quote:
Originally Posted by jaibhi View Post
Can you elaborate more on this issue?
In a nutshell:
  1. I wrote a post about "point data" vs "cell data" sometime ago... it's this one: http://www.cfd-online.com/Forums/ope...tml#post446469 post #12
  2. You can use the filter "Point Data to Cell Data" to interpolate the values from points to the center of the cells.
  3. See the attached image, where the lines with the orange cubes are the cell data and the lines with the orange'ish dot is the point data (it's the last two lines).
Best regards,
Bruno
Attached Images
File Type: png Screenshot from 2014-09-13 20:31:06.png (9.5 KB, 60 views)
wyldckat is offline   Reply With Quote

Old   May 5, 2015, 10:55
Default Exporting point data in vector graphics from ParaView 4.3.1
  #13
Member
 
Jibran
Join Date: Oct 2012
Location: UK
Posts: 61
Blog Entries: 1
Rep Power: 15
Jibran is on a distinguished road
Hello Everyone,

I am still facing the same problem for point data in ParaView 4.3.1. It works well for cell data as mentioned earlier. The options for exporting the scene and the results are attached.

Any information on how to export ParaView point data in vector graphics will be appreciated. Thanks!

Best Regards
Attached Images
File Type: png options.PNG (17.8 KB, 120 views)
File Type: jpg cellData.jpg (30.6 KB, 139 views)
File Type: jpg pointData.jpg (33.2 KB, 125 views)
__________________
Jibran Haider
Jibran is offline   Reply With Quote

Old   September 20, 2015, 15:50
Default
  #14
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 Jibran,

I had this on my to-do list and only today did I finally manage to look into this.
The solution has already been presented here: http://public.kitware.com/pipermail/...ry/030648.html
Quoting the details:
  1. Disable "Interpolate Scalars Before Mapping"
  2. Set "Backface Representation" to "Cull Backface"
Both are in the "Properties -> Display" section, visible only when the advanced options are turned on, as shown in the attached image. Marked in red are the 3 controls I mentioned.

Best regards,
Bruno
Attached Images
File Type: png Settings for printing EPS.png (53.2 KB, 201 views)
wyldckat is offline   Reply With Quote

Old   November 9, 2016, 10:52
Default
  #15
New Member
 
Sebastian Fink
Join Date: Mar 2016
Posts: 1
Rep Power: 0
Sebastian Fink is on a distinguished road
Hi,

I try to export a vector graphic using binary package ParaView5.2 / 4.4 in Ubuntu 16.04.

I tried different options but just the numbers are good.
I checked the other two Threads as well but I don't what I miss.

Best regards
Sebastian
Attached Files
File Type: gz Test.pdf.gz (38.0 KB, 24 views)
Sebastian Fink is offline   Reply With Quote

Reply

Tags
eps, export scene, paraview 4.0.1, vectorial


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
[General] Paraview and CFX transient files ofer ParaView 2 November 9, 2018 04:20
[General] Cannot open files with Paraview 5.4.1 srtg9 ParaView 2 May 29, 2018 04:45
[snappyHexMesh] Difference in number of cells between Paraview and Log files unnikrsn OpenFOAM Meshing & Mesh Conversion 6 January 10, 2012 10:52
[General] How to open pvtu files from freecfd in paraview XXLRay ParaView 1 November 29, 2011 09:54
[OpenFOAM] ParaView 3.6.1 & 3.7.0: Can't view STL files johannes ParaView 2 December 3, 2009 15:07


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