import sys sys.path.append('/home/user/local/usr/lib/python2.7/site-packages/') import silomesh silomesh.init_silo("filename.silo") silomesh.init_mesh('Mesh1', *mesh.dimension, *mesh.lower_left, *mesh.upper_right) silomesh.init_var('Variable1') for x in range(1,nx+1): for y in range(1,ny+1): for z in range(1,nz+1): silomesh.set_value(float(value),x,y,z) silomesh.finalize_var() silomesh.finalize_mesh() silomesh.finalize_silo()