SourceRayFile
#
- class ansys.speos.core.source.SourceRayFile(project, name, description='', metadata=None, source_instance=None, default_values=True)#
Bases:
BaseSource
RayFile Source.
By default, flux and spectrum from ray file are selected.
- Parameters:
- Parameters:
Overview#
Set ray file. |
|
Take flux from ray file provided. |
|
Set luminous flux. |
|
Set radiant flux. |
|
Take spectrum from ray file provided. |
|
Set spectrum of the Source. |
|
Set position of the source. |
|
Set exit geometries. |
Import detail#
from ansys.speos.core.source import SourceRayFile
Method detail#
- SourceRayFile.set_ray_file_uri(uri)#
Set ray file.
- Parameters:
- uri
str
Rayfile format file uri (.ray or .tm25ray files expected).
- uri
- Returns:
ansys.speos.core.source.SourceRayFile
RayFile source.
- SourceRayFile.set_flux_from_ray_file()#
Take flux from ray file provided.
- Returns:
ansys.speos.core.source.SourceRayFile
RayFile source.
- SourceRayFile.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.SourceRayFile
RayFile source.
- SourceRayFile.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.SourceRayFile
RayFile source.
- SourceRayFile.set_spectrum_from_ray_file()#
Take spectrum from ray file provided.
- Returns:
ansys.speos.core.source.SourceRayFile
RayFile source.
- SourceRayFile.set_spectrum()#
Set spectrum of the Source.
- Returns:
ansys.speos.core.spectrum.Spectrum
Spectrum.
- SourceRayFile.set_axis_system(axis_system=None)#
Set position of the source.
- Parameters:
- axis_system
Optional
[List
[float
]] Position of the source [Ox Oy Oz Xx Xy Xz Yx Yy Yz Zx Zy Zz]. By default,
[0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1]
.
- axis_system
- Returns:
ansys.speos.core.source.SourceRayFile
RayFile Source.
- SourceRayFile.set_exit_geometries(exit_geometries=None)#
Set exit geometries.
- Parameters:
- exit_geometries
List
[ansys.speos.core.geo_ref.GeoRef
] Exit Geometries that will use this rayfile source. By default,
[]
.
- exit_geometries
- Returns:
ansys.speos.core.source.SourceRayFile
RayFile Source.