SourceAmbientNaturalLight
#
- class ansys.speos.core.source.SourceAmbientNaturalLight(project, name, description='', metadata=None, source_instance=None, default_values=True)#
Bases:
BaseSourceAmbient
Natural 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:
- Parameters:
Overview#
Set natural light sun type as automatic. |
|
Set natural light sun type as manual. |
Get turbidity of the natural light source. |
|
Bool of whether activated using sky in the natural light source. |
|
Get zenith direction of the natural light source. |
|
Get whether reverse zenith direction of the natural light source. |
|
Get north direction of the natural light source. |
|
Get whether reverse north direction of the natural light source. |
Import detail#
from ansys.speos.core.source import SourceAmbientNaturalLight
Property detail#
- property SourceAmbientNaturalLight.turbidity: float#
Get turbidity of the natural light source.
- Returns:
float
value of Turbidity the measure of the fraction of scattering.
- property SourceAmbientNaturalLight.with_sky: bool#
Bool of whether activated using sky in the natural light source.
- Returns:
- bool
True as using sky, while False as using natural light without the sky.
- property SourceAmbientNaturalLight.zenith_direction: List[float]#
Get zenith direction of the natural light source.
- Returns:
List
[float
]direction defines the zenith direction of the natural light.
- property SourceAmbientNaturalLight.reverse_zenith_direction: bool#
Get whether reverse zenith direction of the natural light source.
- Returns:
- bool
True to reverse zenith direction, False otherwise.
Method detail#
- SourceAmbientNaturalLight.set_sun_automatic()#
Set natural light sun type as automatic.
- Returns:
BaseSourceAmbient.AutomaticSun
- SourceAmbientNaturalLight.set_sun_manual()#
Set natural light sun type as manual.
- Returns:
BaseSourceAmbient.Manual