I have a error for 1d bragg grating using epsilon function

when  I had setting : (set-param! dimensions 1)

 

 (define (f p) (+ 2 (sin (vector3-x p))))

;(set-param! dimensions 1) ; in this caseis -> it occured error( eps profile not a
;(set! geometry-lattice (make lattice (size 10  0  no-size)))
(set! geometry-lattice (make lattice (size 10 no-size  no-size)))


(set! geometry (list
        (make block (center 0 infinity infinity ) (size 10 infinity infinity )
        ;(make block (center 0 0 0 ) (size 1 0 0 ) ; this is iput -> occure error in eps

        (material (make material-function (epsilon-func f))))
))

(set! sources (list
      (make source
          (src (make continuous-src (frequency 0.15)))
               (component Ey)  (center -5 infinity infinity))))

(set! pml-layers (list (make pml (thickness 1.0))))
(set! resolution 10)

(run-until 200
           (at-beginning output-epsilon)
                      (at-end output-efield-y))

;[EMAIL PROTECTED]:~/meep-work$ meep funeps.ctl
;-----------
;Initializing structure...
;Working in 2D dimensions.
;       block, center = (0,0,0)
;               size (1,1e+20,1e+20)
;               axes (1,0,0), (0,1,0), (0,0,1)
;time for set_epsilon = 0.128772 s
;-----------
;creating output file "./funeps-eps-000000.00.h5"...
;creating output file "./funeps-ez-000200.00.h5"...
;run 0 finished at t = 200.0 (4000 timesteps)

 

it wa ok but 2D!!!

so I had rewrited

 

(define (f p) (+ 2 (sin (vector3-x p))))

(set-param! dimensions 1) ; in this caseis -> it occured error( eps profile not a
;(set! geometry-lattice (make lattice (size 10  0  no-size)))
(set! geometry-lattice (make lattice (size 10 no-size  no-size)))
...

...



[EMAIL PROTECTED]:~/meep-work$ meep funeps.ctl
-----------
Initializing structure...
Working in 1D dimensions.
     block, center = (0,1e+20,1e+20)
          size (10,1e+20,1e+20)
          axes (1,0,0), (0,1,0), (0,0,1)
meep: Cannot split 0 grid points into 1 parts

it was 1D but error occured

what's wrong ???

 

 

 

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to