Bug 1526

Summary: Wrong calculation of pathloss within UanPropModelThorp::GetPathLossDb (...)
Product: ns-3 Reporter: Federico Guerra <fedwar82>
Component: uanAssignee: Andrea Sacco <andrea.sacco85>
Status: RESOLVED FIXED    
Severity: blocker CC: ns-bugs, tamoghna.ojha
Priority: P5    
Version: ns-3.15   
Hardware: All   
OS: All   

Description Federico Guerra 2012-11-07 06:08: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);
}
Comment 1 Federico Guerra 2012-11-07 06:12:14 UTC
I set the importance to blocker since this bug could invalidate any paper/research done with UAN.
Comment 2 Andrea Sacco 2012-11-09 04:24:13 UTC
Fixed: changeset 9129
Comment 3 Tom Henderson 2012-11-28 00:18:20 UTC
*** Bug 1538 has been marked as a duplicate of this bug. ***