On May 12, 2008, at 5:51 AM, Rakesh Mote wrote:
> I wish to create annular corrugations . For instance, inner radius  
> r1, outer radius r2 and thickness t.
> Can anyone give me more details about Cyl Cord definition:
> (set! geometry (list
>                 (make block (center (+ r (/ w 2))) (size w infinity  
> infinity)
>                       (material (make dielectric (index n))))))
> Once rings are constructed, how to invoke rotational symm?

See:  
http://ab-initio.mit.edu/wiki/index.php/Meep_Tutorial/Ring_resonator_in_cylindrical_coordinates

> One more query, how to get color scale bar showing values in png  
> files?

One trick is to do:

        echo "0 1" | h5fromtxt colorbar.h5
        h5topng -X 256 -Y 100 colorbar.h5

which will create a colorbar.png file that is 256x100 pixels, showing  
the color scale (which you can composite with the plots in a drawing  
program etc.).  Modify as needed for different sizes, different  
colorscales, etc.

Steven

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to