Contains the routines that handle reflection, and refraction via the Fresnel equations.
calculates the fresnel coefficents
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(vector), | intent(in) | :: | I |
incident vector |
||
type(vector), | intent(in) | :: | N |
Normal vector |
||
real(kind=wp), | intent(in) | :: | n1 |
reffractive indicies |
||
real(kind=wp), | intent(in) | :: | n2 |
reffractive indicies |
wrapper routine for fresnel calculation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(vector), | intent(inout) | :: | I |
incident vector |
||
type(vector), | intent(inout) | :: | N |
normal vector |
||
real(kind=wp), | intent(in) | :: | n1 |
refractive indices |
||
real(kind=wp), | intent(in) | :: | n2 |
refractive indices |
||
logical, | intent(out) | :: | rflag |
reflection flag |
||
real(kind=wp), | intent(out) | :: | Ri |