SourceAmbientUniform#
- class ansys.speos.core.source.SourceAmbientUniform(project, name, description='', metadata=None, source_instance=None, default_parameters=None)#
Bases:
BaseSourceAmbientUniform ambient source.
Sets a constant luminance for the entire sky (or full sphere if mirrored_extent is True) without any sun contribution.
By default, luminance is set to 1000 cd/m^2, mirrored_extent is False and [0, 0, 1] is used as zenith direction.
- Parameters:
- project
ansys.speos.core.project.Project Project that will own the feature.
- 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,
{}.- default_parameters
Optional[ansys.speos.core.generic.parameters.AmbientUniformParameters] =None If defined the values in the SourceAmbientUniform instance will be overwritten by the values of the data class.
- project
- Parameters:
project (SourceAmbientUniform.__init__.project)
name (str)
description (str)
source_instance (Optional[ansys.speos.core.kernel.scene.ProtoScene.SourceInstance])
default_parameters (Optional[ansys.speos.core.generic.parameters.AmbientUniformParameters])
Overview#
Set the uniform ambient sun direction manually. |
|
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. |
Luminance of the uniform ambient source. |
|
Mirrored extent of the uniform ambient source. |
|
Zenith direction of the uniform ambient source. |
|
Reverse zenith direction of the uniform ambient source. |
|
Spectrum of the uniform ambient source. |
Import detail#
from ansys.speos.core.source import SourceAmbientUniform
Property detail#
- property SourceAmbientUniform.mirrored_extent: bool#
Mirrored extent of the uniform ambient source.
If True the ambient light covers all space, if False only the upper half space.
- property SourceAmbientUniform.zenith_direction: List[float]#
Zenith direction of the uniform ambient source.
- property SourceAmbientUniform.reverse_zenith_direction: bool#
Reverse zenith direction of the uniform ambient source.
- property SourceAmbientUniform.spectrum: ansys.speos.core.spectrum.Spectrum#
Spectrum of the uniform ambient source.
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum associated with this source.
Method detail#
- SourceAmbientUniform.set_sun_manual()#
Set the uniform ambient sun direction manually.
- Returns:
ansys.speos.core.source.BaseSourceAmbient.ManualManual sun feature to complete.
- SourceAmbientUniform.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.source.SourceAmbientUniformAmbient uniform Source feature.
- SourceAmbientUniform.reset()#
Reset feature: override local data by the one from the speos server database.
- Returns:
ansys.speos.core.source.SourceAmbientUniformAmbient uniform Source feature.
- SourceAmbientUniform.delete()#
Delete feature: delete data from the speos server database.
The local data are still available.
- Returns:
ansys.speos.core.source.SourceAmbientUniformAmbient uniform Source feature.