AxiallySymmetricAntenna¶
Package: inet.physicallayer.wireless.common.antenna
compound module AxiallySymmetricAntenna
This antenna model computes the antenna gain from the direction using linear interpolation. The gain parameter contains a sequence of angles [degree] and gains [dB] pairs. The first pair must be at 0 [degree].
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
compound module |
Serves as the base module for antenna models. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
mobilityModule |
string |
The path to the mobility module relative to this module, only used if no mobility submodule is present |
|
numAntennas |
int |
1 |
The number of antennas in the antenna array |
baseGain |
double |
0dB |
|
gains |
string |
“0 0” |
Sequence of angles [degree] in the range (0, 180) and gain [dB] pairs |
axisOfSymmetry |
string |
“x” |
Allows matching the antenna radiation pattern (IAntennaGain) to the visual representation, antenna orientation is determined by the antenna’s mobility model |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
AxiallySymmetricAntenna |
|
display |
i=device/antennatower |
Source code¶
// This antenna model computes the antenna gain from the direction using linear
// interpolation. The gain parameter contains a sequence of angles [degree] and
// gains [dB] pairs. The first pair must be at 0 [degree].
//
module AxiallySymmetricAntenna extends AntennaBase
{
parameters:
double baseGain @unit(dB) = default(0dB);
string gains = default("0 0"); // Sequence of angles [degree] in the range (0, 180) and gain [dB] pairs
string axisOfSymmetry = default("x"); // Allows matching the antenna radiation pattern (IAntennaGain) to the visual representation, antenna orientation is determined by the antenna's mobility model
@class(AxiallySymmetricAntenna);
}
File: src/inet/physicallayer/wireless/common/antenna/AxiallySymmetricAntenna.ned