24小时热门版块排行榜    

查看: 2649  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 2026国自然函评费到账 +7 羊腰板 2026-08-21 7/350 2026-08-21 21:28 by iwuli
[基金申请] 今日不放榜?网传国自然预计 8 月 27 日可查结果 +16 医学老男孩 2026-08-20 20/1000 2026-08-21 21:13 by Ldrop2023
[基金申请] 建议基金发布提前给出明确的时间点 +10 kulium 2026-08-21 12/600 2026-08-21 19:46 by kulium
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 时间戳又变了 +13 wuchongjun 2026-08-20 19/950 2026-08-21 17:21 by 紫杉醇
[基金申请] 人气不行了 +7 fansofjerry 2026-08-21 7/350 2026-08-21 14:13 by Vivilian
[基金申请] 感觉是下周放榜了 +7 angus9576 2026-08-17 12/600 2026-08-21 13:38 by weiyin
[基金申请] 我面上完蛋了 +7 且听虎啸 2026-08-20 8/400 2026-08-21 12:31 by 酷酷墨镜
[基金申请] 今天基金会出结果吗?20260819 +15 kkkl_v 2026-08-19 16/800 2026-08-21 11:22 by 365372687
[基金申请] 应该是下周三26日公布了吧? +4 哈哈蛤? 2026-08-21 4/200 2026-08-21 10:58 by Vivilian
[论文投稿] 投稿咨询 +5 wwm09 2026-08-17 7/350 2026-08-21 10:11 by 期刊论文帮手
[基金申请] 今天放榜没戏了吧 +9 yuleib84 2026-08-19 11/550 2026-08-21 10:06 by gltch
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
[基金申请] 估计是周四 +3 archvillain 2026-08-18 3/150 2026-08-21 01:48 by jnhyjjm
[基金申请] 重要消息,中午系统在维护 +11 yuleib84 2026-08-18 12/600 2026-08-20 11:09 by xskun
[教师之家] 为什么余额宝的年化利率越来越低?主要原因有哪些? +5 瞬息宇宙 2026-08-15 5/250 2026-08-19 20:23 by super2002521
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] 朋友圈看到的 +6 wangzilk 2026-08-18 8/400 2026-08-19 10:55 by Haru815
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[基金申请] 93BebMhtakh前后11位开头都是大写 +4 且听虎啸 2026-08-17 5/250 2026-08-18 00:49 by 蔡棒棒菂
信息提示
请填处理意见