photon_properties command
Purpose
Command for defining additional photon properties for the according custom material type (examples).
Warning
GPU support for this command has not been tested and may not work as expected.Syntax
photon_properties keyword value
With the following keyword argument pairs:
Keywords |
Description |
|---|---|
minimum_photon_energy |
the energy below which photons are deleted
default: 1e-8; units: [energy]
|
optical_density |
the optical density or refractive index of the medium filling the simulation domain
default: 1, i.e. air; units: [dimensionless]
|
the reflection law to use, either
Schlick or Fresnel or Fresnel_unpolarizeddefault:
Schlick |
Examples
photon_properties reflection_law Fresnel minimum_photon_energy 1e-16
Description
Customize photon properties like reflection law, etc.
Note
This command is not required. If omitted the default values will be used.
The reflection law calculates the energy retained by the photon after reflection on
mesh or particle surfaces. In terms of surface reflectivity as a function of incident
angle
the three availble options read:
Schlick
FresnelDepending on the contributions in (subscript
) and normal to
(subscript
) the plane of incidence:
with
and
the polarization split into
its component in and normal to the plane of incidence, respectively.Fresnel_unpolarizedThis reflection law works in the same manner as theFresnellaw but calculates the reflectivity without considering the polarization:
In the above equations
is the refractive index of the medium set by
the optical_density keyword and
that of the wall material set by
that material’s refractiveIndex property.
Restrictions
Must be called after setting up the particle_contact_model command.
Default
reflection_law :
Schlickoptical_density : 1.
minimum_photon_energy : 1e-8