| 4 | 1/1 | 返回列表 |
| 查看: 1204 | 回復(fù): 3 | ||
[求助]
meep 自己寫的程序(寫在正文,最后一句出現(xiàn)了錯誤),想盡辦法怎么改都不對,求助。
|
備注:新手自己寫的程序,應(yīng)該是在設(shè)置flux-region處出了問題。求高手相助。![]() (define-param xcen 0) (define-param ycen 0) (define-param yihou 2) (define-param erhou 2) (define-param zhouqi 3) (define zhongxinju (/ (+ yihou erhou) 2)) (define-param xjisuanquyu 20) (define-param yjisuanquyu 8) (define-param yijiedian 2) (define-param erjiedian 3) (set! geometry-lattice (make lattice (size xjisuanquyu yjisuanquyu no-size))) (set! geometry (append (list (geometric-object-duplicates (vector3 erhou 0) 0 (- zhouqi 1) (make block (center xcen ycen)(size yihou infinity infinity) (material (make dielectric (epsilon yijiedian))))) (geometric-object-duplicates (vector3 yihou 0) 0 (- zhouqi 1) (make block (center (+ xcen zhongxinju) ycen)(size erhou infinity infinity) (material (make dielectric (epsilon erjiedian)))))))) (define-param dpml 1) (set! pml-layers (list (make pml (thickness dpml)))) (set! resolution 20) (define-param fcen 1.3) (define-param df 2.5) (define-param nfreq 500) (define yuanchang yjisuanquyu) (set! sources (list (make source (src (make gaussian-src (frequency fcen) (fwidth df))) (component Ey) (center (- xcen yihou) 0) (size 0 yuanchang)))) (set! symmetries (list (make mirror-sym (direction Y) (phase -1)))) (define trans (add-flux fcen df nfreq (make flux-region (center (+ (* zhouqi zhongxinju) xcen) 0) (size 0 yuanchang)(direction Y)))) 錯誤提示如下: ERROR: In procedure make-structure: ERROR: In procedure vector-ref: Wrong type argument in position 1 (expecting vector): #f |
|
都沒人回答,本人剛剛找到問題所在了!不在設(shè)置flux-region的地方,而在建立模型處,建立模型時用的list應(yīng)該在第一個小模型處結(jié)束。 發(fā)自小木蟲Android客戶端 |
|
您好,不好意思,我是學(xué)習(xí)meep做光子晶體計算的小白新手。請問您有新手指導(dǎo)學(xué)習(xí)方案嗎? 重謝。謝謝~拜托。 發(fā)自小木蟲IOS客戶端 |
| 4 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 311求調(diào)劑一志愿合肥工業(yè)大學(xué) +4 | 秋二十二 2026-03-30 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 一志愿南昌大學(xué)324求調(diào)劑 +9 | hanamiko 2026-03-27 | 9/450 |
|
|
[考研] 359求調(diào)劑 +5 | 王了個楠 2026-03-25 | 5/250 |
|
|
[考研] 289求調(diào)劑 +16 | 新時代材料 2026-03-27 | 16/800 |
|
|
[考研] 334分 一志愿武理 材料求調(diào)劑 +16 | 李李不服輸 2026-03-26 | 16/800 |
|
|
[考研] 303求調(diào)劑 +7 | DLkz1314. 2026-03-30 | 7/350 |
|
|
[考研] 本科211生物醫(yī)學(xué)工程085409求調(diào)劑339分 +3 | 里子木yy 2026-03-29 | 3/150 |
|
|
[考研] 318求調(diào)劑 +7 | 陳晨79 2026-03-30 | 7/350 |
|
|
[考研] 348求調(diào)劑 +6 | 小懶蟲不懶了 2026-03-28 | 6/300 |
|
|
[考研] 311求調(diào)劑 +10 | lin0039 2026-03-26 | 10/500 |
|
|
[考研] 318一志愿吉林大學(xué)生物與醫(yī)藥 求調(diào)劑 +5 | 篤行致遠(yuǎn). 2026-03-28 | 5/250 |
|
|
[考研] 總分293求調(diào)劑 +8 | 加一一九 2026-03-25 | 11/550 |
|
|
[考研] 070305高分子化學(xué)與物理 304分求調(diào)劑 +12 | c297914 2026-03-28 | 12/600 |
|
|
[考研] 332求92調(diào)劑 +8 | 蕉蕉123 2026-03-28 | 8/400 |
|
|
[碩博家園] 招收生物學(xué)/細(xì)胞生物學(xué)調(diào)劑 +4 | IceGuo 2026-03-26 | 5/250 |
|
|
[考研] 本科新能源科學(xué)與工程,一志愿華理能動285求調(diào)劑 +3 | AZMK 2026-03-27 | 5/250 |
|
|
[考研] 070300求調(diào)劑306分 +4 | 26要上岸 2026-03-27 | 4/200 |
|
|
[考研] 調(diào)劑求收留 +7 | 果然有我 2026-03-26 | 7/350 |
|
|
[考研] 一志愿 南京郵電大學(xué) 288分 材料考研 求調(diào)劑 +3 | jl0720 2026-03-26 | 3/150 |
|
|
[考研] 各位老師您好:本人初試372分 +5 | jj涌77 2026-03-25 | 6/300 |
|