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) : 3.1 Parabolic model problem — NGS-Py 6.2.2302 documentation
I see in this itutorial that I can save VTK files at each step, but am not sure how to use these correctly.
Ive now seen this: Netgen snapshot from python - Kunena
and the solution in here is saving snapshots, but saves them a ppm files regardless of me giving it the required file type :
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.
thanks for the reply! Ive just tried doing ngsolve.internal.SnapShot(“test.jpg”) instead but it still saves a ppm file (test.jpg.ppm)
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.
Im using windows and am a bit of a novice when it comes to programming, so how do i do this?
Instructions are here: Build on Windows — NGS-Py 6.2.2302 documentation
But maybe we can pack the jpeg support into the next installer, I’ll keep you updated. You could convert the ppm to jpg as well…