SimulationInteractive#
- class ansys.speos.core.simulation.SimulationInteractive(project, name, description='', metadata=None, simulation_instance=None, default_values=True)#
Bases:
BaseSimulationType of simulation : Interactive.
By default, geometry distance tolerance is set to 0.01, maximum number of impacts is set to 100, a colorimetric standard is set to CIE 1931, ambient material URI is empty, and weight’s minimum energy percentage is set to 0.005. By default, each source will send 100 rays. By default, the simulation deactivates both light expert and impact report.
- Parameters:
- project
ansys.speos.core.project.Project Project in which simulation shall be created.
- name
str Name of the simulation.
- description
str Description of the Simulation. By default,
"".- metadata
Optional[Mapping[str,str]] Metadata of the feature. By default,
{}.- simulation_instance
ansys.api.speos.scene.v2.scene_pb2.Scene.SimulationInstance,optional Simulation 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 by default.- default_valuesbool
Uses default values when True.
- project
- Parameters:
Overview#
Set the geometry distance tolerance. |
|
Define a value to determine the maximum number of ray impacts during propagation. |
|
Activate weight. Highly recommended to fill. |
|
Deactivate weight. |
|
Set the colorimetric standard to CIE 1931. |
|
Set the colorimetric standard to CIE 1964. |
|
To define the environment in which the light will propagate (water, fog, smoke etc.). |
|
Select the number of rays emitted for each source. |
|
Activate/Deactivate the generation of light expert file. |
|
Activate/Deactivate the details in the HTML simulation report. |
Import detail#
from ansys.speos.core.simulation import SimulationInteractive
Method detail#
- SimulationInteractive.set_geom_distance_tolerance(value=0.01)#
Set the geometry distance tolerance.
- Parameters:
- value
float Maximum distance in mm to consider two faces as tangent. By default,
0.01
- value
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
- SimulationInteractive.set_max_impact(value=100)#
Define a value to determine the maximum number of ray impacts during propagation.
When a ray has interacted N times with the geometry, the propagation of the ray stops.
- Parameters:
- value
int The maximum number of impacts. By default,
100.
- value
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
- SimulationInteractive.set_weight()#
Activate weight. Highly recommended to fill.
- Returns:
ansys.speos.core.simulation.BaseSimulation.WeightSimulation.Weight
- SimulationInteractive.set_weight_none()#
Deactivate weight.
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
- SimulationInteractive.set_colorimetric_standard_CIE_1931()#
Set the colorimetric standard to CIE 1931.
2 degrees CIE Standard Colorimetric Observer Data.
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
- SimulationInteractive.set_colorimetric_standard_CIE_1964()#
Set the colorimetric standard to CIE 1964.
10 degrees CIE Standard Colorimetric Observer Data.
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
- SimulationInteractive.set_ambient_material_file_uri(uri='')#
To define the environment in which the light will propagate (water, fog, smoke etc.).
- Parameters:
- uri
str The ambient material, expressed in a .material file. By default,
"", means air as ambient material.
- uri
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
- SimulationInteractive.set_rays_number_per_sources(values)#
Select the number of rays emitted for each source.
If a source is present in the simulation but not referenced here, it will send by default 100 rays.
- Parameters:
- values
List[ansys.speos.core.simulation.SimulationInteractive.RaysNumberPerSource] List of rays number emitted by source.
- values
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
- SimulationInteractive.set_light_expert(value=False)#
Activate/Deactivate the generation of light expert file.
- Parameters:
- valuebool
Activate/Deactivate. By default,
False, means deactivate.
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
- SimulationInteractive.set_impact_report(value=False)#
Activate/Deactivate the details in the HTML simulation report.
e.g: number of impacts, position and surface state
- Parameters:
- valuebool
Activate/Deactivate. By default,
False, means deactivate.
- Returns:
ansys.speos.core.simulation.SimulationInteractiveInteractive simulation
Classes#
Structure to describe the number of rays requested for a specific source. |