SensorPolarIntensity#
- class ansys.speos.core.sensor.SensorPolarIntensity(project, name, description='', metadata=None, sensor_instance=None, default_parameters=None)#
Bases:
BaseSensorClass for polar intensity sensor.
A polar intensity sensor generates a photometric file (IESNA A/B/C or Eulumdat) from a simulation. It supports both far-field (integration angle) and near-field (cell distance + diameter) configurations as well as explicit dimensional sampling or adaptive sampling from a file.
By default, IESNA C format, explicit dimensions (360 × 90), far-field with integration angle of 5 degrees, and the origin axis system are used.
- 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,
{}.- sensor_instance
ansys.api.speos.scene.v2.scene_pb2.Scene.SensorInstance,optional Sensor instance to provide if the feature does not have to be created from scratch. By default,
None, means that the feature is created from scratch.- default_parameters
ansys.speos.core.generic.parameters.PolarIntensitySensorParameters,optional If defined the values in the sensor instance will be overwritten by the values of the dataclass. By default,
None.
- project
- Parameters:
project (SensorPolarIntensity.__init__.project)
name (str)
description (str)
sensor_instance (Optional[ansys.speos.core.kernel.scene.ProtoScene.SensorInstance])
default_parameters (Optional[ansys.speos.core.generic.parameters.PolarIntensitySensorParameters])
Notes
PolarIntensityPropertiesin the scene proto only contains anaxis_systemfield – there is no layer-type separation for polar intensity sensors.
Overview#
Set output format to IESNA type A. |
|
Set output format to IESNA type B. |
|
Set output format to IESNA type C. |
|
Set output format to Eulumdat. |
|
Use constant samplign instead of an adaptive-sampling file. |
|
Use an adaptive-sampling file instead of explicit dimensions. |
|
Configure the sensor for far-field measurement. |
|
Configure the sensor for near-field measurement. |
Location of the adaptive-sampling file. |
|
Number of horizontal samples. |
|
Number of vertical samples. |
|
Far-field integration angle in degrees. |
|
Distance of the measurement cell from the sensor origin in mm. |
|
Diameter of the measurement cell in mm. |
|
Position of the sensor. |
Import detail#
from ansys.speos.core.sensor import SensorPolarIntensity
Property detail#
- property SensorPolarIntensity.adaptive_sampling_file: pathlib.Path | None#
Location of the adaptive-sampling file.
- property SensorPolarIntensity.integration_angle: float | None#
Far-field integration angle in degrees.
- property SensorPolarIntensity.cell_distance: float | None#
Distance of the measurement cell from the sensor origin in mm.
- property SensorPolarIntensity.cell_diameter: float | None#
Diameter of the measurement cell in mm.
The diameter is derived from
cell_distanceand the storedcell_integration_anglevia2 * cell_distance * tan(cell_integration_angle).
Method detail#
- SensorPolarIntensity.set_format_iesna_a()#
Set output format to IESNA type A.
- Returns:
ansys.speos.core.sensor.SensorPolarIntensityThis polar intensity sensor.
- SensorPolarIntensity.set_format_iesna_b()#
Set output format to IESNA type B.
- Returns:
ansys.speos.core.sensor.SensorPolarIntensityThis polar intensity sensor.
- SensorPolarIntensity.set_format_iesna_c()#
Set output format to IESNA type C.
- Returns:
ansys.speos.core.sensor.SensorPolarIntensityThis polar intensity sensor.
- SensorPolarIntensity.set_format_eulumdat()#
Set output format to Eulumdat.
- Returns:
ansys.speos.core.sensor.SensorPolarIntensityThis polar intensity sensor.
- SensorPolarIntensity.set_constant_sampling()#
Use constant samplign instead of an adaptive-sampling file.
- Returns:
ansys.speos.core.sensor.SensorPolarIntensityThis polar intensity sensor.
- SensorPolarIntensity.set_adaptive_sampling()#
Use an adaptive-sampling file instead of explicit dimensions.
- Returns:
ansys.speos.core.sensor.SensorPolarIntensityThis polar intensity sensor.
- SensorPolarIntensity.set_far_field()#
Configure the sensor for far-field measurement.
- Returns:
ansys.speos.core.sensor.SensorPolarIntensityThis polar intensity sensor.
- SensorPolarIntensity.set_near_field()#
Configure the sensor for near-field measurement.
Default cell distance is
10mm and default cell diameter is0.3491mm.- Returns:
ansys.speos.core.sensor.SensorPolarIntensityThis polar intensity sensor.