CUDA-OpenGL Interoperability to Visualize Electromagnetic Fields Calculated by FDTD
Keywords:
CUDA-OpenGL Interoperability to Visualize Electromagnetic Fields Calculated by FDTDAbstract
In this contribution, a compute unified device architecture (CUDA) implementation of a two-dimensional finite-difference time-domain (FDTD) program is presented along with the OpenGL interoperability to visualize electromagnetic fields as an animation while an FDTD simulation is running. CUDA, which runs on a graphics processing unit (GPU) card, is used for electromagnetic field data generation and image manipulation, while OpenGL is used to draw field distribution on the screen. Since CUDA and OpenGL both run on GPU and share data through common memory in the framebuffer, the CUDA-OpenGL interoperability is very efficient in visualization of electromagnetic fields. Step by step details of implementation of this interoperability are demonstrated.
Downloads
References
I. Buck, Brook Spec v0.2, Stanford Univ. Press,
NVIDIA CUDA ZONE:
www.nvidia.com/object/cuda_home.html.
K. S. Yee, “Numerical Solution of Inital Boundary
Value Problems Involving Maxwell's Equations in
Isotropic Media,” IEEE Transactions on Antennas
and Propagation, vol. 14, pp. 302–307, May
A. Taflove and S. C. Hagness,Computational
Electrodynamics: The Finite-Difference Time-
Domain Method, 3rd edition, Artech House, 2005.
A. Elsherbeni and V. Demir, The Finite Difference
Time Domain Method for Electromagnetics: with
MATLAB Simulations, SciTech Publishing, 2009.
P. Sypek, A. Dziekonski, and M. Mrozowski,
“How to Render FDTD Computations More
Effective Using a Graphics Accelerator,”IEEE
Transactions on Magnetics, vol. 45, no. 3, pp.
-1327, 2009.
V. Demir and A. Z. Elsherbeni, “Compute Unified
Device Architecture (CUDA) Based Finite-
Difference Time-Domain (FDTD)
implementation,” Journal of the Applied
Computational Electromagnetics Society (ACES),
vol. 25, no. 4, pp. 303-314, April 2010.
C. Y. Ong, M. Weldon, S. Quiring, L. Maxwell,
M. C. Hughes, C. Whelan, and M. Okoniewski,
“Speed it Up,” IEEE Microwave Magazine, vol.
, no. 2, pp. 70-78, April 2010.
M. Ujaldon, “Using GPUs for Accelerating
Electromagnetic Simulations,” Journal of the
Applied Computational Electromagnetics Society
(ACES), vol. 25, no. 4, pp. 294-302, April 2010.
N. Takada, T. Shimobaba, N. Masuda,and T. Ito,
“Improved Performance of FDTD Computation
Using a Thread Block Constructed as a Two-
Dimensional Array with CUDA,”Journal of the
Applied Computational Electromagnetics Society
(ACES), vol. 25, no. 12, pp. 1061-1069, December
M. R. Zunoubi and J. Payne, “Analysis of 3-
Dimensional Electromagnetic Fields in Dispersive
Media using CUDA,” Progress In
Electromagnetics Research M, vol. 16, pp. 185-
, 2011.
M. J. Kilgard, “The OpenGL Utility Toolkit
(GLUT) Programming Interface, API Version 3”.
Silicon Graphics, Inc. November 13, 1996.
J. Stam, “What Every CUDA Programmer Should
Know About OpenGL,” in GPU Technology
Conference, San Jose, CA, October 1, 2009.
Acceleware: www.acceleware.com