Hi, I want to input a voxel file to Meep instead of the standard .ctl file. For those people who might not know what a voxel file is, it is basically a file, say in text format, where a 3D object is defined with voxels (3D counterparts of pixels which are in 2D ). A simple voxel file for an optical fiber can be something like this:
*************sampleVoxel.vox******************* for z=0 plane: 222222222222222222222 222222000000000222222 222200000000000002222 222000001111100000222 220000011111110000022 220000011111110000022 222000001111100000222 222200000000000002222 222222000000000222222 222222222222222222222 for z=1 plane: 222222222222222222222 222222000000000222222 222200000000000002222 222000001111100000222 220000011111110000022 220000011111110000022 222000001111100000222 222200000000000002222 222222000000000222222 222222222222222222222 .... ************************************************* where 0,1,2 can be considered as material1, material2 ... So the voxel file gives sufficient information about the 3D mesh we need for the FDTD algorithm. Ok, now what I am trying to do is instead of writing a ctl file and let meep convert it to a 3D mesh, I want to interface my 3D mesh directly to Meep. Anyone having a suggestion? Where should I start? Where in the source code is the ctl file converted into a 3D mesh? Which class/object represents the 3D mesh? Thank you, Regards Erman _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

