22 #include "ns3/double.h"
45 .AddConstructor<UanPropModelThorp> ()
46 .AddAttribute (
"SpreadCoef",
47 "Spreading coefficient used in calculation of Thorp's approximation.",
50 MakeDoubleChecker<double> ())
87 double fsq = freqKhz * freqKhz;
92 atten = 0.11 * fsq / (1 + fsq) + 44 * fsq / (4100 + fsq)
93 + 2.75 * 0.0001 * fsq + 0.003;
97 atten = 0.002 + 0.11 * (freqKhz / (1 + freqKhz)) + 0.011 * freqKhz;
double GetAttenDbKm(double freqKhz)
Get the attenuation in dB / km.
keep track of time values and allow control of global simulation resolution
double GetDistanceFrom(Ptr< const MobilityModel > position) const
virtual Time GetDelay(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode)
Finds propagation delay between nodes a and b.
double GetAttenDbKyd(double freqKhz)
Get the attenuation in dB / 1000 yards.
static UanPdp CreateImpulsePdp(void)
Get a unit impulse PDP at time 0.
static TypeId GetTypeId(void)
Register this type.
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
double m_SpreadCoef
Spreading coefficient used in calculation of Thorp's approximation.
NS_LOG_COMPONENT_DEFINE("UanPropModelThorp")
The power delay profile returned by propagation models.
Abstraction of packet modulation information.
uint32_t GetCenterFreqHz(void) const
Get the transmission center frequency.
virtual double GetPathLossDb(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode)
Computes pathloss between nodes a and b.
UanPropModelThorp()
Default constructor.
virtual ~UanPropModelThorp()
Destructor.
a base class which provides memory management and object aggregation
Hold a floating point type.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
virtual UanPdp GetPdp(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode)
Get the PDP for the path between two nodes.