A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
three-gpp-two-ray-channel-calibration.cc File Reference
#include <ns3/command-line.h>
#include <ns3/core-module.h>
#include <ns3/double.h>
#include <ns3/isotropic-antenna-model.h>
#include <ns3/mobility-helper.h>
#include <ns3/node-container.h>
#include <ns3/object-factory.h>
#include <ns3/pointer.h>
#include <ns3/string.h>
#include <ns3/three-gpp-channel-model.h>
#include <ns3/three-gpp-propagation-loss-model.h>
#include <ns3/three-gpp-spectrum-propagation-loss-model.h>
#include <ns3/two-ray-spectrum-propagation-loss-model.h>
#include <ns3/uinteger.h>
#include <ns3/uniform-planar-array.h>
+ Include dependency graph for three-gpp-two-ray-channel-calibration.cc:

Go to the source code of this file.

Functions

double ComputeEndToEndGain (std::string cond, std::string scen, double fc, Ptr< Node > a, Ptr< Node > b, Ptr< PhasedArrayModel > aArray, Ptr< PhasedArrayModel > bArray)
 
double ComputePowerSpectralDensityOverallPower (Ptr< const SpectrumValue > psd)
 
Ptr< SpectrumValueCreateTxPowerSpectralDensity (double fc)
 
void LogEndToEndGain (std::string cond, std::string scen, double fc, long int seed, double gain)
 

Variables

constexpr double BW = 200e6
 
constexpr double FC_STEP = 5e9
 
const Ptr< OutputStreamWrapperg_outStream
 
const std::vector< std::string > LOS_CONDITIONS
 
constexpr double MAX_FC = 100e9
 
constexpr double MIN_FC = 500e6
 
constexpr double RB_WIDTH = 60e3
 
const std::vector< std::string > THREE_GPP_SCENARIOS
 

Function Documentation

◆ ComputeEndToEndGain()

double ComputeEndToEndGain ( std::string cond,
std::string scen,
double fc,
Ptr< Node > a,
Ptr< Node > b,
Ptr< PhasedArrayModel > aArray,
Ptr< PhasedArrayModel > bArray )

Definition at line 112 of file three-gpp-two-ray-channel-calibration.cc.

References ComputePowerSpectralDensityOverallPower(), ns3::Create(), ns3::CreateObject(), CreateTxPowerSpectralDensity(), and NS_ABORT_MSG.

+ Here is the call graph for this function:

◆ ComputePowerSpectralDensityOverallPower()

double ComputePowerSpectralDensityOverallPower ( Ptr< const SpectrumValue > psd)

Definition at line 69 of file three-gpp-two-ray-channel-calibration.cc.

References ns3::Integral().

Referenced by ComputeEndToEndGain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateTxPowerSpectralDensity()

Ptr< SpectrumValue > CreateTxPowerSpectralDensity ( double fc)

Definition at line 75 of file three-gpp-two-ray-channel-calibration.cc.

References BW, ns3::Create(), ns3::BandInfo::fc, ns3::BandInfo::fh, ns3::BandInfo::fl, and RB_WIDTH.

Referenced by ComputeEndToEndGain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LogEndToEndGain()

void LogEndToEndGain ( std::string cond,
std::string scen,
double fc,
long int seed,
double gain )

Definition at line 62 of file three-gpp-two-ray-channel-calibration.cc.

References g_outStream.

Variable Documentation

◆ BW

◆ FC_STEP

double FC_STEP = 5e9
constexpr

Definition at line 30 of file three-gpp-two-ray-channel-calibration.cc.

◆ g_outStream

const Ptr<OutputStreamWrapper> g_outStream
Initial value:
=
Create<OutputStreamWrapper>("two-ray-to-three-gpp-calibration.csv", std::ios::out)
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Definition ptr.h:436

Definition at line 58 of file three-gpp-two-ray-channel-calibration.cc.

Referenced by LogEndToEndGain().

◆ LOS_CONDITIONS

const std::vector<std::string> LOS_CONDITIONS
Initial value:
{
"LOS",
"NLOS",
}

Definition at line 45 of file three-gpp-two-ray-channel-calibration.cc.

◆ MAX_FC

double MAX_FC = 100e9
constexpr

Definition at line 36 of file three-gpp-two-ray-channel-calibration.cc.

◆ MIN_FC

double MIN_FC = 500e6
constexpr

Definition at line 33 of file three-gpp-two-ray-channel-calibration.cc.

◆ RB_WIDTH

double RB_WIDTH = 60e3
constexpr

◆ THREE_GPP_SCENARIOS

const std::vector<std::string> THREE_GPP_SCENARIOS
Initial value:
{
"RMa",
"UMa",
"UMi-StreetCanyon",
"InH-OfficeOpen",
"InH-OfficeMixed",
}

Definition at line 50 of file three-gpp-two-ray-channel-calibration.cc.