AutomaticSun#

class ansys.speos.core.source.BaseSourceAmbient.AutomaticSun(sun, default_values=True, stable_ctr=False)#

Sun type Automatic.

By default, user’s current time and Ansys France is used a time zone.

Parameters:
sun: ansys.api.speos.scene.v2.scene_pb2.AutomaticSun

Wavelengths range protobuf object to modify.

default_valuesbool

Uses default values when True.

stable_ctrbool

Variable to indicate if usage is inside class scope

Parameters:
  • sun (ansys.api.speos.scene.v2.scene_pb2.AutomaticSun)

  • default_values (bool)

  • stable_ctr (bool)

Notes

Do not instantiate this class yourself, use set_sun_automatic method available in source classes.

Overview#

year

Get year info of the automatic sun.

month

Get month info of the automatic sun.

day

Get day info of the automatic sun.

hour

Get hour info of the automatic sun.

minute

Get minute info of the automatic sun.

longitude

Get longitude info of the automatic sun.

latitude

Get latitude info of the automatic sun.

time_zone

Get time zone info of the automatic sun.

Import detail#

from ansys.speos.core.source.BaseSourceAmbient import AutomaticSun

Property detail#

property AutomaticSun.year: int#

Get year info of the automatic sun.

Returns:
int

year info.

property AutomaticSun.month: int#

Get month info of the automatic sun.

Returns:
int

month information.

property AutomaticSun.day: int#

Get day info of the automatic sun.

Returns:
int

day information.

property AutomaticSun.hour: int#

Get hour info of the automatic sun.

Returns:
int

hour information.

property AutomaticSun.minute: int#

Get minute info of the automatic sun.

Returns:
int

minute information.

property AutomaticSun.longitude: float#

Get longitude info of the automatic sun.

Returns:
float

longitude information.

property AutomaticSun.latitude: float#

Get latitude info of the automatic sun.

Returns:
float

latitude information.

property AutomaticSun.time_zone: str#

Get time zone info of the automatic sun.

Returns:
str

time zone abbreviation.