- Thank you received: 0
Saving netgen output
5 years 6 months ago #1596
by bakerk
Saving netgen output was created by bakerk
Hi!
Is it possible to save the video of the solution that is outputted in netgen? or tell netgen to screenshot the solution at each step?
I have a code similar to to the one given here(in terms of the output given) : ngsolve.org/docu/latest/i-tutorials/unit...bolic/parabolic.html
I see in this itutorial that I can save VTK files at each step, but am not sure how to use these correctly.
Thanks,
Katie
Is it possible to save the video of the solution that is outputted in netgen? or tell netgen to screenshot the solution at each step?
I have a code similar to to the one given here(in terms of the output given) : ngsolve.org/docu/latest/i-tutorials/unit...bolic/parabolic.html
I see in this itutorial that I can save VTK files at each step, but am not sure how to use these correctly.
Thanks,
Katie
5 years 6 months ago #1598
by bakerk
Replied by bakerk on topic Saving netgen output
Ive now seen this:
ngsolve.org/forum/ngspy-forum/40-netgen-...shot-from-python#253
and the solution in here is saving snapshots, but saves them a ppm files regardless of me giving it the required file type :
ngsolve.internal.SnapShot("test.png")
and the solution in here is saving snapshots, but saves them a ppm files regardless of me giving it the required file type :
ngsolve.internal.SnapShot("test.png")
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
5 years 6 months ago #1599
by christopher
Replied by christopher on topic Saving netgen output
Hi,
for snapshots only ppm and jpg are supported. For more advanced visualization the vtk files can be read by for example paraview and videos can be created there.
Best
Christopher
for snapshots only ppm and jpg are supported. For more advanced visualization the vtk files can be read by for example paraview and videos can be created there.
Best
Christopher
5 years 6 months ago #1600
by bakerk
Replied by bakerk on topic Saving netgen output
Hi,
thanks for the reply! Ive just tried doing ngsolve.internal.SnapShot("test.jpg") instead but it still saves a ppm file (test.jpg.ppm)
Many thanks
Katie
thanks for the reply! Ive just tried doing ngsolve.internal.SnapShot("test.jpg") instead but it still saves a ppm file (test.jpg.ppm)
Many thanks
Katie
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
5 years 6 months ago #1601
by christopher
Replied by christopher on topic Saving netgen output
Ah sorry I just saw, the installers are built without jpeg support... If you build from source you can enable it with the cmake argument -DUSE_JPEG=ON.
Best Christopher
Best Christopher
Time to create page: 0.106 seconds