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:
speos_clientansys.speos.core.kernel.client.SpeosClient

The Speos instance client.

namestr

Name of the feature.

descriptionstr

Description of the feature. By default, "".

metadataOptional[Mapping[str, str]]

Metadata of the feature. By default, {}.

keystr

Creation from an SpectrumLink key

Attributes:
spectrum_linkansys.speos.core.kernel.spectrum.SpectrumLink

Link object for the spectrum in database.

Parameters:

Overview#

set_monochromatic

Set the spectrum as monochromatic.

set_blackbody

Set the spectrum as blackbody.

set_sampled

Set the spectrum as sampled.

set_library

Set the spectrum as library.

set_incandescent

Set the spectrum as incandescent (predefined spectrum).

set_warmwhitefluorescent

Set the spectrum as warmwhitefluorescent (predefined spectrum).

set_daylightfluorescent

Set the spectrum as daylightfluorescent (predefined spectrum).

set_whiteLED

Set the spectrum as white led (predefined spectrum).

set_white_led

Set the spectrum as white led (predefined spectrum).

set_halogen

Set the spectrum as halogen (predefined spectrum).

set_metalhalide

Set the spectrum as metalhalide (predefined spectrum).

set_highpressuresodium

Set the spectrum as highpressuresodium (predefined spectrum).

commit

Save feature: send the local data to the speos server database.

reset

Reset feature: override local data by the one from the speos server database.

delete

Delete feature: delete data from the speos server database.

spectrum_link

Link object for the spectrum in database.

__str__

Return the string representation of the spectrum.

Import detail#

from ansys.speos.core.spectrum import Spectrum

Attribute detail#

Link object for the spectrum in database.

Method detail#

Spectrum.set_monochromatic()#

Set the spectrum as monochromatic.

Returns:
ansys.speos.core.spectrum.Spectrum.Monochromatic

Spectrum Monochromatic feature.

Spectrum.set_blackbody()#

Set the spectrum as blackbody.

Returns:
ansys.speos.core.spectrum.Spectrum.Blackbody

Spectrum Blackbody feature to complete.

Spectrum.set_sampled()#

Set the spectrum as sampled.

Returns:
ansys.speos.core.spectrum.Spectrum.Sampled

Spectrum Sampled feature to complete.

Spectrum.set_library()#

Set the spectrum as library.

Returns:
ansys.speos.core.spectrum.Spectrum.Library

Spectrum Library feature to complete.

Spectrum.set_incandescent()#

Set the spectrum as incandescent (predefined spectrum).

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum feature.

Spectrum.set_warmwhitefluorescent()#

Set the spectrum as warmwhitefluorescent (predefined spectrum).

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum feature.

Spectrum.set_daylightfluorescent()#

Set the spectrum as daylightfluorescent (predefined spectrum).

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum 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.Spectrum

Spectrum feature.

Spectrum.set_white_led()#

Set the spectrum as white led (predefined spectrum).

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum feature.

Spectrum.set_halogen()#

Set the spectrum as halogen (predefined spectrum).

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum feature.

Spectrum.set_metalhalide()#

Set the spectrum as metalhalide (predefined spectrum).

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum feature.

Spectrum.set_highpressuresodium()#

Set the spectrum as highpressuresodium (predefined spectrum).

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum 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.Spectrum

Spectrum feature.

Spectrum.reset()#

Reset feature: override local data by the one from the speos server database.

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum feature.

Spectrum.delete()#

Delete feature: delete data from the speos server database.

The local data are still available

Returns:
ansys.speos.core.spectrum.Spectrum

Spectrum feature.

Classes#

Monochromatic

Monochromatic type of spectrum.

Blackbody

Blackbody type of spectrum.

Sampled

Sampled type of spectrum.

Library

Library type of spectrum.