Navigation: Scripting Reference Manual > Functions & Subroutines > AddSampledMaterialWavelength

 

AddSampledMaterialWavelength

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a wavelength-index point to a Sampled Material.

 

Syntax

AddSampledMaterialWavelength id, wavelength, real, imag

 

Parameters

id As Long

Identifier of the sampled material.

 

wavelength As Double

The wavelength of the sample point, in microns.

 

real As Double

The refractive index at the given wavelength.

 

imag As Double

The imaginary part of the refractive index at the given wavelength (may be zero).

 

Remarks

This subroutine adds a wavelength-index point to a Sampled Material. If there is a problem the subroutine sets an error and returns without modifying the Sampled Material.

 

The imaginary component of the refractive index k is directly proportional to the absorption (or gain) coefficient at the associated wavelength via the following formula:  a = ( 4p k / l) where a is the absorption coefficient, l is the wavelength and k is the imaginary part of the refractive index at that wavelength.   Absorption is specified with a positive value, no absorption is specified with a value of zero, and gain may be specified with a negative value.

 

 

See Also

GetSampledMaterial

SetSampledMaterial

GetSampledMaterialIthWavelength

SetSampledMaterialIthWavelength

Examples

Materials

 

 

 

 

 

Copyright © Photon Engineering, LLC