24小时热门版块排行榜    

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

trrista

银虫 (小有名气)

这个程序写得真不错,解决了困扰了我很久的一个问题
6楼2014-12-24 14:00:47
已阅   回复此楼   关注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的回帖

彭登

新虫 (初入文坛)

【答案】应助回帖

mit直接下下来的用不了,win7。可以去网上下一个win7版的。网上有
4楼2013-08-02 15:27:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 317求调剂 +12 申子申申 2026-03-19 18/900 2026-03-22 22:23 by luoyongfeng
[考研] 298求调剂 +6 上岸6666@ 2026-03-20 6/300 2026-03-22 20:21 by edmund7
[考研] 260求调剂 +3 朱芷琳 2026-03-20 4/200 2026-03-22 15:12 by 朱芷琳
[考研] 311求调剂 +3 26研0 2026-03-20 3/150 2026-03-22 14:46 by ColorlessPI
[考研] 384求调剂 +3 子系博 2026-03-22 4/200 2026-03-22 11:04 by 搏击518
[考研] 一志愿华中科技大学071000,求调剂 +4 沿岸有贝壳6 2026-03-21 4/200 2026-03-22 07:21 by ilovexiaobin
[考研] 初试 317 +7 半拉月丙 2026-03-20 7/350 2026-03-21 22:26 by peike
[考研] 0703化学调剂 +4 妮妮ninicgb 2026-03-21 4/200 2026-03-21 18:39 by 学员8dgXkO
[考研] 265求调剂 +12 梁梁校校 2026-03-19 14/700 2026-03-21 13:38 by lature00
[考研] 346求调剂[0856] +4 WayneLim327 2026-03-16 7/350 2026-03-21 04:02 by JourneyLucky
[考研] 265求调剂 +3 Jack?k?y 2026-03-17 3/150 2026-03-21 03:17 by JourneyLucky
[考研] 083200学硕321分一志愿暨南大学求调剂 +3 innocenceF 2026-03-17 3/150 2026-03-21 02:35 by JourneyLucky
[考研] 332求调剂 +4 ydfyh 2026-03-17 4/200 2026-03-21 02:20 by JourneyLucky
[考研] 材料专硕英一数二306 +7 z1z2z3879 2026-03-18 7/350 2026-03-20 23:48 by JourneyLucky
[考研] 0817 化学工程 299分求调剂 有科研经历 有二区文章 +22 rare12345 2026-03-18 22/1100 2026-03-20 20:39 by zhukairuo
[考研] 286求调剂 +6 lemonzzn 2026-03-16 10/500 2026-03-19 14:31 by lemonzzn
[考研] 【同济软件】软件(085405)考研求调剂 +3 2026eternal 2026-03-18 3/150 2026-03-18 19:09 by 搏击518
[考研] 考研求调剂 +3 橘颂. 2026-03-17 4/200 2026-03-17 21:43 by 有只狸奴
[考研] 考研调剂 +3 淇ya_~ 2026-03-17 5/250 2026-03-17 09:25 by Winj1e
[考研] 333求调剂 +3 文思客 2026-03-16 7/350 2026-03-16 18:21 by 文思客
信息提示
请填处理意见