ScatteringSurfaceSample#
- class ansys.speos.core.input_files.scattering_surface.ScatteringSurfaceSample(specular_reflection=100.0, specular_transmission=0.0, lambertian_reflection=0.0, lambertian_transmission=0.0, gaussian_reflection=0.0, gaussian_transmission=0.0, gaussian_fwhm_incidence_reflection=0.0, gaussian_fwhm_incidence_transmission=0.0, gaussian_fwhm_perpendicular_reflection=0.0, gaussian_fwhm_perpendicular_transmission=0.0)#
Bases:
ansys.speos.core.input_files._base._ValueComparableScattering contributions of a surface at one angle of incidence and one wavelength.
Every contribution is a percentage of the incident light. What is left once the six contributions are summed is absorbed, see
ScatteringSurfaceSample.absorption. Called without arguments, the constructor gives the sample of a new file in the Speos default scattering surface: a perfect specular reflector.- Parameters:
- specular_reflection
float,optional Specularly reflected part, in percent. By default,
100.0.- specular_transmission
float,optional Specularly transmitted part, in percent. By default,
0.0.- lambertian_reflection
float,optional Lambertian reflected part, in percent. By default,
0.0.- lambertian_transmission
float,optional Lambertian transmitted part, in percent. By default,
0.0.- gaussian_reflection
float,optional Gaussian reflected part, in percent. By default,
0.0.- gaussian_transmission
float,optional Gaussian transmitted part, in percent. By default,
0.0.- gaussian_fwhm_incidence_reflection
float,optional Full width at half maximum of the reflected Gaussian lobe in the incidence plane, in degrees. By default,
0.0.- gaussian_fwhm_incidence_transmission
float,optional Full width at half maximum of the transmitted Gaussian lobe in the incidence plane, in degrees. By default,
0.0.- gaussian_fwhm_perpendicular_reflection
float,optional Full width at half maximum of the reflected Gaussian lobe in the perpendicular plane, in degrees. By default,
0.0.- gaussian_fwhm_perpendicular_transmission
float,optional Full width at half maximum of the transmitted Gaussian lobe in the perpendicular plane, in degrees. By default,
0.0.
- specular_reflection
- Raises:
ValueErrorIf a percentage is outside 0 to 100 or a Gaussian width is outside 0 to 90 degrees.
- Warns:
UserWarningIf computed absorption is negative, excluding rounding noise within 1e-9 percent.
- Parameters:
specular_reflection (float)
specular_transmission (float)
lambertian_reflection (float)
lambertian_transmission (float)
gaussian_reflection (float)
gaussian_transmission (float)
gaussian_fwhm_incidence_reflection (float)
gaussian_fwhm_incidence_transmission (float)
gaussian_fwhm_perpendicular_reflection (float)
gaussian_fwhm_perpendicular_transmission (float)
Notes
Construction and property assignments validate before storing a value. Negative absorption from measurement or rounding errors is preserved with a warning. Set
specular_reflectionexplicitly when giving other contributions, since its default already reflects all the light.
Overview#
Check the contributions of the sample. |
Specularly reflected part, in percent. |
|
Specularly transmitted part, in percent. |
|
Lambertian reflected part, in percent. |
|
Lambertian transmitted part, in percent. |
|
Gaussian reflected part, in percent. |
|
Gaussian transmitted part, in percent. |
|
Reflected Gaussian FWHM in the incidence plane, in degrees. |
|
Transmitted Gaussian FWHM in the incidence plane, in degrees. |
|
Reflected Gaussian FWHM in the perpendicular plane, in degrees. |
|
Transmitted Gaussian FWHM in the perpendicular plane, in degrees. |
|
Absorbed part of the incident light, in percent. |
Import detail#
from ansys.speos.core.input_files.scattering_surface import ScatteringSurfaceSample
Property detail#
- property ScatteringSurfaceSample.specular_transmission: float#
Specularly transmitted part, in percent.
- property ScatteringSurfaceSample.lambertian_reflection: float#
Lambertian reflected part, in percent.
- property ScatteringSurfaceSample.lambertian_transmission: float#
Lambertian transmitted part, in percent.
- property ScatteringSurfaceSample.gaussian_transmission: float#
Gaussian transmitted part, in percent.
- property ScatteringSurfaceSample.gaussian_fwhm_incidence_reflection: float#
Reflected Gaussian FWHM in the incidence plane, in degrees.
- property ScatteringSurfaceSample.gaussian_fwhm_incidence_transmission: float#
Transmitted Gaussian FWHM in the incidence plane, in degrees.
- property ScatteringSurfaceSample.gaussian_fwhm_perpendicular_reflection: float#
Reflected Gaussian FWHM in the perpendicular plane, in degrees.
Method detail#
- ScatteringSurfaceSample.validate()#
Check the contributions of the sample.
- Raises:
ValueErrorIf a contribution is outside the 0 to 100 range, a full width at half maximum is outside the 0 to 90 degrees range.
- Warns:
UserWarningIf computed absorption is negative, excluding rounding noise within 1e-9 percent.