Hi Mukul, You can try the following code. You may want the code in a separate file (say test.ctl, then using "meep test.ctl" to run it) rather than typing it interactively as the control file become complicated.
--------------------------------------------------------------------------------------- ; in CTL, the origin is the center of the computational cell (set! geometry-lattice (make lattice (size 2 2 2))) (define A (make dielectric (epsilon 12))) (set! resolution 15) ; the default is 10 (set! geometry (list (make sphere (material A) (center 0 0 0) (radius 1)))) (run-until 2 (at-beginning output-epsilon)) ------------------------------------------------------------------------------------------------ After running, using the following command to covert the h5 file into a vtk format file which can be visualized by ParaView or mayavi2 or other visualization programs. h5tovtk -o test.vtk ***********.h5 Good Luck. Regards, Simon On Thu, Aug 30, 2012 at 5:40 PM, Mukul <[email protected]> wrote: > I want to visualize a sphere without any source . I write the code as > > meep> (set! geometry-lattice (make lattice (size 2 2 2))) > meep> (define A (make material-type (epsilon 12))) > meep> (set! geometry (list > ... (make sphere (material A) (center 1 1 1) (radius > 1)))) > > Is my code corrrect? What resolution should I specify and how to calculate > the > resolution? > > what should I write next as in the tutorial they have shown how to > calculate the > field and specified sources also but I want to do it without any source. > > I will also like to know how did they arrive at figure of 200 in the > (run-until) > command in the waveguide tutorial. > > Also why is the center of the current source mentioned at (-7 0) ? > > > > > _______________________________________________ > meep-discuss mailing list > [email protected] > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss >
_______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

