|
Programming Reference for VirtualLab Fusion
2022.1
|
This class provides methods for evaluating fields. More...
Static Public Member Functions | |
| static List< PhysicalValue > | BeamParameters (ComplexAmplitude field, bool evaluateEy=false, bool relativeToCentroid=true, bool relativeToPrincipalAxes=false, bool refineToSphericalPhase=false, double clippingThreshold=1e-5, BeamParametersSelection[] beamParametersToEvaluate) |
| Calculates the beam parameters of the given field. More... | |
| static List< PhysicalValue > | Centroid (DataArray2D dataArray) |
| Calculates the centroid or barycenter of the given amplitudes for each subset of the given data array. More... | |
| static PhysicalValue | ConversionEfficiency (ComplexAmplitude field, ComplexAmplitude referenceField, bool evaluateEy=false, ComplexAmplitude evaluationRegion=null, ComplexAmplitude incidentField=null) |
| Calculates the conversion efficiency of the given field. More... | |
| static PhysicalValue | ConversionEfficiency (ComplexAmplitude field, ComplexAmplitude referenceField, bool evaluateEy=false, IRegion1D2D evaluationRegion=null, ComplexAmplitude incidentField=null) |
| Calculates the conversion efficiency of the given field. More... | |
| static DetectorResultObject | CreateDetectorResult (IDocument document, string description, string group="") |
| Creates a detector result object from a document (Harmonic Field, Data Array etc.). More... | |
| static DetectorResultObject | CreateDetectorResult (List< PhysicalValue > physicalValues) |
| Creates a detector result object from a list of real-valued physical values. More... | |
| static DetectorResultObject | CreateDetectorResult (List< PhysicalValueComplex > physicalValues) |
| Creates a detector result object from a list of complex-valued physical values. More... | |
| static DetectorResultObject | CreateDetectorResult (PhysicalValueBase[] physicalValues) |
| Creates a detector result object from one or more physical values, which can be real-valued or complex-valued. Usage note: you can also pass an array of PhysicalValueBase or a list of PhysicalValueBase (the later by conversion to an array via calling the ToArray() method). More... | |
| static PhysicalValue | FiberCouplingEfficiency (ComplexAmplitude field, ComplexAmplitude fiberMode, ComplexAmplitude incidentField=null) |
| Calculates the fiber coupling efficiency for the given field and the given fiber mode. More... | |
| static PhysicalValue | FiberCouplingEfficiency_ModeDiameter (ComplexAmplitude field, double modeDiameter, ComplexAmplitude incidentField=null) |
| Calculates the fiber coupling efficiency for the given field and the given fiber mode. A Gaussian mode field is assumed. More... | |
| static PhysicalValue | FiberCouplingEfficiency_NumericalAperture (ComplexAmplitude field, double numericalAperture, ComplexAmplitude incidentField=null) |
| Calculates the fiber coupling efficiency for the given field and the given fiber mode. A Gaussian mode field is assumed. More... | |
| static double | Maximum (ComplexField field, FieldQuantity fieldQuantity) |
| Retrieves the maximum amplitude, phase, real part, imaginary part, or squared amplitude within the given field. More... | |
| static double | Maximum (ComplexField field, FieldQuantity fieldQuantity, out Vector position) |
| Retrieves the maximum amplitude, phase, real part, imaginary part, or squared amplitude within the given field. More... | |
| static PhysicalValue | MaximumRelativeIntensityOfStrayLight (ComplexAmplitude field, ComplexAmplitude evaluationRegion, bool evaluateEy=false) |
| Calculates the maximum relative stray light intensity within the given field. More... | |
| static PhysicalValue | MaximumRelativeIntensityOfStrayLight (ComplexAmplitude field, IRegion1D2D evaluationRegion, bool evaluateEy=false) |
| Calculates the maximum relative stray light intensity within the given field. More... | |
| static double | Minimum (ComplexField field, FieldQuantity fieldQuantity) |
| Retrieves the minimum amplitude, phase, real part, imaginary part, or squared amplitude within the given field. More... | |
| static double | Minimum (ComplexField field, FieldQuantity fieldQuantity, out Vector position) |
| Retrieves the minimum amplitude, phase, real part, imaginary part, or squared amplitude within the given field. More... | |
| static PhysicalValue | ParaxialPower (ComplexAmplitude field) |
| Calculates the paraxial power (the \(E_{\text{z}}\) component of the field is neglected) of the specified field. More... | |
| static PhysicalValue | ParaxialPower (ComplexAmplitude field, VectorD centerPoint, VectorD size) |
| Calculates the paraxial power (the \(E_{\text{z}}\) component of the field is neglected) of the specified rectangular region in the given field. More... | |
| static double | ReadWavelengthInformation (DataArrayBase dataArray) |
| At some data arrays, especially the ones generated by the Electromagnetic Field Detector, a wavelength is stored within the data array. This method reads the wavelength information form a single data array. More... | |
| static List< double > | ReadWavelengthInformation (List< DataArrayBase > listDataArray) |
At some data arrays, especially the ones generated by the Electromagnetic Field Detector, a wavelength is stored within the data array. This method reads the wavelength information form a list of data arrays. If a data array has no wavelength information, double.NaN is used. More... | |
| static List< PhysicalValue > | SeidelAberrations (ComplexAmplitude field, bool sphericalPhaseIsReference, bool evaluateEy=false) |
| Calculates the Seidel aberrations of the given field. More... | |
| static PhysicalValue | SignalToNoiseRatio (ComplexAmplitude field, ComplexAmplitude referenceField, bool evaluateEy=false, ComplexAmplitude evaluationRegion=null, bool allowScaleFreedom=true, SignalType signalType=SignalType.Amplitude) |
| Calculates the signal-to-noise ratio (SNR) of the given field. More... | |
| static PhysicalValue | SignalToNoiseRatio (ComplexAmplitude field, ComplexAmplitude referenceField, bool evaluateEy=false, IRegion1D2D evaluationRegion=null, bool allowScaleFreedom=true, SignalType signalType=SignalType.Amplitude) |
| Calculates the signal-to-noise ratio (SNR) of the given field. More... | |
| static double | SumOfFieldValues (ComplexField field, FieldQuantity fieldQuantity) |
| Calculates the sum of all amplitude, phase, real part, imaginary part, or squared amplitude values within the given field. More... | |
| static PhysicalValue | UniformityError (ComplexAmplitude field, ComplexAmplitude referenceField, bool evaluateEy=false, ComplexAmplitude evaluationRegion=null, SignalType signalType=SignalType.Amplitude) |
| Calculates the uniformity error of the given field with respect to a given reference field. More... | |
| static PhysicalValue | UniformityError (ComplexAmplitude field, ComplexAmplitude referenceField, bool evaluateEy=false, IRegion1D2D evaluationRegion=null, SignalType signalType=SignalType.Amplitude) |
| Calculates the uniformity error of the given field with respect to a given reference field. More... | |
| static PhysicalValue | UniformityError (DataArray2D dataArray, int subsetIndex, DataArray2D referenceData) |
| Calculates the uniformity error for a given two-dimensional data array with respect to the given reference data. More... | |
| static PhysicalValue | WindowEfficiency (ComplexAmplitude field, ComplexAmplitude referenceField, bool evaluateEy=false, ComplexAmplitude evaluationRegion=null, ComplexAmplitude incidentField=null) |
| Calculates the window efficiency of the given field. More... | |
| static PhysicalValue | WindowEfficiency (ComplexAmplitude field, ComplexAmplitude referenceField, bool evaluateEy=false, IRegion1D2D evaluationRegion=null, ComplexAmplitude incidentField=null) |
| Calculates the window efficiency of the given field. More... | |
| static List< PhysicalValue > | ZernikeFringeAberrations (ComplexAmplitude field, int numberOfCoefficients, bool sphericalPhaseIsReference, bool evaluateEy=false) |
| Calculates the Zernike fringe aberrations of the given field. More... | |
This class provides methods for evaluating fields.
|
static |
Calculates the beam parameters of the given field.
| field | The field to evaluate. |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| relativeToCentroid | If this parameter is set true, the detector is evaluated relative to the centroid. The default value of this optional parameter is true. |
| relativeToPrincipalAxes | If this parameter is set to true, the detector is evaluated relative set to the principal axes. The default value of this optional parameter is false. |
| refineToSphericalPhase | If this parameter is set to true the sampling is refined so that an analytical spherical phase factor can be sampled correctly. The default value of this optional parameter is false. |
| clippingThreshold | All values having less than the given portion of the maximum squared amplitude in the field are ignored. The default value of this optional parameter is \(10^{-5}\). |
| beamParametersToEvaluate | An array of BeamParametersSelection enum entries. All entries specified in this array are evaluated, all other possible beam parameters are not calculated. If this optional parameter is not specified, all beam parameters are evaluated. |
|
static |
Calculates the centroid or barycenter of the given amplitudes for each subset of the given data array.
| dataArray | The data array. |
| NotEquidistantException | Data are not equidistant. |
|
static |
Calculates the conversion efficiency of the given field.
| field | The field for which the conversion efficiency is calculated. |
| referenceField | The reference field, i.e. how the field should look like in an ideal case (conversion efficiency of 100 %). |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| evaluationRegion | The region taken into account for calculation of the conversion efficiency. If this optional parameter is not specified, all absolute values of the reference field larger than zero define the evaluation region. |
| incidentField | The incident field defining the original power of the field. If this optional parameter is not specified, the power of the field is used instead. |
|
static |
Calculates the conversion efficiency of the given field.
| field | The field for which the conversion efficiency is calculated. |
| referenceField | The reference field, i.e. how the field should look like in an ideal case (conversion efficiency of 100 %). |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| evaluationRegion | The region taken into account for calculation of the conversion efficiency. If this optional parameter is not specified, all absolute values of the reference field larger than zero define the evaluation region. |
| incidentField | The incident field defining the original power of the field. If this optional parameter is not specified, the power of the field is used instead. |
|
static |
Creates a detector result object from a document (Harmonic Field, Data Array etc.).
| document | The document. |
| description | The description of the result. |
| group | With this optional parameter you can group the results, for example you can put the results for Ex into one group and the results for Ey into another. The group name is appended to the actual detector name. For technical reasons, grouping does not work for lists of physical values. |
|
static |
Creates a detector result object from a list of real-valued physical values.
| physicalValues | The list of physical values. |
|
static |
Creates a detector result object from a list of complex-valued physical values.
| physicalValues | The list of physical values. |
|
static |
Creates a detector result object from one or more physical values, which can be real-valued or complex-valued. Usage note: you can also pass an array of PhysicalValueBase or a list of PhysicalValueBase (the later by conversion to an array via calling the ToArray() method).
| physicalValues | One or more physical values. |
|
static |
Calculates the fiber coupling efficiency for the given field and the given fiber mode.
| field | The field to evaluate. |
| fiberMode | The fiber mode. |
| incidentField | The incident field defining the original power of the field. If this optional parameter is not specified, the power of the field is used instead. |
|
static |
Calculates the fiber coupling efficiency for the given field and the given fiber mode. A Gaussian mode field is assumed.
| field | The field to evaluate. |
| modeDiameter | The diameter of the Gaussian fiber mode. |
| incidentField | The incident field defining the original power of the field. If this optional parameter is not specified, the power of the field is used instead. |
|
static |
Calculates the fiber coupling efficiency for the given field and the given fiber mode. A Gaussian mode field is assumed.
| field | The field to evaluate. |
| numericalAperture | The numerical aperture of the fiber. |
| incidentField | The incident field defining the original power of the field. If this optional parameter is not specified, the power of the field is used instead. |
|
static |
Retrieves the maximum amplitude, phase, real part, imaginary part, or squared amplitude within the given field.
| field | The field for which the maximum is retrieved. |
| fieldQuantity | Specifies for which field quantity (amplitude, phase, real part, imaginary part, or squared amplitude) the maximum shall be retrieved. |
|
static |
Retrieves the maximum amplitude, phase, real part, imaginary part, or squared amplitude within the given field.
| field | The field for which the maximum is retrieved. |
| fieldQuantity | Specifies for which field quantity (amplitude, phase, real part, imaginary part, or squared amplitude) the maximum shall be retrieved. |
| position | Returns the pixel coordinate of the maximum. The lower left corner of the field has the position (0; 0). |
|
static |
Calculates the maximum relative stray light intensity within the given field.
| field | The field for which the stray light intensity is calculated. |
| evaluationRegion | All absolute values of this field larger than zero define the evaluation region. Everything outside the evaluation region is regarded as stray light whose maximum relative intensity is determined. |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
|
static |
Calculates the maximum relative stray light intensity within the given field.
| field | The field for which the stray light intensity is calculated. |
| evaluationRegion | All absolute values of this field larger than zero define the evaluation region. Everything outside the evaluation region is regarded as stray light whose maximum relative intensity is determined. |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
|
static |
Retrieves the minimum amplitude, phase, real part, imaginary part, or squared amplitude within the given field.
| field | The field for which the minimum is retrieved. |
| fieldQuantity | Specifies for which field quantity (amplitude, phase, real part, imaginary part, or squared amplitude) the minimum shall be retrieved. |
|
static |
Retrieves the minimum amplitude, phase, real part, imaginary part, or squared amplitude within the given field.
| field | The field for which the minimum is retrieved. |
| fieldQuantity | Specifies for which field quantity (amplitude, phase, real part, imaginary part, or squared amplitude) the minimum shall be retrieved. |
| position | Returns the pixel coordinate of the minimum. The lower left corner of the field has the position (0; 0). |
|
static |
Calculates the paraxial power (the \(E_{\text{z}}\) component of the field is neglected) of the specified field.
| field | The field for which the power is calculated. |
|
static |
Calculates the paraxial power (the \(E_{\text{z}}\) component of the field is neglected) of the specified rectangular region in the given field.
| field | The field for which the power in the specified region is calculated. |
| centerPoint | The center point of the region the power is to be calculated for. |
| size | The size of the rectangular region the power is to be calculated for . |
|
static |
At some data arrays, especially the ones generated by the Electromagnetic Field Detector, a wavelength is stored within the data array. This method reads the wavelength information form a single data array.
| dataArray | The data array. |
double.NaN if no wavelength information is stored.
|
static |
At some data arrays, especially the ones generated by the Electromagnetic Field Detector, a wavelength is stored within the data array. This method reads the wavelength information form a list of data arrays. If a data array has no wavelength information, double.NaN is used.
| listDataArray | The list of data arrays that shall be used for extraction of the data. |
|
static |
Calculates the Seidel aberrations of the given field.
| field | The field to evaluate. |
| sphericalPhaseIsReference | If set to true the aberrations are calculated relative to an analytical spherical phase factor if present. |
| evaluateEy | This parameter is no longer needed. Just left for compatibility |
|
static |
Calculates the signal-to-noise ratio (SNR) of the given field.
| field | The field for which the SNR is calculated. |
| referenceField | The reference field, i.e. how the field should look like in an ideal case (SNR of infinity). |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| evaluationRegion | The region taken into account for the SNR calculation. If this optional parameter is not specified, all absolute values of the reference field larger than zero define the evaluation region. |
| allowScaleFreedom | If set to true the field might be scaled with a complex value to get a better correspondence to the reference field. The default value of this optional parameter is true. |
| signalType | Defines for which field quantity the SNR is evaluated. The default value of this optional parameter is amplitude, i.e. the phase values do not influence the SNR calculation. |
|
static |
Calculates the signal-to-noise ratio (SNR) of the given field.
| field | The field for which the SNR is calculated. |
| referenceField | The reference field, i.e. how the field should look like in an ideal case (SNR of infinity). |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| evaluationRegion | The region taken into account for the SNR calculation. If this optional parameter is not specified, all absolute values of the reference field larger than zero define the evaluation region. |
| allowScaleFreedom | If set to true the field might be scaled with a complex value to get a better correspondence to the reference field. The default value of this optional parameter is true. |
| signalType | Defines for which field quantity the SNR is evaluated. The default value of this optional parameter is amplitude, i.e. the phase values do not influence the SNR calculation. |
|
static |
Calculates the sum of all amplitude, phase, real part, imaginary part, or squared amplitude values within the given field.
| field | The field for which the sum is calculated. |
| fieldQuantity | Specifies for which field quantity (amplitude, phase, real part, imaginary part, or squared amplitude) the sum shall be calculated. |
|
static |
Calculates the uniformity error of the given field with respect to a given reference field.
| field | The field for which the uniformity error is calculated. |
| referenceField | The reference field, i.e. how the field should look like in an ideal case (uniformity error of zero). |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| evaluationRegion | The region taken into account for calculation of the uniformity error. If this optional parameter is not specified, all absolute values of the reference field larger than zero define the evaluation region. |
| signalType | Defines for which field quantity the uniformity error is evaluated. The default value of this optional parameter is amplitude, i.e. the phase values do not influence the calculation of the uniformity error. |
|
static |
Calculates the uniformity error of the given field with respect to a given reference field.
| field | The field for which the uniformity error is calculated. |
| referenceField | The reference field, i.e. how the field should look like in an ideal case (uniformity error of zero). |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| evaluationRegion | The region taken into account for calculation of the uniformity error. If this optional parameter is not specified, all absolute values of the reference field larger than zero define the evaluation region. |
| signalType | Defines for which field quantity the uniformity error is evaluated. The default value of this optional parameter is amplitude, i.e. the phase values do not influence the calculation of the uniformity error. |
|
static |
Calculates the uniformity error for a given two-dimensional data array with respect to the given reference data.
| dataArray | The two-dimensional data array for which the evaluation shall be done. Must be equidistant in both x- and y-direction. |
| subsetIndex | The index of the subset that is evaluated. |
| referenceData | The two-dimensional reference data that shall be used for evaluation. Must be equidistant in both x- and y-direction and contain only one subset. |
| System.ArgumentException | The data array to analyze has to be equidistant in x- and y-direction. or The reference field for analyzing the uniformity of a data array has to be equidistant in x- and y-direction. |
|
static |
Calculates the window efficiency of the given field.
| field | The field for which the window efficiency is calculated. |
| referenceField | The reference field, i.e. how the field should look like in an ideal case (window efficiency of 100 %). |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| evaluationRegion | The region taken into account for calculation of the window efficiency. If this optional parameter is not specified, all absolute values of the reference field larger than zero define the evaluation region. |
| incidentField | The incident field defining the original power of the field. If this optional parameter is not specified, the power of the field is used instead. |
|
static |
Calculates the window efficiency of the given field.
| field | The field for which the window efficiency is calculated. |
| referenceField | The reference field, i.e. how the field should look like in an ideal case (window efficiency of 100 %). |
| evaluateEy | If this optional parameter is set to true, the Ey-component of the field is evaluated instead of the Ex-component. |
| evaluationRegion | The region taken into account for calculation of the window efficiency. If this optional parameter is not specified, all absolute values of the reference field larger than zero define the evaluation region. |
| incidentField | The incident field defining the original power of the field. If this optional parameter is not specified, the power of the field is used instead. |
|
static |
Calculates the Zernike fringe aberrations of the given field.
| field | The field to evaluate. |
| numberOfCoefficients | The maximum coefficient index to evaluate. Must be in the range 1 to 37. |
| sphericalPhaseIsReference | If set to true the aberrations are calculated relative to an analytical spherical phase factor if present. |
| evaluateEy | This parameter is no longer needed. The more "powerful" vectorial component of Ex and Ey is used for locally polarized fields. Just left for compatibility. |