24小时热门版块排行榜    

查看: 2409  |  回复: 5

wlwanglin

新虫 (初入文坛)

[求助] meep编程求解 大神帮助 每一行代表的意思 (新手没有太多金币)

(define-param eps (* 3.45 3.45))                     
(define-param a 1)
(define-param r1 (/ 120 420))                                                            
(define-param Ny 31)                    
(define-param Nx 21)


(define-param pad 2) ; padding between last hole and PML edge                  
(define-param dpml 1) ; PML thickness  

; The cell dimensions                                                           
(define-param sx (+ Nx (* 2 (+ pad dpml)))) ; size of cell in X direction                              
(define-param sy (+ Ny (* 2 (+ pad dpml)))); size of cell in Y direction                        

; define a couple of parameters to determine the frequency range
(define-param fcen 0.5) ; pulse center frequency
(define-param df 0.4)  ; pulse width (in frequency)
(define-param nfreq 401) ; number of frequencies at which to compute flux
(define-param Sw 10)

(set! geometry-lattice (make lattice (size sx sy no-size)))
(set! geometry
      (append ; combine lists of objects:                                       
      (list (make block (center 0 0) (size Nx Ny infinity)
                   (material (make dielectric (epsilon eps)))))
       (geometric-objects-duplicates (vector3 0 1) -15 15
       (geometric-object-duplicates (vector3 1 0) -10 10
           (make cylinder
              (material air)
              (center 0 0)           
              (radius r1)
             (height infinity)
       )))
))

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

; Set sources
(set! sources (list
               (make source
                 (src (make gaussian-src (frequency fcen) (fwidth df)))
                 (component Ey)
                 (center (+ dpml (* -0.5 sx)) 0)
                 (size 0 Sw))))

(define trans                                          
        (add-flux fcen df nfreq
                  (make flux-region
                    (center (- (* 0.5 sx) dpml 0.5) 0) (size 0 Ny))))
                              
(run-sources+ (stop-when-fields-decayed
               50 Ey
               (vector3 (- (* 0.5 sx) dpml 0.5) 0)
               1e-3)
              (at-beginning output-epsilon))


(display-fluxes trans)
回复此楼

» 收录本帖的淘帖专辑推荐

MEEP小木虫

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

此刻唯有拼搏才能成功
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ytdxclf

金虫 (初入文坛)

qing wen meep zen me anzhuang de a ytdxclf@163.com
2楼2012-08-01 09:15:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

goodluckstf

木虫 (职业作家)

请问meep怎么在虚拟机的linux系统上安装啊ytdxclf@163.com
不胜感激
Justdoit, anythingispossible.
3楼2012-08-01 09:18:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

彭登

新虫 (初入文坛)

【答案】应助回帖

mit直接下下来的用不了,win7。可以去网上下一个win7版的。网上有
4楼2013-08-02 15:27:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

彭登

新虫 (初入文坛)

【答案】应助回帖

内容已删除
5楼2013-08-02 15:38:09
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

trrista

银虫 (小有名气)

这个程序写得真不错,解决了困扰了我很久的一个问题
6楼2014-12-24 14:00:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 wlwanglin 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 328求调剂,英语六级551,有科研经历 +6 生物工程调剂 2026-03-17 10/500 2026-03-22 20:22 by edmund7
[考研] 306求调剂 +6 chuanzhu川烛 2026-03-18 6/300 2026-03-22 19:39 by 公瑾逍遥
[考研] 一志愿中南化学(0703)总分337求调剂 +9 niko- 2026-03-19 10/500 2026-03-22 16:08 by ColorlessPI
[考研] 324求调剂 +6 lucky呀呀呀鸭 2026-03-20 6/300 2026-03-22 16:01 by ColorlessPI
[考研] 生物学一志愿985,分数349求调剂 +4 zxts12 2026-03-21 7/350 2026-03-22 09:57 by zxts12
[考研] 0856材料专硕353求调剂 +4 NIFFFfff 2026-03-20 4/200 2026-03-22 09:49 by 2026paper
[考研] 085600材料与化工306 +4 z1z2z3879 2026-03-21 4/200 2026-03-21 23:44 by ms629
[考研] 化学调剂 +5 yzysaa 2026-03-21 5/250 2026-03-21 22:12 by peike
[考研] 求调剂 +4 要好好无聊 2026-03-21 4/200 2026-03-21 18:57 by 学员8dgXkO
[考研] 工科0856求调剂 +3 沐析汀汀 2026-03-21 3/150 2026-03-21 18:30 by 学员8dgXkO
[考研] 22 350 本科985求调剂,求老登收留 +3 李轶男003 2026-03-20 3/150 2026-03-21 13:28 by 搏击518
[考研] 330求调剂0854 +3 assdll 2026-03-21 3/150 2026-03-21 13:01 by 搏击518
[考研] 265求调剂 +9 梁梁校校 2026-03-17 9/450 2026-03-21 02:17 by JourneyLucky
[考研] 求调剂 +3 Ma_xt 2026-03-17 3/150 2026-03-21 02:05 by JourneyLucky
[考研] 一志愿西安交通大学 学硕 354求调剂211或者双一流 +3 我想要读研究生 2026-03-20 3/150 2026-03-20 20:13 by JourneyLucky
[考研] 08工学调剂 +5 用户573181 2026-03-20 5/250 2026-03-20 15:47 by xia_2003
[考研] 材料,纺织,生物(0856、0710),化学招生啦 +3 Eember. 2026-03-17 9/450 2026-03-18 10:28 by Eember.
[考研] 277调剂 +5 自由煎饼果子 2026-03-16 6/300 2026-03-17 19:26 by 李leezz
[考研] 275求调剂 +4 太阳花天天开心 2026-03-16 4/200 2026-03-17 10:53 by 功夫疯狂
[考研] 070300化学学硕求调剂 +6 太想进步了0608 2026-03-16 6/300 2026-03-16 16:13 by kykm678
信息提示
请填处理意见