Hi!
I'm a new one for meep.
I'm now doing a simulation about a simple reflection from air to water.
But there's an error here:
meep: incorrect dataset size (30752000 vs. 0) in load_dft_hdf5
./trial6-refl-flux.h5:ex_dft
I've searched the same problem on net, it says to make the grid and flux
region
But I don't know how to change. Could anyone help me a little? Thanks a lot!
(reset-meep)
(set! default-material (make dielectric (epsilon 1)))
(set! k-point (vector3 0 0 0))
(set! ensure-periodicity true)
(define-param no-geom? false) ; if true, no geometry
; unit cell
(define sx 16)
(define sy 16)
(define dpml 1)
(set! geometry-lattice (make lattice (size sx sy no-size)))
(set! geometry
(if no-geom?
'()
(list
(make block
(center 0 (/ sy -4))
(size sx (/ sy 2) infinity)
(material (make dielectric (epsilon 12)))
)
)
)
)
; Set the resolution
(set! resolution 10)
; Set the pml layer
(set! pml-layers (list (make pml (thickness dpml) )))
; The source
(define-param fcen 0.15) ; pulse center frequency
(define-param df 0.5) ; frequency width of source
(define-param nfreq 1000)
(set! sources (list
(make source
(src (make gaussian-src (frequency fcen) (fwidth df)))
(component Ez)
(center -1.5 2)
(size 0 1)
)))
; refl flux
(define refl
(add-flux fcen df nfreq
(make flux-region
(center 0 (/ sy 4)) (size sx (/ sy 2)) (direction Z)
)
)
)
;For actual run. it loads the negated normalized spectrum
(if (not no-geom?) (load-minus-flux "refl-flux" refl))
; Run
(run-sources+ 500
(at-beginning output-epsilon)
(to-appended "ez" (at-every 0.6 output-efield-z)))
)
;For normalization run, it saves the negated spectrum
(if no-geom? (save-flux "refl-flux" refl))
(display-fluxes refl)
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss