24小时热门版块排行榜    

查看: 2415  |  回复: 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的回帖

彭登

新虫 (初入文坛)

【答案】应助回帖

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

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的回帖

trrista

银虫 (小有名气)

这个程序写得真不错,解决了困扰了我很久的一个问题
6楼2014-12-24 14:00:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 0854电子信息求调剂 +3 α____ 2026-03-22 3/150 2026-03-22 21:28 by zhq0425
[考研] 298求调剂 +6 上岸6666@ 2026-03-20 6/300 2026-03-22 20:21 by edmund7
[考研] 306求调剂 +6 chuanzhu川烛 2026-03-18 6/300 2026-03-22 19:39 by 公瑾逍遥
[考研] 08工科 320总分 求调剂 +11 梨花珞晚风 2026-03-17 11/550 2026-03-22 17:42 by luoyongfeng
[考研] 生物学调剂 +5 Surekei 2026-03-21 5/250 2026-03-22 14:39 by tcx007
[考研] 一志愿北京化工大学070300 学硕336求调剂 +5 vv迷 2026-03-21 8/400 2026-03-22 14:20 by ColorlessPI
[考研] 303求调剂 +5 安忆灵 2026-03-22 6/300 2026-03-22 12:46 by 素颜倾城1988
[基金申请] 山东省面上项目限额评审 +4 石瑞0426 2026-03-19 4/200 2026-03-22 08:50 by Wei_ren
[考研] 286求调剂 +10 Faune 2026-03-21 10/500 2026-03-21 23:34 by 314126402
[考研] 286分人工智能专业请求调剂愿意跨考! +4 lemonzzn 2026-03-17 8/400 2026-03-21 22:49 by lemonzzn
[考研] 一志愿重庆大学085700资源与环境总分308求调剂 +7 墨墨漠 2026-03-20 7/350 2026-03-21 16:36 by barlinike
[考研] 机械专硕299求调剂至材料 +3 kkcoco25 2026-03-16 4/200 2026-03-21 03:52 by JourneyLucky
[考研] 301求调剂 +10 yy要上岸呀 2026-03-17 10/500 2026-03-21 03:14 by JourneyLucky
[考研] 二本跨考郑大材料306英一数二 +3 z1z2z3879 2026-03-17 3/150 2026-03-21 02:29 by JourneyLucky
[考研] 085700资源与环境308求调剂 +12 墨墨漠 2026-03-18 13/650 2026-03-21 01:42 by JourneyLucky
[考研] 308求调剂 +3 阿姐阿姐家啊 2026-03-18 3/150 2026-03-20 23:24 by JourneyLucky
[考研] 材料学硕297已过四六级求调剂推荐 +11 adaie 2026-03-19 11/550 2026-03-20 21:30 by laoshidan
[考研] 工科材料085601 279求调剂 +7 困于星晨 2026-03-17 9/450 2026-03-20 17:38 by 无懈可击111
[考研] 一志愿中国海洋大学,生物学,301分,求调剂 +5 1孙悟空 2026-03-17 6/300 2026-03-19 23:46 by zcl123
[考研] 0854可跨调剂,一作一项核心论文五项专利,省、国级证书40+数一英一287 +8 小李0854 2026-03-16 8/400 2026-03-18 14:35 by 搏击518
信息提示
请填处理意见