SourceAmbientNaturalLight#
- class ansys.speos.core.source.SourceAmbientNaturalLight(project, name, description='', metadata=None, source_instance=None, default_parameters=None)#
Bases:
BaseSourceAmbientNatural light ambient source.
By default, turbidity is set to be 3 with Sky. [0, 0, 1] is used as zenith direction, [0, 1, 0] as north direction. Sun type is set to be automatic type.
- 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.AmbientNaturalLightParameters] =None - If defined the values in the SourceAmbientNaturalLight instance
will be overwritten by the values of the data class.
- project
- Parameters:
project (SourceAmbientNaturalLight.__init__.project)
name (str)
description (str)
source_instance (Optional[ansys.speos.core.kernel.scene.ProtoScene.SourceInstance])
default_parameters (Optional[ansys.speos.core.generic.parameters.AmbientNaturalLightParameters])
Overview#
Set natural light sun type as automatic. |
|
Set natural light sun type as manual. |
Property turbidity of the natural light source. |
|
Bool Property of whether activated using sky in the natural light source. |
|
Property zenith direction of the natural light source. |
|
Property whether reverse zenith direction of the natural light source. |
|
Property north direction of the natural light source. |
|
Property whether reverse north direction of the natural light source. |
Import detail#
from ansys.speos.core.source import SourceAmbientNaturalLight
Property detail#
- property SourceAmbientNaturalLight.turbidity: float#
Property turbidity of the natural light source.
default value to be 3.
- property SourceAmbientNaturalLight.with_sky: bool#
Bool Property of whether activated using sky in the natural light source.
default value to be True.
- property SourceAmbientNaturalLight.zenith_direction: List[float]#
Property zenith direction of the natural light source.
default value to be [0, 0, 1]
- property SourceAmbientNaturalLight.reverse_zenith_direction: bool#
Property whether reverse zenith direction of the natural light source.
default value to be False.
Method detail#
- SourceAmbientNaturalLight.set_sun_automatic()#
Set natural light sun type as automatic.
- Returns:
ansys.speos.core.source.BaseSourceAmbient.AutomaticSunSun automatic type feature to complete.
- SourceAmbientNaturalLight.set_sun_manual()#
Set natural light sun type as manual.
- Returns:
ansys.speos.core.source.BaseSourceAmbient.ManualSun Manual type feature to complete.