Kenny

Thanks. The real word frequency is 10 Hz and a is 1mm.

I will try the version you sent. 

Noel

Sent from my android device.

-----Original Message-----
From: Kenny Larsen <[email protected]>
To: Noel Montgomery <[email protected]>
Cc: [email protected]
Sent: Fri, 03 Sep 2010 02:52 AM
Subject: Re: [Meep-discuss] Very novice user: error message help

Hi Noel,

I'm also relatively new to MEEP, and some of the error codes can be quite 
cryptic till you've seen them before. To me, the clue in your is list-ref, 
so I went carefully through your lists commenting different things out to 
see if I could isolate the error. Although this can be lengthy if you 
really can't spot something it is a useful way of debugging. In your case 
there are two syntax errors:

1. the make is not required when using a predifined material (i.e 
perfect-electric-conductor)

2. Be careful with the syntax of the source

Below is a corrected version that at least starts, your frequency however 
does seem very small, but this may be what you intend.

Kenny

(set! geometry-lattice (make lattice (size 24 24 24)))
; Outside of Centrifuge Tube radius 8.1mm
; material of centrifuge tube PET
; column of cellular fluid
; material of cellular fluid =saline
; column of collagen matrix
; material of matrix = collagen
; plane of ITO at base of centrifuge tube

(set! geometry (list
         (make cylinder (center 0 0 10) (radius 8.1) (height 20)
             (material (make dielectric (epsilon 2.2))))
         (make cylinder (center 0 0 8) (radius 7.3) (height 16)
             (material (make dielectric (epsilon 10))))

         (make cylinder (center 0 0 1.5) (radius 7.3) (height 3)
             (material (make dielectric (epsilon 75))))

         (make block (size infinity infinity 1)(center 0 0 -0.5)
             (material perfect-electric-conductor))

         (make cylinder (center 0 0 3.6) (radius 6.3) (height 1.2)
             (material perfect-electric-conductor))

         (make cylinder (center 0 0 6.1) (radius 2.3) (height 5)
             (material perfect-electric-conductor))))

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

(set! resolution 10)

(set! sources (list
         (make source
             (src (make continuous-src (frequency 33e-12)))
             (component Ez)
             (center 0 0 6.1))))

(run-until 200
     (at-beginning output-epsilon)
     (to-appended "ez" (at-every 0.6 output-efield-z)))

On Thu, 2 Sep 2010, Noel Montgomery wrote:

> I am brand new to MEEP.  I have used XFDTD at my old job, but now I am a
> grad student and would really like to be able to master MEEP for some
> projects.
> 
> I have successfully run the first two tutorial examples.
> 
> When I run a MEEP script that I have written I get the following:
> 
> Using MPI version 1.2, 1 processes
> ERROR: In procedure list-ref:
> ERROR: Argument 2 out of range: 1
> 
> What I really want to know is if there is a way to decode this error message
> to help identify exactly where the error is.
> 
> I will attach my code below.  I know it is not optimal (I haven't started
> using all of MEEPs capabilities yet).  But I think it should run.
> 
> Thanks in advance
> 
> Noel
> 
> (set! geometry-lattice (make lattice (size 24 24 24)))
> ; Outside of Centrifuge Tube radius 8.1mm
> ; material of centrifuge tube PET
> ; column of cellular fluid
> ; material of cellular fluid =saline
> ; column of collagen matrix
> ; material of matrix = collagen
> ; plane of ITO at base of centrifuge tube
> 
> (set! geometry (list
>         (make cylinder (center 0 0 10) (radius 8.1) (height 20)
>             (material (make dielectric (epsilon 2.2))))
>         (make cylinder (center 0 0 8) (radius 7.3) (height 16)
>             (material (make dielectric (epsilon 10))))
>        
>         (make cylinder (center 0 0 1.5) (radius 7.3) (height 3)
>             (material (make dielectric (epsilon 75))))
>        
>         (make block (size infinity infinity 1)(center 0 0 -0.5)
>             (material (make perfect-electric-conductor)))
> 
>         (make cylinder (center 0 0 3.6) (radius 6.3) (height 1.2)
>             (material (make perfect-electric-conductor)))
> 
>         (make cylinder (center 0 0 6.1) (radius 2.3) (height 5)
>             (material (make perfect-electric-conductor)))))
> 
> (set! pml-layers (list (make pml (thickness 1.0))))
> 
> (set! resolution 10)
> 
> (set! sources (list
>         (make source
>             (src (make continuous-src (frequency 33e-12)
>             (component Ez)
>             (center 0 0 6.1))))))
> 
> (run-until 200
>     (at-beginning output-epsilon)
>     (to-appended "ez" (at-every 0.6 output-efield-z)))
> 
> 
> 
>
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to