Code covered by the BSD License
-
CUDAparaxbpm(CUDAswitch, PLOT...
CUDABEAMPROP A CUDA-MATLAB implementation of a simple 2D FFT based
-
FunEfieldinit(MeshX, MeshY, N...
FUNEFIELDINT This function returns an initial profile for the complex
-
FunPlotSim(zidx, PosZ, MeshX,...
FUNPLOTSIM A function to plot and save the simulation results at
-
FunRefractIdx(gx, gy, Nx, Ny,...
FUNREFRACTIDX This function provides the refractive index as a function of
-
ScrTimeBPM.m
-
View all files
from
A CUDA accelerated Beam Propagation Method [BPM] Solver using the Parallel Computing Toolbox
by Patrick Kano
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