Bugzilla – Bug 1526
Wrong calculation of pathloss within UanPropModelThorp::GetPathLossDb (...)
Last modified: 2012-11-28 00:18:20 UTC
Within this function the distance is obtained in meters, but a piece of the calculation should be done in kilometers, as hinted by the function GetAttenDbKm (). ----------------- HINTED SOLUTION: -------------------- double UanPropModelThorp::GetPathLossDb (Ptr<MobilityModel> a, Ptr<MobilityModel> b, UanTxMode mode) { double dist = a->GetDistanceFrom (b); return m_SpreadCoef * 10.0 * std::log10 (dist) + dist/1000.0 * GetAttenDbKm (mode.GetCenterFreqHz () / 1000.0); }
I set the importance to blocker since this bug could invalidate any paper/research done with UAN.
Fixed: changeset 9129
*** Bug 1538 has been marked as a duplicate of this bug. ***