| 5 | 1/1 | 返回列表 |
| 查看: 1206 | 回復: 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客戶端 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 0817化工學碩調(diào)劑 +11 | 努力上岸中! 2026-03-31 | 11/550 |
|
|---|---|---|---|---|
|
[考研] 一志愿085600中科院寧波所276分求調(diào)劑 +22 | 材料學257求調(diào)劑 2026-03-28 | 23/1150 |
|
|
[考研] 085600,材料與化工321分調(diào)劑 +5 | 大饞小子 2026-03-27 | 7/350 |
|
|
[考研] 求調(diào)劑 +5 | 零八# 2026-03-27 | 5/250 |
|
|
[考研] 0710生物學求調(diào)劑! +6 | 敘述文 2026-03-31 | 6/300 |
|
|
[考研] 一志愿北京科技大學085601材料工程英一數(shù)二初試總分335求調(diào)劑 +5 | 雙馬尾痞老板2 2026-03-31 | 5/250 |
|
|
[考研] 一志愿華東師范大學有機化學專業(yè),初試351分,復試被刷求調(diào)劑! +9 | 真名有冰 2026-03-29 | 10/500 |
|
|
[考研] 本2一志愿C9-333分,材料科學與工程,求調(diào)劑 +9 | 升升不降 2026-03-31 | 9/450 |
|
|
[考研] 254材料與化工求調(diào)劑 +3 | 翰冬林楠 2026-03-30 | 4/200 |
|
|
[考研] 343求調(diào)劑 +8 | 愛羈絆 2026-03-28 | 8/400 |
|
|
[考研] 266分,求材料冶金能源化工等調(diào)劑 +8 | 哇呼哼呼哼 2026-03-27 | 10/500 |
|
|
[考研] 食品工程專碩一志愿中海洋309求調(diào)劑 +5 | 小張zxy張 2026-03-26 | 10/500 |
|
|
[考研] 0703化學321分求調(diào)劑 +10 | 三dd. 2026-03-30 | 11/550 |
|
|
[考研] 334分 一志愿武理 材料求調(diào)劑 +16 | 李李不服輸 2026-03-26 | 16/800 |
|
|
[考研] 求調(diào)劑,一志愿 南京航空航天大學大學 ,080500材料科學與工程學碩 +6 | @taotao 2026-03-26 | 7/350 |
|
|
[考研] 348求調(diào)劑 +6 | 小懶蟲不懶了 2026-03-28 | 6/300 |
|
|
[考研] 291求調(diào)劑 +5 | Y-cap 2026-03-29 | 6/300 |
|
|
[碩博家園] 招收生物學/細胞生物學調(diào)劑 +4 | IceGuo 2026-03-26 | 5/250 |
|
|
[考研] 數(shù)一英一271專碩(085401)求調(diào)劑,可跨 +7 | 前行必有光 2026-03-28 | 8/400 |
|
|
[考研] 070300化學求調(diào)劑 +4 | 起個名咋這么難 2026-03-27 | 4/200 |
|