Ray Tracing for Wireless Communications
Wireless communication systems use radio waves to transmit signals. Propagation modeling enables you to estimate the strength of signals based on system parameters such as frequency, antenna height, terrain properties, and building properties.
Theoretical and empirical models estimate path loss based on range, and are valid only for those environments that resemble the modeling environment. As a result, these models usually do not provide accurate temporal or spatial information. Unlike these models, ray tracing models are specific to the 3-D environment, and are therefore appropriate for scenarios such as urban environments.
For propagation modeling, a ray is an individual radio signal that :
Travels in a straight line through a homogeneous medium.
Obeys the laws of reflection, refraction, and diffraction.
Carries energy. Propagation models treat rays like tubes, where the energy density on the cross section becomes smaller as the ray interacts with the environment.
For a given 3-D environment, ray tracing models use numerical simulations to:
Predict the paths of rays from transmitters to receivers. The models can find many rays from a transmitter to a receiver. The models derive the angle of departure, angle of arrival, and time of arrival from the paths.
Estimate the path loss and phase change for each ray. Total path loss is the sum of interaction losses, free space loss, and, optionally, atmospheric loss.
A ray interacts with the environment in several ways .
Line of sight (LOS)
The ray travels directly from the transmitter to the receiver.
The ray reflects off a surface according to the law of reflection.
The ray refracts as it moves into a new medium, according to the law of refraction.
The ray diffracts off a surface according to the law of diffraction. One ray can spawn many diffracted rays.
The ray interacts with a rough surface such as the ocean or a building facade.
Use these functions to create ray tracing models, predict propagation paths, and calculate path losses and phase shifts.
propagationModel— Create a ray tracing model as a
RayTracingobject. Specify options such as the ray tracing method, the maximum number of reflections and diffractions, and the interaction materials. You can use ray tracing models as inputs when conducing RF analysis, such as when generating coverage maps by using the
coveragefunction or when calculating total received power by using the
raytrace— Display propagation paths (rays) on a map or return propagation paths as
comm.Rayobjects. Each object represents the full path from the transmitter to the receiver, and contains information such as the path loss, phase shift, and types of surface interactions.
raypl— Calculate the path loss and phase shift for a propagation path based on surface materials and antenna polarization types.
For examples that show ray tracing in indoor and urban environments, see Indoor MIMO-OFDM Communication Link Using Ray Tracing and Urban Link and Coverage Analysis Using Ray Tracing, respectively.
Ray Tracing Methods
functions use a ray tracing model that finds LOS and non-line-of-sight (NLOS) paths.
The model finds LOS paths by shooting a ray from the transmitter toward the receiver. If the ray does not interact with a surface before reaching the receiver, then an LOS path exists.
The model finds NLOS paths by using either the shooting and bouncing rays (SBR) method  or the image method. You can specify the method by using the
Choose a method based on the types of interactions you want to model, the computation speed, and the accuracy.
|Method||Interaction Types||Computation Speed||Computation Accuracy|
SBR (the default)
Includes effects from reflection and edge diffraction. Does not include effects from corner diffraction, refraction, or diffuse scattering.
For each path, supports up to ten path reflections and two edge diffractions.
Computational complexity increases linearly with the number of reflections and exponentially with the number of diffractions. The SBR method is generally faster than the image method.
Calculates an approximate number of propagation paths with exact geometric accuracy.
Includes effects from reflection. Does not include effects from diffraction, refraction, or diffuse scattering.
For each path, supports up to two path reflections.
Computational complexity increases exponentially with the number of reflections.
Calculates an exact number of propagation paths with exact geometric accuracy.
When both the image and SBR methods find the same path, the points along the path are the same within a tolerance of machine precision for single-precision floating-point values.
This figure illustrates the SBR method for calculating propagation paths from a transmitter, Tx, to a receiver, Rx.
The SBR method launches many rays from a geodesic sphere centered at Tx. The geodesic sphere enables the model to launch rays that are approximately uniformly spaced.
Then, the method traces every ray from Tx and can model different types of interactions between the rays and surrounding objects, such as reflections, diffractions, refractions, and scattering. Note that the current implementation of the SBR method considers only reflections and edge diffractions.
When a ray hits a flat surface, shown as R, the ray reflects based on the law of reflection.
When a ray hits an edge, shown as D, the ray spawns many diffracted rays based on the law of diffraction . Each diffracted ray has the same angle with the diffracting edge as the incident ray. The diffraction point then becomes a new launching point and the SBR method traces the diffracted rays in the same way as the rays launched from Tx. A continuum of diffracted rays forms a cone around the diffracting edge, which is commonly known as a Keller cone .
For each launched ray, the SBR method surrounds Rx with a sphere, called a reception sphere, with a radius that is proportional to the distance the ray travels and the average number of degrees between the launched rays. If the ray intersects the sphere, then the model considers the ray a valid path from Tx to Rx. The SBR method corrects the valid paths so that the paths have exact geometric accuracy.
When you increase the number of rays by decreasing the number of degrees between rays, the reception sphere becomes smaller. As a result, in some cases, launching more rays results in fewer or different paths. This situation is more likely to occur with custom 3-D scenarios created from STL files or triangulation objects than with scenarios that are automatically generated from OpenStreetMap® buildings and terrain data.
The SBR method finds paths using double-precision floating-point computations.
This figure illustrates the image method for calculating the propagation path of a single reflection ray for the same transmitter and receiver as the SBR method. The image method locates the image of Tx with respect to a planar reflection surface, Tx'. Then, the method connects Tx' and Rx with a line segment. If the line segment intersects the planar reflection surface, shown as R in the figure, then a valid path from Tx to Rx exists. The method determines paths with multiple reflections by recursively extending these steps. The image method finds paths using single-precision floating-point computations.
RayTracing objects calculate reflection and diffraction losses by
tracking the horizontal and vertical polarizations of signals through the
propagation path. Total power loss is the sum of free space loss, reflection loss,
and diffraction loss.
Effect of Surface Materials
When a ray interacts with a surface, the surface material impacts the reflection losses.
The ray tracing model incorporates building and surface materials into the propagation loss calculations by using the complex relative permittivity of the surface, εr. The ITU-R P.2040-1  and ITU-R P.527  recommendations include methods, equations, and values used to calculate εr for a range of frequencies.
The equations for εr are:
εr' is the real relative permittivity.
σ is the conductivity in S/m.
ε0 is the permittivity of free space (electric constant).
f is the frequency in Hz.
For building materials, the ray tracing model calculates εr' and σ as:
where a, b, c, and d are constants determined by the surface material. For readability, this table shows the frequency range in GHz.
|Material Class||Real Part of Relative Permittivity||Conductivity (S/m)||Frequency Range (GHz)|
Vacuum (~ air)
Very dry ground
[1, 10] only(a)
Medium dry ground
[1, 10] only(a)
[1, 10] only(a)
|Note (a): For the three ground types (very dry, medium dry, and wet), the noted frequency limits cannot be exceeded.|
For earth surfaces such as water, sea water, dry or wet ice, dry or wet soil, and vegetation, the ray tracing model calculates εr using the methods and equations presented in ITU-R P.527 .
This image shows a reflection path from a transmitter site tx to a receiver site rx.
The model determines polarization and reflection loss using these steps.
Track the propagation of the ray in 3-D space by calculating the propagation matrix P. The matrix is a repeating product, where i is the number of reflection points.
For each reflection, calculate Pi by transforming the global coordinates of the incident electromagnetic field into the local coordinates of the reflection plane, multiplying the result by a reflection coefficient matrix, and transforming the coordinates back into the original global coordinate system . The equations for Pi and P0 are:
s, p, and k form a basis for the plane of incidence (the plane created by the incident ray and the surface normal of the reflection plane). s and p are perpendicular and parallel, respectively, to the plane of incidence.
kin and kout are the directions (in global coordinates) of the incident and exiting rays, respectively.
sin and sout are the directions (in global coordinates) of the horizontal polarizations for the incident and exiting rays, respectively.
pin and pout are the directions (in global coordinates) of the vertical polarizations for the incident and exiting rays, respectively.
RH and RV are the Fresnel reflection coefficients for the horizontal and vertical polarizations, respectively. α is the incident angle of the ray and εr is the complex relative permittivity of the material.
Project the propagation matrix P into a 2-by-2 polarization matrix R. The model rotates the coordinate systems for the transmitter and receiver so that they are in global coordinates.
Hrx and Vrx are the directions (in global coordinates) of the horizontal (Eθ) and vertical (Eϕ) polarizations, respectively, for the receiver.
Hin and Vin are the directions (in global coordinates) of the propagated horizontal and vertical polarizations, respectively.
Vtx is the direction (in global coordinates) of the nominal vertical polarization for the ray departing the transmitter.
ktx is the direction (in global coordinates) of the ray departing the transmitter.
Specify the normalized horizontal and vertical polarizations of the electric field at the transmitter and receiver by using the 2-by-1 Jones polarization vectors Jtx and Jrx, respectively. If either the transmitter or receiver are unpolarized, then the model assumes .
Calculate the polarization and reflection loss IL by combining R, Jtx, and Jrx.
The model calculates diffraction loss by using computations based on the Uniform Theory of Diffraction (UTD) .
For a first order signal diffraction, the equation for path loss, PLD, is:
JVrx and JVtx are polarization vectors for the receiver and transmitter, respectively, specified as Jones vectors.
Hdiff1 is the diffraction matrix.
The equation for the diffraction matrix contains three terms.
The first term is a geometric coupling matrix that rotates the polarization vector from the basis of the ray coordinates to the basis of the edge-fixed incidence plane. The edge-fixed incidence plane contains the ray and the edge.
The second term is a polarization matrix containing diffraction coefficients for the local horizontal and vertical polarizations, D⟂ and D∥, and an amplitude scaling factor. For more information about the diffraction coefficients and amplitude scaling factor, see  and .
The third term is a geometric coupling matrix that rotates the polarization vector from the basis of the edge-fixed incidence plane to the basis of the edge-fixed diffraction plane. The edge-fixed diffraction plane contains the diffracted ray and the edge.
 Yun, Zhengqing, and Magdy F. Iskander. “Ray Tracing for Radio Propagation Modeling: Principles and Applications.” IEEE Access 3 (2015): 1089–1100. https://doi.org/10.1109/ACCESS.2015.2453991.
 Schaubach, K.R., N.J. Davis, and T.S. Rappaport. “A Ray Tracing Method for Predicting Path Loss and Delay Spread in Microcellular Environments.” In [1992 Proceedings] Vehicular Technology Society 42nd VTS Conference - Frontiers of Technology, 932–35. Denver, CO, USA: IEEE, 1992. https://doi.org/10.1109/VETEC.1992.245274.
 International Telecommunications Union Radiocommunication Sector. Propagation by diffraction. Recommendation P.526-15. ITU-R, approved October 21, 2019. https://www.itu.int/rec/R-REC-P.526/en.
 Keller, Joseph B. “Geometrical Theory of Diffraction.” Journal of the Optical Society of America 52, no. 2 (February 1, 1962): 116. https://doi.org/10.1364/JOSA.52.000116.
 International Telecommunications Union Radiocommunication Sector. Effects of building materials and structures on radiowave propagation above about 100MHz. Recommendation P.2040-1. ITU-R, approved July 29, 2015. https://www.itu.int/rec/R-REC-P.2040/en.
 International Telecommunications Union Radiocommunication Sector. Electrical characteristics of the surface of the Earth. Recommendation P.527-5. ITU-R, approved August 14, 2019. https://www.itu.int/rec/R-REC-P.527/en.
 Chipman, Russell A., Garam Young, and Wai Sze Tiffany Lam. "Fresnel Equations." In Polarized Light and Optical Systems. Optical Sciences and Applications of Light. Boca Raton: Taylor & Francis, CRC Press, 2019.
 McNamara, D. A., C. W. I. Pistorius, and J. A. G. Malherbe. Introduction to the Uniform Geometrical Theory of Diffraction. Boston: Artech House, 1990.