Re: [Meep-discuss] Integral

2007-09-06 Thread Zheng LI
Hi, wlx schrieb 1) you can define another function (define (output-function) (print "Ezsum=" Ezsum "\n")) and put it into your run-until's function-list like (run-until 500 output-function your other functions ). 2) (meep-fields-dt-

[Meep-discuss] Integral

2007-09-06 Thread wlx
I still have questions 1) I want to evaluated "ezsum" at every point. So I can make a picture. However, (print "Ezsum = " Ezsum "\n") only output a number. Can any method help me?? 2) In meep-discuss, I find a function (meep-fields-dt-get fields). I can not understand it. What can I consult to

Re: [Meep-discuss] Integral

2007-09-06 Thread Steven G. Johnson
On Thu, 6 Sep 2007, Steven G. Johnson wrote: >>(lambda (ez ex ey) (/ (sqrt ez) (+ (sqrt ex) (sqrt ey) (sqrt >> ez Also, I think you mean sqr and not sqrt. ___ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio

Re: [Meep-discuss] Integral

2007-09-06 Thread Steven G. Johnson
On Fri, 7 Sep 2007, wlx wrote: > I'm doing a 3D simulation. I want to calculate the integral of > |Ez|^2/(|E|^2) over 200 time steps at the end of the sumulation time. I This doesn't seem well-defined. What if |E| = 0? > need to calculate the whole field. I have looked through the > meep-discu

Re: [Meep-discuss] Integral

2007-09-06 Thread Ulrich Dobramysl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! wlx schrieb: > Hi > I'm doing a 3D simulation. I want to calculate the integral of |Ez|^2/(|E|^2) > over 200 time steps at the end of the sumulation time. I need to calculate > the whole field. I have looked through the meep-discuss but have no

[Meep-discuss] Integral

2007-09-06 Thread wlx
Hi I'm doing a 3D simulation. I want to calculate the integral of |Ez|^2/(|E|^2) over 200 time steps at the end of the sumulation time. I need to calculate the whole field. I have looked through the meep-discuss but have no idea. I write the function like: (define Ezsum 0) (define (do-Ez-sum)

[Meep-discuss] Help, how can I get a titled waveguide using the meep

2007-09-06 Thread 范国芳
I am a new user of the meep.I want to do a wo-dimensional calculation about the tilted waveguide(similar to the Y-branch Waveguide ) using meep, I try to use the block,but I can not get the |geometric-object.Please help me to give the codes about the tilted waveguide.It is very urgent.Thank you ___

Re: [Meep-discuss] Question about random procedure call in Meep

2007-09-06 Thread Roy Yang
Hi all, It has worked now, thanks to the discussion with Zheng. I need to call functions recognized by Guile, such as seed->random-state to set! *random-state* in meep. Best, Roy On 9/5/07, Zheng LI <[EMAIL PROTECTED]> wrote: > > hi, Roy > > i'm not familiar with your random procedure. however,

[Meep-discuss] About the reflection spectra of Gold (Au)

2007-09-06 Thread iu herbert
Hello, All I'm trying to use meep to calculate the reflection spectra of a gold slab and try to compare with the experimental data. The reflection spectra calculated by MEEP has about 0.05 higher than the result calculated by matching the boundary condition with other software with the same g