Weight#

class ansys.speos.core.simulation.BaseSimulation.Weight(weight, stable_ctr=False)#

The Weight represents the ray energy.

In real life, a ray loses some energy (power) when it interacts with an object. Activating weight means that the Weight message is present. When weight is not activated, rays’ energy stays constant and probability laws dictate if rays continue or stop propagating. When weight is activated, the rays’ energy evolves with interactions until rays reach the sensors. It is highly recommended to fill this parameter excepted in interactive simulation. Not filling this parameter is useful to understand certain phenomena as absorption.

Parameters:
weightansys.api.speos.simulation.v1.simulation_template_pb2.Weight to complete.
stable_ctrbool

Variable to indicate if usage is inside class scope

Parameters:
  • weight (ansys.api.speos.simulation.v1.simulation_template_pb2.Weight)

  • stable_ctr (bool)

Notes

Do not instantiate this class yourself, use set_weight method available in simulation classes.

Overview#

minimum_energy_percentage

Minimum energy percentage.

Import detail#

from ansys.speos.core.simulation.BaseSimulation import Weight

Property detail#

property Weight.minimum_energy_percentage: float#

Minimum energy percentage.

This property gets or sets the minimum energy percentage used by the weight.

Parameters:
valuefloat

The minimum energy percentage to assign.

Returns:
float

The minimum energy percentage.