ptfsf
所属分类:其他
开发工具:C/C++
文件大小:25KB
下载次数:4
上传日期:2005-08-19 10:04:36
上 传 者:
vivaldi
说明: The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field Ez, Hx, and Hy). The program is currently written so that the incident field always strikes the lower-left corner of the total-field region first. (If you want a different corner, that should be a fairly simple tweak to the code, but for now you ll have to make that tweak yourself.) I have attempted to provide copious comments in the code and hope that a knowledgeable C programmer can quickly map the approach as described in the paper to what is in the program.
文件列表:
ptfsf (0, 2005-08-19)
ptfsf\fdtdgen.h (2928, 2004-01-17)
ptfsf\Makefile (718, 2004-01-17)
ptfsf\ptfsf-demo-file.c (8126, 2004-01-17)
ptfsf\ptfsf-demo.c (11238, 2004-01-17)
ptfsf\ptfsf-file-maker.c (7756, 2004-01-17)
ptfsf\ptfsf.c (46025, 2004-01-17)
ptfsf\ptfsf.h (5970, 2004-01-17)
ptfsf\runit-demo (87, 2004-01-17)
ptfsf\runit-file-gen (88, 2004-01-17)
ptfsf\runit-file-use (82, 2004-01-17)
This distribution contains code which implements the "perfect"
total-field/scattered-field boundary condition as described in a
paper submitted to the IEEE Transactions on Antennas and
Propagation. You should read that paper before using this code
(even though that paper provides no explanation of how to use this
code).
The code assumes a two-dimensional computational domain with TMz
polarization (i.e., non-zero field Ez, Hx, and Hy). The program is
currently written so that the incident field always strikes the
lower-left corner of the total-field region first. (If you want a
different corner, that should be a fairly simple tweak to the code,
but for now you'll have to make that tweak yourself.) I have
attempted to provide copious comments in the code and hope that a
knowledgeable C programmer can quickly map the approach as described
in the paper to what is in the program.
The following files are provided:
ptfsf.c -- heart of the perfect TFSF code
ptfsf.h -- header file for same
ptfsf-demo.c -- FDTD code which demonstrates use of perfect TFSF code.
essentially this program used to generate
results shown in the paper (output written for
four observations points)
ptfsf-file-maker.c -- code to generate an incident-field file
using the "perfect" incident fields
ptfsf-demo-file.c -- FDTD code which uses the perfect incident
fields stored in a file
fdtdgen.h -- defines macros used in much of my code
Makefile -- simple makefile to compile programs. this make file
should work on "reasonable" UNIX-based systems
with the GNU compiler installed (known to work
on a Mac running OS X 10.3). You may add the
-DTIMING directive if you want timing output.
README -- this file
runit-demo -- script to run the demo with reasonable input
runit-file-gen -- script to run file maker with reasonable input
runit-file-use -- script to use previously generated incident-field file
There is no reason you would have to use these scripts. The programs
are designed to be run interactively, but the scripts are there if
want them. Edit them for you particular needs.
You must have the FFTw routines installed to use the code as
written. See www.fftw.org for details. Alternatively, you could
modify the code and use your own FFT's, but I would discourage that.
If you have questions, comments, suggestions, or especially
improvements or bug fixes, please let me know! However, please keep
in mind that this code is provided "as is" and I may not be able to
incorporate edits, make modifications, or fully address any questions
you have.
Enjoy,
John Schneider
January, 2004
schneidj@eecs.wsu.edu
近期下载者:
相关文件:
收藏者: