Code covered by the BSD License  

Highlights from
A CUDA accelerated Beam Propagation Method [BPM] Solver using the Parallel Computing Toolbox

image thumbnail

A CUDA accelerated Beam Propagation Method [BPM] Solver using the Parallel Computing Toolbox

by

 

21 Oct 2010 (Updated )

A beam propagation method solver using the CUDA capabilities in the parallel computing toolbox.

FunEfieldinit(MeshX, MeshY, Nx, Ny, LengthX, LengthY)
function Efield = FunEfieldinit(MeshX, MeshY, Nx, Ny, LengthX, LengthY)
%FUNEFIELDINT This function returns an initial profile for the complex 
% scalar E-field. 
% Author: Patrick Kano, Paul Lundquist
% Applied Energetics, Inc.
% Modification Dates [M/D/Y]: 10/03/10 - Initial function definition

%Uniform
%Efield = ones(2*Nx,2*Ny)/(LengthX*LengthY);

%Gaussian
Efield = exp(-(MeshX.^2+MeshY.^2)/(0.002^2));

end %function definition

Contact us