Spectrum#
- class ansys.speos.core.spectrum.Spectrum(speos_client, name, description='', metadata=None, key='')#
Speos feature : Spectrum.
By default, a monochromatic spectrum is created.
- Parameters:
- Attributes:
- spectrum_link
ansys.speos.core.kernel.spectrum.SpectrumLink Link object for the spectrum in database.
- spectrum_link
- Parameters:
Overview#
Set the spectrum as monochromatic. |
|
Set the spectrum as blackbody. |
|
Set the spectrum as sampled. |
|
Set the spectrum as library. |
|
Set the spectrum as incandescent (predefined spectrum). |
|
Set the spectrum as warmwhitefluorescent (predefined spectrum). |
|
Set the spectrum as daylightfluorescent (predefined spectrum). |
|
Set the spectrum as white led (predefined spectrum). |
|
Set the spectrum as white led (predefined spectrum). |
|
Set the spectrum as halogen (predefined spectrum). |
|
Set the spectrum as metalhalide (predefined spectrum). |
|
Set the spectrum as highpressuresodium (predefined spectrum). |
|
Save feature: send the local data to the speos server database. |
|
Reset feature: override local data by the one from the speos server database. |
|
Delete feature: delete data from the speos server database. |
Link object for the spectrum in database. |
Return the string representation of the spectrum. |
Import detail#
from ansys.speos.core.spectrum import Spectrum
Attribute detail#
- Spectrum.spectrum_link = None#
Link object for the spectrum in database.
Method detail#
- Spectrum.set_monochromatic()#
Set the spectrum as monochromatic.
- Returns:
ansys.speos.core.spectrum.Spectrum.MonochromaticSpectrum Monochromatic feature.
- Spectrum.set_blackbody()#
Set the spectrum as blackbody.
- Returns:
ansys.speos.core.spectrum.Spectrum.BlackbodySpectrum Blackbody feature to complete.
- Spectrum.set_sampled()#
Set the spectrum as sampled.
- Returns:
ansys.speos.core.spectrum.Spectrum.SampledSpectrum Sampled feature to complete.
- Spectrum.set_library()#
Set the spectrum as library.
- Returns:
ansys.speos.core.spectrum.Spectrum.LibrarySpectrum Library feature to complete.
- Spectrum.set_incandescent()#
Set the spectrum as incandescent (predefined spectrum).
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.set_warmwhitefluorescent()#
Set the spectrum as warmwhitefluorescent (predefined spectrum).
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.set_daylightfluorescent()#
Set the spectrum as daylightfluorescent (predefined spectrum).
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.set_whiteLED()#
Set the spectrum as white led (predefined spectrum).
Deprecated since version 0.2.2: set_whiteLed will be removed with 0.3.0 set_white_led shall be used to comply with PEP8 naming convention
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.set_white_led()#
Set the spectrum as white led (predefined spectrum).
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.set_halogen()#
Set the spectrum as halogen (predefined spectrum).
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.set_metalhalide()#
Set the spectrum as metalhalide (predefined spectrum).
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.set_highpressuresodium()#
Set the spectrum as highpressuresodium (predefined spectrum).
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.__str__()#
Return the string representation of the spectrum.
- Spectrum.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.reset()#
Reset feature: override local data by the one from the speos server database.
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
- Spectrum.delete()#
Delete feature: delete data from the speos server database.
The local data are still available
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum feature.
Classes#
Monochromatic type of spectrum. |
|
Blackbody type of spectrum. |
|
Sampled type of spectrum. |
|
Library type of spectrum. |