Hi Zheng:
I should make my question clearer.
If I'd like to calculate the equation:
sum Ex(r,t)*cos(w*t) over one period,
can it be done in meep or I have to do postprocess, say to save field in each
time step?
Thanks
Cheers
Adrian
--- 09/3/6 (五),Zheng Li <lizhen...@mails.tsinghua.edu.cn> 寫道:
寄件者: Zheng Li <lizhen...@mails.tsinghua.edu.cn>
主旨: Re: [Meep-discuss] Complex field in meep
收件者: "adrian" <hiaquar...@yahoo.com.tw>
日期: 2009 3 6 五 下午 4:17
Hi, adrian,
You need to get fields' complex parts by yourself.
1, accumulate fields at every point of the surface you like for a
period of time
2, retrieve what you want via applying FFT to the data in the
time-domain.
3, apply spatial FFT to those complex number arrays.
Yours
Zheng
2009-3-6
adrian 写道:
Hi Zheng:
Thanks for your reply.
However, if I'd like to use FFT then I need real part and imaginary
part of the field and that's why I have to compute the complex field.
What I try to figure out is if the definition of complex field is
the same as what I said:
E0*exp(j(wt-kr))
and real field I obtain is the real part of that formula and
imaginary field is the imaginary part of the formula.
If it is true, I may put the real field and imaginary field at one
time step from meep into FFt formula to get Far field patterns.
Thanks a lot
Cheers
Adrian
--- 09/3/5 (四),Zheng Li <lizhen...@mails.tsinghua.edu.cn>
寫道:
寄件者: Zheng Li <lizhen...@mails.tsinghua.edu.cn>
主旨: Re: [Meep-discuss] Complex field in meep
收件者: "adrian" <hiaquar...@yahoo.com.tw>
日期: 2009 3 5 四 下午 3:40
Hi, adrian,
If you only simulate the dielectric structures, you needn't utilize
complex fields because it may consume two-fold memory and CPU. Yet,
if metals or other materials are involved, complex fields is the only
choice to you.
To complete the far-to-near field calculation, you might manipulate the
obtained fields with FFT method in both of the time and spacial
domains.
Yours,
Zheng
2009-3-5
adrian 写道:
Hi Meep users and Steven:
I know this question has been discussed but I can't find the answer
to previous poster.
My question is:
1. what is the definition of complex field in FDTD. Is it just
E0*exp(j(wt - kr)) and the real field and imaginary field correspond to
real part and imaginary part, respectively?
If so, if we set force-complex-fields? false, then the real field
we normally got is E0 times cos(wt - kr)?
I try to reach "Complex field in meep" but it requires password.
so I can't find the definition of complex fields in meep.
The purpose for getting complex field is to get the far field
patterns from the near field patterns calculated by meep
Thanks in advanced
Adrian
付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! - 馬
上體驗!
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! - 馬
上體驗!
______________________________________________________________________________________________________
付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! http://tw.mg0.mail.yahoo.com/dc/landing
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss