Jun She's profile路在脚下BlogListsGuestbookMore Tools Help

Blog


    11/30/2006

    [路在脚下] Meep for developers

    [http://ab-initio.mit.edu/wiki/index.php/Meep_Installation#Meep_for_developers]
    If you want to modify the Meep source code, you will want to have a number of additional packages, most importantly:
    • The Darcs (http://www.darcs.net/) version-control system.

    Once you have Darcs, you can grab the latest development version of Meep with:

    darcs get http://ab-initio.mit.edu/~meep/meep 

    This gives you a fresh, up-to-date Meep repository in a directory meep. See www.darcs.net for more information on using Darcs; perhaps the most useful command is darcs pull, which you can execute periodically to get any new updates to the development version.

    Darcs will give you an absolutely minimal set of sources; to create a usable Meep directory, you should run:

    sh autogen.sh
    make

    in the meep directory. (And subsequently, if you are editing the sources you should include --enable-maintainer-mode whenever you reconfigure.) To do this, however, you will need a number of additional packages beyond those listed above:

    • GNU autoconf (http://www.gnu.org/software/autoconf/), automake (http://sources.redhat.com/automake/), and libtool (http://www.gnu.org/software/libtool/libtool.html) — these are used to create the Makefiles and configure scripts, and to build shared libraries.
    • The Glasgow Haskell Compiler (http://www.haskell.org/ghc/) — some of Meep's C++ source code files are actually generated by programs (in the hsrc/ subdirectory) written in a programming language called Haskell.
    • SWIG (http://www.swig.org/) — the Scheme/libctl interface to Meep is largely generated by a program called SWIG (Simple Wrapper and Interface Generator). We currently require SWIG version 1.3.25 or later. Moreover, if you are using 1.3.27 or earlier, you must patch the file Source/Modules/guile.cxx with this bug fix (http://cvs.sourceforge.net/viewcvs.py/swig/SWIG/Source/Modules/guile.cxx?r1=1.33&r2=1.34).
    要干这个了,可是一点都不懂

    --
    Posted By Jun to 路在脚下 at 11/30/2006 11:35:00 AM

    [路在脚下] 11/30/2006 12:14:00 AM

     Posted by Picasa

    --
    Posted By Jun to 路在脚下 at 11/30/2006 12:14:00 AM
    11/29/2006

    [路在脚下] Meep中实现平面波的斜入射

    ; This example creates an approximate TM planewave in vacuum
    ; propagating at a 45-degree angle, by using a couple of current sources
    ; with amplitude exp(ikx) corresponding to the desired planewave.

    (define-param s 11) ; the size of the computational cell, not including PML
    (define-param dpml 1) ; thickness of PML layers

    (define sxy (+ s (* 2 dpml))) ; cell size, including PML
    (set! geometry-lattice (make lattice (size sxy sxy no-size)))

    (set! pml-layers (list (make pml (thickness dpml))))
    (set-param! resolution 10)

    ; pw-amp is a function that returns the amplitude exp(ik(x+x0)) at a
    ; given point x. (We need the x0 because current amplitude functions
    ; in Meep are defined relative to the center of the current source,
    ; whereas we want a fixed origin.) Actually, it is a function of k
    ; and x0 that returns a function of x ...
    (define ((pw-amp k x0) x)
    (exp (* 0+1i (vector3-dot k (vector3+ x x0)))))

    (define-param fcen 0.8) ; pulse center frequency
    (define-param df 0.02) ; turn-on bandwidth
    (define-param kdir (vector3 1 1)) ; direction of k (length is irrelevant)
    (define k (vector3-scale (* 2 pi fcen)
    (unit-vector3 kdir))) ; k with correct length
    (define kxcos (vector3-x (unit-vector3 k))) ; direction cosine of k in x
    (define kycos (vector3-y (unit-vector3 k))) ; direction cosine of k in y

    (set! sources
    (list

    ; left
    (make source
    (src (make continuous-src (frequency fcen) (fwidth df)))
    (component Ez) (center (* -0.5 s) 0) (size 0 s)
    (amp-func (pw-amp k (vector3 (* -0.5 s) 0))))

    ; bottom
    (make source
    (src (make continuous-src (frequency fcen) (fwidth df)))
    (component Ez) (center 0 (* -0.5 s)) (size s 0)
    (amp-func (pw-amp k (vector3 0 (* -0.5 s)))))

    ))

    (define-param T 400) ; run time
    (run-until T (at-end output-efield-z))

    过一会儿改成C++版。

    --
    Posted By Jun to 路在脚下 at 11/29/2006 11:20:00 PM

    [路在脚下] LED取代传统光源,需克服的障碍

    摘自<半导体照明>--国家半导体照明工程发及产业联盟编著
    在通用照明领域,LED取代传统光源从目前来看,还需克服哪些障碍:
    (1)发光效率的障碍
    (2)价格障碍
    (3)功率LED制作技术
    a. 提高外延片内量子效率;
    b. 提高大尺寸芯片的外量子效率; (我正在做的工作)
    c. 提高封装的取光效率;。
    (4) 荧光粉的制作和涂敷技术
    a. 高性能荧光分的制造技术;
    b. 荧光粉的涂敷工艺技术。

    --
    Posted By Jun to 路在脚下 at 11/29/2006 10:05:00 AM
    11/28/2006

    [路在脚下] 和msn space同时升级

    Space:
    http://shejun.spaces.live.com/

    Blogger:
    http://shejun.blogspot.com/

    --
    Posted By Jun to 路在脚下 at 11/28/2006 10:38:00 AM

    新窝

    http://shejun.blogspot.com/