SourceSurface#
- class ansys.speos.core.source.SourceSurface(project, name, description='', metadata=None, source_instance=None, default_parameters=None)#
Bases:
BaseSourceType 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_parameters
Optional[ansys.speos.core.generic.parameters.SurfaceSourceParameters] =None If defined the values in the SourceSurface instance will be overwritten by the values of the data class.
- speos_client
- Parameters:
project (SourceSurface.__init__.project)
name (str)
description (str)
source_instance (Optional[ansys.speos.core.kernel.scene.ProtoScene.SourceInstance])
default_parameters (Optional[ansys.speos.core.generic.parameters.SurfaceSourceParameters])
Overview#
Take flux from intensity file provided. |
|
Set existence constant. |
|
Set existence variable, taken from XMP map. |
|
Take spectrum from xmp file provided. |
|
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. |
Property containing Surface source visualization data. |
|
Flux property of the Surface source. |
|
Intensity property. |
|
Spectrum property of the Source. |
Import detail#
from ansys.speos.core.source import SourceSurface
Property detail#
- property SourceSurface.visual_data: ansys.speos.core.generic.visualization_methods._VisualData#
Property containing Surface source visualization data.
- Returns:
ansys.speos.core.generic.visualization_methods._VisualDataInstance of VisualData Class for pyvista.PolyData of feature rays, coordinate_systems.
- property SourceSurface.flux: SourceSurface#
Flux property of the Surface source.
- Returns:
ansys.speos.core.source.SourceSurface.Fluxflux object of the source
- property SourceSurface.intensity: ansys.speos.core.intensity.Intensity#
Intensity property.
- Returns:
ansys.speos.core.intensity.IntensityIntensity.
- property SourceSurface.spectrum: ansys.speos.core.spectrum.Spectrum#
Spectrum property of the Source.
- Returns:
ansys.speos.core.spectrum.SpectrumSpectrum.
Method detail#
- SourceSurface.set_flux_from_intensity_file()#
Take flux from intensity file provided.
- Returns:
ansys.speos.core.source.SourceSurfaceSurface source.
- SourceSurface.set_exitance_constant()#
Set existence constant.
- Returns:
ansys.speos.core.source.SourceSurface.ExitanceConstantExitanceConstant of surface source.
- SourceSurface.set_exitance_variable()#
Set existence variable, taken from XMP map.
- Returns:
ansys.speos.core.source.SourceSurface.ExitanceVariableExitanceVariable of surface source.
- SourceSurface.set_spectrum_from_xmp_file()#
Take spectrum from xmp file provided.
- Returns:
ansys.speos.core.source.SourceSurfaceSurface source.
- SourceSurface.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.source.SourceSurfaceSource feature.
- SourceSurface.reset()#
Reset feature: override local data by the one from the speos server database.
- Returns:
ansys.speos.core.source.SourceSurfaceSource feature.
- SourceSurface.delete()#
Delete feature: delete data from the speos server database.
The local data are still available
- Returns:
ansys.speos.core.source.SourceSurfaceSource feature.
Classes#
Different types of flux including luminous flux of intensity. |
|
Type of surface source existence : existence constant. |
|
Type of surface source existence : existence variable. |