A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
three-gpp-propagation-loss-model.cc File Reference
#include "three-gpp-propagation-loss-model.h"
#include "channel-condition-model.h"
#include "spatial-gaussian-field.h"
#include "ns3/boolean.h"
#include "ns3/double.h"
#include "ns3/geocentric-constant-position-mobility-model.h"
#include "ns3/log.h"
#include "ns3/mobility-model.h"
#include "ns3/node.h"
#include "ns3/pointer.h"
#include "ns3/simulator.h"
#include <cmath>
#include <cstdint>
Include dependency graph for three-gpp-propagation-loss-model.cc:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{three-gpp-propagation-loss-model.cc}
namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.

Enumerations

enum  anonymous_namespace{three-gpp-propagation-loss-model.cc}::O2iPenetrationFieldKey : uint64_t { anonymous_namespace{three-gpp-propagation-loss-model.cc}::DISTANCE_2D_IN_1 = 0 , anonymous_namespace{three-gpp-propagation-loss-model.cc}::DISTANCE_2D_IN_2 = 1 , anonymous_namespace{three-gpp-propagation-loss-model.cc}::DEVIATION = 2 }
 Field keys of kO2iPenetrationField. More...
enum  anonymous_namespace{three-gpp-propagation-loss-model.cc}::SFCL_params {
  anonymous_namespace{three-gpp-propagation-loss-model.cc}::S_LOS_sigF , anonymous_namespace{three-gpp-propagation-loss-model.cc}::S_NLOS_sigF , anonymous_namespace{three-gpp-propagation-loss-model.cc}::S_NLOS_CL , anonymous_namespace{three-gpp-propagation-loss-model.cc}::Ka_LOS_sigF ,
  anonymous_namespace{three-gpp-propagation-loss-model.cc}::Ka_NLOS_sigF , anonymous_namespace{three-gpp-propagation-loss-model.cc}::Ka_NLOS_CL
}
 The enumerator used for code clarity when performing parameter assignment in the GetLoss Methods. More...

Functions

double anonymous_namespace{three-gpp-propagation-loss-model.cc}::ComputeAtmosphericAbsorptionLoss (double freq, double elevAngle)
 Computes the atmospheric absorption loss using the formula described in 3GPP TR 38.811, Sec 6.6.4.
double anonymous_namespace{three-gpp-propagation-loss-model.cc}::ComputeClutterLoss (double freq, const std::map< int, std::vector< float > > *sfcl, double elevAngleQuantized)
 Computes the clutter loss using the formula described in 3GPP TR 38.811, Sec 6.6.6.1-4 and 6.6.6.2, respectively.
double anonymous_namespace{three-gpp-propagation-loss-model.cc}::ComputeIonosphericPlusTroposphericScintillationLoss (double freq, double elevAngleQuantized, bool ionoScintLossEnabled, bool tropoScintLossEnabled)
 Computes the ionospheric plus tropospheric scintillation loss using the formulas described in 3GPP TR 38.811, Sec 6.6.6.1-4 and 6.6.6.2, respectively.
double anonymous_namespace{three-gpp-propagation-loss-model.cc}::ComputeNtnPathloss (double freq, double dist3d)
 Computes the free-space path loss using the formula described in 3GPP TR 38.811, Table 6.6.2.
std::tuple< double, double, double, double > anonymous_namespace{three-gpp-propagation-loss-model.cc}::GetBsUtDistancesAndHeights (ns3::Ptr< const ns3::MobilityModel > a, ns3::Ptr< const ns3::MobilityModel > b)
 Get the base station and user terminal relative distances and heights.
std::tuple< double, double > anonymous_namespace{three-gpp-propagation-loss-model.cc}::GetBsUtHeightsUmiStreetCanyon (double heightA, double heightB)
 Get the base station and user terminal heights for the UmiStreetCanyon scenario.
double anonymous_namespace{three-gpp-propagation-loss-model.cc}::O2iHighLossTw (double frequency)
 High-loss O2I penetration loss through the external wall, TR 38.901 Table 7.4.3-2.
double anonymous_namespace{three-gpp-propagation-loss-model.cc}::O2iLowLossTw (double frequency)
 Low-loss O2I penetration loss through the external wall, TR 38.901 Table 7.4.3-2.
double anonymous_namespace{three-gpp-propagation-loss-model.cc}::SampleO2iDistance2dIn (const ns3::Vector &position, double maxDistance, bool minOfTwo)
 Sample the spatially consistent O2I 2D-in distance at a terminal position (TR 38.901 Sec.

Variables

const double anonymous_namespace{three-gpp-propagation-loss-model.cc}::atmosphericAbsorption [101]
 Array containing the attenuation given by atmospheric absorption.
constexpr double anonymous_namespace{three-gpp-propagation-loss-model.cc}::kDistance2dInCorrelationDistance = 25.0
 Correlation distance of the uniform variables of the 2D-in distance, TR 38.901 Sec. 7.6.3.3.
constexpr double anonymous_namespace{three-gpp-propagation-loss-model.cc}::kO2iHighLossStd = 6.5
 Standard deviation in dB of the high-loss penetration loss, TR 38.901 Table 7.4.3-2.
constexpr double anonymous_namespace{three-gpp-propagation-loss-model.cc}::kO2iLowLossStd = 4.4
 Standard deviation in dB of the low-loss penetration loss, TR 38.901 Table 7.4.3-2.
const ns3::SpatialGaussianField anonymous_namespace{three-gpp-propagation-loss-model.cc}::kO2iPenetrationField
 Indoor-distance and penetration-loss-deviation random fields, see SpatialGaussianField.
constexpr double anonymous_namespace{three-gpp-propagation-loss-model.cc}::kPenetrationDeviationCorrelationDistance = 10.0
 Correlation distance of the penetration loss deviation, TR 38.901 Sec. 7.6.3.3.
const ns3::SpatialGaussianField anonymous_namespace{three-gpp-propagation-loss-model.cc}::kShadowFadingField {ns3::SpatialGaussianField::Salt::SHADOW_FADING}
 Shadow-fading random fields, one per (site, condition), see SpatialGaussianField.
constexpr double anonymous_namespace{three-gpp-propagation-loss-model.cc}::M_C = 299792458.0
 speed of light in vacuum [m/s] (Issue 1092)
constexpr double anonymous_namespace{three-gpp-propagation-loss-model.cc}::OUT_OF_DOMAIN_LOSS_DB = 500.0
 Finite, large loss returned for links outside the domain of the TR 38.811 model (non-positive elevation angles), in dB.
const std::map< int, std::vector< float > > anonymous_namespace{three-gpp-propagation-loss-model.cc}::SFCL_DenseUrban
 The map containing the 3GPP value regarding Shadow Fading and Clutter Loss tables for the NTN Dense Urban scenario.
const std::map< int, std::vector< float > > anonymous_namespace{three-gpp-propagation-loss-model.cc}::SFCL_SuburbanRural
 The map containing the 3GPP value regarding Shadow Fading and Clutter Loss tables for the NTN Suburban and Rural scenarios.
const std::map< int, std::vector< float > > anonymous_namespace{three-gpp-propagation-loss-model.cc}::SFCL_Urban
 The map containing the 3GPP value regarding Shadow Fading and Clutter Loss tables for the NTN Urban scenario.
const std::map< int, float > anonymous_namespace{three-gpp-propagation-loss-model.cc}::troposphericScintillationLoss
 Map containing the Tropospheric attenuation in dB with 99% probability at 20 GHz in Toulouse used for tropospheric scintillation losses.