This script produces Figure 3b from the OzBench et al, 2008 benchmark using a glucifer store saved in OzBenchEtAl-2008.ipynb
.
References
import os
outputPath = os.path.join(os.path.abspath("."),"output/")
if not os.path.exists(outputPath):
os.makedirs(outputPath)
import glucifer
saved = glucifer.Viewer(outputPath+'ozBench', quality=3)
Create image for each saved timestep
#Apply the camera script
saved.commands(['translate y 1', 'rotate y 60', 'rotate x 30', 'zoom 0.1'])
#Write an image for each time step
for step in saved.timesteps():
saved.timestep(step)
saved["title"] = "Timestep ##"
saved.image(outputPath + "ozBenchParticle_"+ str(step).zfill(4))
#Display the final image
saved.show()