HASEonGPU.CrossSectionData
- class HASEonGPU.CrossSectionData(wavelengthsAbsorption, crossSectionAbsorption, wavelengthsEmission, crossSectionEmission, resolution=1)
Bases:
objectAbsorption and emission spectra for ASE and pump calculations.
Wavelength arrays store \(\lambda\); matching cross-section arrays store \(\sigma_a\) and \(\sigma_e\) in
cm^2. The wavelength unit is kept as supplied, with interpolation helpers handling the commonnmtable versusmquery mismatch.- Parameters:
wavelengthsAbsorption (object)
crossSectionAbsorption (object)
wavelengthsEmission (object)
crossSectionEmission (object)
resolution (int)
- wavelengthsAbsorption: object
Wavelength samples for the absorption spectrum.
- crossSectionAbsorption: object
Absorption cross sections \(\sigma_a\) in
cm^2.
- wavelengthsEmission: object
Wavelength samples for the emission spectrum.
- crossSectionEmission: object
Emission cross sections \(\sigma_e\) in
cm^2.
- resolution: int = 1
Spectral interpolation resolution passed to
calcPhiASE.
- classmethod monochromatic(*, wavelength, crossSectionAbsorption, crossSectionEmission)
Build a single-wavelength spectrum for monochromatic workflows.
- classmethod fromDirectory(path, resolution=1000)
Load
lambda_a,sigma_a,lambda_e, andsigma_etext files.
- toLaserProperties()
Wrap the same spectra in the lower-level
LaserPropertiesstore.
- absorptionAt(wavelength)
Interpolate \(\sigma_a\) at
wavelength.
- emissionAt(wavelength)
Interpolate \(\sigma_e\) at
wavelength.
- toDict()
Return the dictionary layout expected by the low-level bindings.