VolumeScatteringUserDefined#
- class ansys.speos.core.input_files.material.VolumeScatteringUserDefined(wavelengths=(), angles=_DEFAULT_PHASE_ANGLES, values=_DEFAULT_PHASE_VALUES)#
Bases:
ansys.speos.core.input_files._base._ValueComparableScattering phase function given as a scattering efficiency per angle.
- Parameters:
- wavelengths
Sequence[float],optional Wavelengths the efficiency is given at, in nm. Leave it empty when the phase function does not depend on the wavelength, in which case each row of
valuesholds a single entry. By default,[].- angles
Sequence[float],optional Scattering angles theta, in degrees. By default,
[0.0, 90.0, 180.0].- values
Sequence[Sequence[float]],optional Relative scattering intensity, one row per angle and one column per wavelength. By default,
[[100.0], [100.0], [100.0]], an isotropic phase function.
- wavelengths
- Parameters:
Overview#
Check the phase function. |
Spectral wavelengths in nm, returned as a copy. |
|
Scattering angles in degrees, returned as a copy. |
|
Relative intensities, returned with copied row containers. |
Identifier of the model in a |
|
Header of the scattering block holding the model. |
Import detail#
from ansys.speos.core.input_files.material import VolumeScatteringUserDefined
Property detail#
- property VolumeScatteringUserDefined.wavelengths: List[float]#
Spectral wavelengths in nm, returned as a copy.
- Parameters:
- values
Sequence[float] New wavelengths the efficiency is given at, in nm. Leave it empty when the phase function does not depend on the wavelength, in which case each row of
valuesholds a single entry.
- values
- Returns:
List[float]Empty for a nonspectral function, otherwise at least two wavelengths.
- property VolumeScatteringUserDefined.angles: List[float]#
Scattering angles in degrees, returned as a copy.
Attribute detail#
Method detail#
- VolumeScatteringUserDefined.validate()#
Check the phase function.
- Raises:
ValueErrorIf no angle is given, or the value grid does not match the angles and the wavelengths.