SourceSurface
#
- class ansys.speos.core.source.SourceSurface(project, name, description='', metadata=None, source_instance=None, default_values=True)#
Bases:
BaseSource
Type of Source : Surface.
By default, a luminous flux and existence constant are chosen. With a monochromatic spectrum, and lambertian intensity (cos with N = 1).
- Parameters:
- speos_client
ansys.speos.core.kernel.client.SpeosClient
The Speos instance client.
- name
str
Name of the source feature.
- surface
ansys.api.speos.source.v1.source_pb2.SourceTemplate.Surface
Surface source to complete.
- surface_props
ansys.api.speos.scene.v2.scene_pb2.Scene.SourceInstance.SurfaceProperties
Surface source properties to complete.
- default_valuesbool
Uses default values when True.
- speos_client
- Parameters:
Overview#
Take flux from intensity file provided. |
|
Set luminous flux. |
|
Set radiant flux. |
|
Set luminous intensity flux. |
|
Set intensity. |
|
Set existence constant. |
|
Set existence variable, taken from XMP map. |
|
Take spectrum from xmp file provided. |
|
Set spectrum of the Source. |
|
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. |
Import detail#
from ansys.speos.core.source import SourceSurface
Method detail#
- SourceSurface.set_flux_from_intensity_file()#
Take flux from intensity file provided.
- Returns:
ansys.speos.core.source.SourceSurface
Surface source.
- SourceSurface.set_flux_luminous(value=683)#
Set luminous flux.
- Parameters:
- value
float
Luminous flux in lumens. By default,
683.0
.
- value
- Returns:
ansys.speos.core.source.SourceSurface
Surface source.
- SourceSurface.set_flux_radiant(value=1)#
Set radiant flux.
- Parameters:
- value
float
Radiant flux in watts. By default,
1.0
.
- value
- Returns:
ansys.speos.core.source.SourceSurface
Surface source.
- SourceSurface.set_flux_luminous_intensity(value=5)#
Set luminous intensity flux.
- Parameters:
- value
float
Luminous intensity in candelas. By default,
5.0
.
- value
- Returns:
ansys.speos.core.source.SourceSurface
Surface source.
- SourceSurface.set_intensity()#
Set intensity.
- Returns:
ansys.speos.core.intensity.Intensity
Intensity.
- SourceSurface.set_exitance_constant(geometries)#
Set existence constant.
- Parameters:
- geometries
List
[tuple
[ansys.speos.core.geo_ref.GeoRef
, bool]] List of (face, reverseNormal).
- geometries
- Returns:
ansys.speos.core.source.SourceSurface
Surface source.
- SourceSurface.set_exitance_variable()#
Set existence variable, taken from XMP map.
- Returns:
ansys.speos.core.source.SourceSurface.ExitanceVariable
ExitanceVariable of surface source.
- SourceSurface.set_spectrum_from_xmp_file()#
Take spectrum from xmp file provided.
- Returns:
ansys.speos.core.source.SourceSurface
Surface source.
- SourceSurface.set_spectrum()#
Set spectrum of the Source.
- Returns:
ansys.speos.core.spectrum.Spectrum
Spectrum.
- SourceSurface.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.source.SourceSurface
Source feature.
- SourceSurface.reset()#
Reset feature: override local data by the one from the speos server database.
- Returns:
ansys.speos.core.source.SourceSurface
Source feature.
- SourceSurface.delete()#
Delete feature: delete data from the speos server database.
The local data are still available
- Returns:
ansys.speos.core.source.SourceSurface
Source feature.
Classes#
Type of surface source existence : existence variable. |