5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
rem-beam-example.cc File Reference

Rem beam configuration example. More...

#include "ns3/antenna-module.h"
#include "ns3/config-store.h"
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/log.h"
#include "ns3/mobility-module.h"
#include "ns3/network-module.h"
#include "ns3/nr-helper.h"
#include "ns3/nr-module.h"
+ Include dependency graph for rem-beam-example.cc:

Go to the source code of this file.

Detailed Description

Rem beam configuration example.

This is a simple example which can be used to test different configurations of gNB antenna array parameters and visualize its radiation through REM map. Parameters that can be provided as input through the command line to configure antenna array and its beamforming vector are:

  • numRowsGnb (number of rows of antenna array)
  • numColumnsGnb (number of columns of antenna array)
  • sector (sector with which will be created the beamforming vector, see CreateDirectionalBfv function)
  • theta (elevation that will be used to configure the beamforming vector.

The rest of parameters are for REM map configuration, such as parameters for resolution and REM area.

./ns3 run "rem-beam-example"

The output of this example are REM csv files from which REM figures can be generated with the following command:

$ gnuplot -p nr-rem-{simTag}-gnbs.txt nr-rem-{simTag}-ues.txt nr-rem-{simTag}-buildings.txt
*nr-rem-{simTag}-plot-rem.gnuplot

If no simTag is specified then to plot run the following command:

gnuplot -p nr-rem--gnbs.txt nr-rem--ues.txt nr-rem--buildings.txt nr-rem--plot-rem.gnuplot

The following files will be generated (in the root project folder if not specified differently): nr-rem–sinr.png, nr-rem–snr.png and nr-rem–ipsd.png

Definition in file rem-beam-example.cc.