Intensity#
- class ansys.speos.core.intensity.Intensity(speos_client, name, description='', metadata=None, intensity_props_to_complete=None, key='')#
Speos feature : Intensity.
By default, a lambertian intensity is created (cos with N=1 and total_angle=180).
- Parameters:
- speos_client
ansys.speos.core.kernel.client.SpeosClient The Speos instance client.
- name
str Name of the feature.
- description
str Description of the feature. By default,
"".- metadata
Optional[Mapping[str,str]] Metadata of the feature. By default,
{}.- intensity_props_to_complete
ansys.api.speos.scene.v2.scene_pb2.Scene.SourceInstance.IntensityProperties,optional Intensity properties to complete. By default,
None.- key
str Creation from an IntensityTemplateLink key
- speos_client
- Attributes:
- intensity_template_link
ansys.speos.core.kernel.intensity_template.IntensityTemplateLink Link object for the intensity template in database.
- intensity_template_link
- Parameters:
Overview#
Set the intensity as library. |
|
Set the intensity as cos. |
|
Set the intensity as gaussian. |
|
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. |
Return type of sensor. |
Link object for the intensity template in database. |
Return the string representation of the intensity. |
Import detail#
from ansys.speos.core.intensity import Intensity
Property detail#
- property Intensity.type: type#
Return type of sensor.
- Returns:
- Example:
Noneforlambertianoransys.speos.core.intensity.Intensity.Library
- Example:
Attribute detail#
- Intensity.intensity_template_link = None#
Link object for the intensity template in database.
Method detail#
- Intensity.set_library()#
Set the intensity as library.
- Returns:
ansys.speos.core.intensity.Intensity.LibraryLibrary intensity.
- Intensity.set_cos(n=3, total_angle=180)#
Set the intensity as cos.
- Parameters:
- Returns:
ansys.speos.core.intensity.IntensityIntensity feature.
- Intensity.set_gaussian()#
Set the intensity as gaussian.
- Returns:
ansys.speos.core.intensity.Intensity.GaussianGaussian intensity.
- Intensity.__str__()#
Return the string representation of the intensity.
- Intensity.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.intensity.IntensityIntensity feature.
- Intensity.reset()#
Reset feature: override local data by the one from the speos server database.
- Returns:
ansys.speos.core.intensity.IntensityIntensity feature.
- Intensity.delete()#
Delete feature: delete data from the speos server database.
The local data are still available
- Returns:
ansys.speos.core.intensity.IntensityIntensity feature.