Code covered by the BSD License  

Highlights from
Huygens-Fresnel integral approximation, free-form apertures and rough surfaces

image thumbnail

Huygens-Fresnel integral approximation, free-form apertures and rough surfaces

by

 

Simulate wave propagation through free-form apertures, or off rough surfaces.

light2Plane(lightsource, surface, options)
function surface = light2Plane(lightsource, surface, options)
% light2plane - compute the effect of incident light on a surface

% prepare for the future with lots of subtypes
switch lower(lightsource.subtype)
	case 'planewave'
		surface = planeWave2Plane(lightsource, surface, options)
	case 'gaussian'
		surface = gauss2Plane(lightsource, surface, options);
	otherwise
		displayMessage(0, [lightsource.name ': ERROR unknown subtype']);
		error([lightsource.name ': ERROR unknown subtype']);
end

% save the wavelength of incident light
surface.wavelength = lightsource.wavelength;

Contact us