Hi, there is no mistakes in your ctl.file. the only difference is when you tape the command h5topng -S 3 epsilon.h5 in your shell, then you got a line defect in the center of your structure ( see the attached epsilon1.png), but when you use mpb-data -r -m 3 -n 32 epsilon.h5, h5topng epsilon.h5:data-new, you will rectify the cell, expand it to three periods in each direction (see http://ab-initio.mit.edu/wiki/index.php/MPB_Data_Analysis_Tutorial), then you got the attached epsilon2.png. hope this help Best regards
--- On Tue, 12/28/10, 罗绪强 <[email protected]> wrote: From: 罗绪强 <[email protected]> Subject: Re: [MPB-discuss] Line-defect waveguide problem To: [email protected] Date: Tuesday, December 28, 2010, 7:40 PM Thanks very much for your reply! The structure that i want to bulid is ONLY one line-defect in the whole square lattice.Even if I set the supercell parameter to 10, this line-defect is still periodic.That means the line-defect isn't sole.Like that: oooo.... xxxx.... oooo.... oooo.... oooo.... oooo.... oooo.... oooo.... oooo.... oooo.... oooo.... xxxx.... oooo.... oooo.... oooo.... oooo.... oooo.... oooo.... oooo.... oooo.... oooo.... xxxx.... oooo.... What I need is: (Infinite oooo...) oooo.... oooo.... xxxx.... oooo.... oooo.... (Infinite oooo...) How to do it? Best regards. 2010/12/29 imanol andoni <[email protected]> Dear friend, I think you have a mistake in the supercell-y parameter. Your supercell width is 3 so MPB ensures a Bloch periodicity using a supercell composed by only three holes in y direction. You should probably try with: (define-param supercell-y 10) I'm waiting for hear from you. 2010/12/27 <[email protected]> Send mpb-discuss mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of mpb-discuss digest..." Today's Topics: 1. Line-defect waveguide problem (???) ---------------------------------------------------------------------- Message: 1 Date: Mon, 27 Dec 2010 20:50:38 +0800 From: ??? <[email protected]> Subject: [MPB-discuss] Line-defect waveguide problem To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Dear Prof. Johnson and Meep users, Hi all! I am new learner of MPB software and poor in English.So please forgive me for bad expression. I am trying to to calculate the waveguide of the square lattice structure that a line defect of the air holes on the epsilon.I use the "line-defect.ctl" for reference. like below: (define-param supercell-y 3) ; the (odd) number of lateral supercell periods (set! geometry-lattice (make lattice (basis1 1 0) (basis2 0 1) (size 1 supercell-y no-size))) (define-param r 0.2) ; the rod radius in the bulk crystal (set! geometry (list (make cylinder (center 0 0 0) (radius r) (height infinity) (material (make dielectric (epsilon eps)))))) (set! geometry (append (geometric-objects-lattice-duplicates geometry) (list (make cylinder (center 0) (radius r) (height infinity) (material air))))) then I got a result like that o= holes x=defcet oooo.... xxxx.... oooo.... oooo.... xxxx.... oooo.... oooo.... xxxx.... oooo.... Here is the problem,the square lattice structure that I want to calculate is ONLY one line-defect in that.That means the line-defect shall not be periodic.Like below: oooo.... oooo.... oooo.... oooo.... xxxx.... oooo.... oooo.... oooo.... oooo.... Could someone tell me how to write the ".ctl" fle? Really appreciate for your great help! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://ab-initio.mit.edu/pipermail/mpb-discuss/attachments/20101227/32467558/attachment-0001.htm> ------------------------------ _______________________________________________ mpb-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss End of mpb-discuss Digest, Vol 58, Issue 14 ******************************************* _______________________________________________ mpb-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss -----Inline Attachment Follows----- _______________________________________________ mpb-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss
<<attachment: epsilon1.png>>
<<attachment: epsilon2.png>>
_______________________________________________ mpb-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss
