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

EPS files in ParaView

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

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Display Modes
Old   July 9, 2013, 17:29
Default EPS files in ParaView
  #1
New Member
 
Yann
Join Date: Apr 2012
Location: Paris, France
Posts: 16
Rep Power: 5
Yann is on a distinguished road
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, 06:18
Default
  #2
New Member
 
Yann
Join Date: Apr 2012
Location: Paris, France
Posts: 16
Rep Power: 5
Yann is on a distinguished road
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, 12:32
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 19:15
Default
  #4
New Member
 
Yann
Join Date: Apr 2012
Location: Paris, France
Posts: 16
Rep Power: 5
Yann is on a distinguished road
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, 89 views)
File Type: jpg eps1.jpg (97.3 KB, 76 views)
File Type: jpg eps1_zoom.jpg (89.3 KB, 60 views)
File Type: jpg eps2.jpg (81.4 KB, 71 views)
File Type: jpg eps2_zoom.jpg (69.3 KB, 49 views)
Yann is offline   Reply With Quote

Old   August 18, 2013, 18:24
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: Publication-quality Mesh Figures from Paraview

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, 10:05
Default
  #6
New Member
 
Yann
Join Date: Apr 2012
Location: Paris, France
Posts: 16
Rep Power: 5
Yann is on a distinguished road
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 17:25.
Yann is offline   Reply With Quote

Old   August 19, 2013, 12:13
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 16 views)

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

Old   August 19, 2013, 17:24
Default
  #8
New Member
 
Yann
Join Date: Apr 2012
Location: Paris, France
Posts: 16
Rep Power: 5
Yann is on a distinguished road
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, 76 views)
Attached Files
File Type: pdf testLight.pdf (84.8 KB, 49 views)
Yann is offline   Reply With Quote

Old   August 20, 2013, 17:52
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 04:22
Default
  #10
New Member
 
Yann
Join Date: Apr 2012
Location: Paris, France
Posts: 16
Rep Power: 5
Yann is on a distinguished road
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, 43 views)
wyldckat likes this.
Yann is offline   Reply With Quote

Old   September 11, 2014, 02: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, 15:34
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: studying a valve case 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, 15 views)
wyldckat is offline   Reply With Quote

Old   May 5, 2015, 09:55
Default Exporting point data in vector graphics from ParaView 4.3.1
  #13
New Member
 
Jibran
Join Date: Oct 2012
Location: Swansea, UK
Posts: 25
Rep Power: 4
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, 13 views)
File Type: jpg cellData.jpg (30.6 KB, 13 views)
File Type: jpg pointData.jpg (33.2 KB, 12 views)
__________________
Jibran Haider
PhD Researcher
Swansea University, UK
http://jibranhaider.weebly.com/
Jibran is offline   Reply With Quote

Reply

Tags
eps, export scene, paraview 4.0.1, vectorial

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
Paraview nice animation PyGloo ParaView 4 June 7, 2012 12:34
How to compress results files so that paraview can still read them mirko OpenFOAM Paraview & paraFoam 2 January 20, 2011 12:07
Paraview installation troubles jjhall OpenFOAM Installation 3 April 17, 2008 12:59
[making animations] fclose fails to close files? Mika FLUENT 0 March 30, 2001 08:19
Merging .msh files in TGrid Raza Mirza FLUENT 2 January 18, 2001 19:09


All times are GMT -4. The time now is 11:45.