Default Transmitter Antenna Gain Model (dra_tagain)
This section describes the functionality and implementation of the default model occupying stage four of the Radio Transceiver Pipeline. This model is named dra_tagain. The source code is provided in the file dra_tagain.ps.c, which resides in the <reldir>/models/std/wireless directory.
Invocation Context
The Radio Transceiver Pipeline determines the gain associated with a packet’s transmitting antenna by invoking the transmitter antenna gain model immediately after completion of the channel match model, provided that the packet was not determined to be ignored. The simulation time at invocation is the start time for the packet transmission.
The result of the transmitter antenna gain model for each packet is a floating point value specifying the gain of the transmitter’s antenna in the direction of the receiver of interest. This result is expressed in decibels (dB) and is expected by the Simulation Kernel in the packet’s OPC_TDA_RA_TX_GAIN transmission data attribute.
Transmitter Antenna Gain Computation
For all transmitted packets, the default transmitter antenna gain model (dra_tagain) computes gain based on the transmitter-to-receiver direction and the pointing direction and pattern of the transmitter’s associated antenna. A special case is made for isotropic (omnidirectional) antennas, for which no computations are needed because the gain will necessarily be 0 dB.