5G-LENA nr-v3.1-14-g738b08bc
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
scenario-parameters.cc
1// Copyright (c) 2019 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
2//
3// SPDX-License-Identifier: GPL-2.0-only
4
5#include "scenario-parameters.h"
6
7namespace ns3
8{
9
11
15
16void
21
22void
27
28uint32_t
30{
31 return static_cast<uint32_t>(m_sectorization);
32}
33
34void
39
40void
42{
43 SetSectorization(static_cast<SiteSectorizationType>(numSectors));
44}
45
46void
48{
49 if (scenario == "UMa")
50 {
52 }
53 else if (scenario == "UMi")
54 {
56 }
57 else if (scenario == "RMa")
58 {
60 }
61 else
62 {
63 NS_ABORT_MSG("Unrecognized scenario: " << scenario);
64 }
65}
66
67void
77
78void
80{
81 m_isd = 1732;
82 m_bsHeight = 30.0;
83 m_utHeight = 1.5;
85 m_minBsUtDistance = 30.203; // minimum 2D distance is 10 meters considering UE height of 1.5 m
86 m_antennaOffset = 1.0;
87}
88
89void
99
100void
102{
103 m_isd = 7000;
104 m_bsHeight = 45.0;
105 m_utHeight = 1.5;
107 m_minBsUtDistance = 44.63; // minimum 2D distance is 10 meters considering UE height of 1.5 m
108 m_antennaOffset = 1.0;
109}
110
111} // namespace ns3
Basic simulation scenario parameters.
void SetUMiParameters()
Sets the Urban Micro (UMi) scenario parameters.
void SetUMaParameters()
Sets the Urban Macro (UMa) scenario parameters.
void SetBsHeight(double h)
SetGnbHeight.
double m_isd
Inter-site distance (ISD) in meters.
uint32_t GetNumSectorsPerSite() const
Gets the number of sectors per site.
void SetUtHeight(double h)
SetUeHeight.
SiteSectorizationType m_sectorization
Number of sectors per site.
double m_bsHeight
Height of gNB nodes.
void SetRMaParameters()
Sets rural Macro scenario parameters.
virtual ~ScenarioParameters()
~ScenarioParameters
void SetSectorization(SiteSectorizationType numSectors)
Sets the number of sectors of every site.
double m_minBsUtDistance
Minimum distance between BS and UT in meters.
SiteSectorizationType
Type of site sectorization.
@ TRIPLE
Site with 3 120ยบ-width sectors.
void SetScenarioParameters(const std::string &scenario)
Sets parameters to the specified scenario.
double m_utHeight
Height of UE nodes.
double m_antennaOffset
Cell antenna offset in meters w.r.t. site location.