You are on page 1of 5

SAHIL HAMBIRE

22
LAB 09

AIM :- To Implement Outdoor Models for Path Loss Estimation

Problem 1
Implement following outdoor models for path loss estimation if distance d is varied from 1 to 20
Km in step size of 1Km
f-center frequency in Hz (1500-2000MHz)
f1-center frequency1 in Hz (1800MHz)
hb- base station height (upto 50)
hm- mobile station height (upto 5)
a = 3.2log(11.75hm)^2 - 4.97 a
hm= (1.1log(fc)-0.7)hm-(1.56log(fc)-0.8)
'IMT 2000 model'
'Cost 231 model suburban area'
'Cost 231 model urban area'
And plot graphs.

Code
import numpy as np
import math as m
from plotly.subplots import make_subplots
import plotly.graph_objects as go
f = int(input("Enter the center frequency: "))
f1 = int(input("Enter the center frequency 1: "))
d = np.arange(1,21,1)
hm = 5
hb = 50
a = 3.2 * np.log(d) + 20 * np.log(f)
SAHIL HAMBIRE
22
LAB 09

pl = 32.4 + 20 * np.log(d) + 20 * np.log(f)

pl2=46.3+(33.9*np.log(f1)-(13.82*np.log(hb)-(a*hm)+(44.9-6.55*np.log(hb)*np.log(d))))
pl3=46.3+(33.9*np.log(f1)-(13.82*np.log(hb)-(a*hm)+(44.9-6.55*np.log(hb)*np.log(d))))
fig = make_subplots(
rows=1, cols=3, subplot_titles=("IMT 2000 Model", "Cost 231 Model Suburban Area", "Cost
231 Model Urban Area")
)
fig.add_trace(go.Scatter(x=d, y=pl), row=1, col=1)
fig.add_trace(go.Scatter(x=d, y=pl2), row=1, col=2)
fig.add_trace(go.Scatter(x=d, y=pl3), row=1, col=3)
fig.update_xaxes(title_text="Distance in m", row=1, col=1)
fig.update_xaxes(title_text="Distance in m", row=1, col=2)
fig.update_xaxes(title_text="Distance in m", row =1, col=3)

fig.update_yaxes(title_text="Path loss in dB", row=1, col=1)


fig.update_yaxes(title_text="Path loss in dB", row=1, col=2)
fig.update_yaxes(title_text="Path loss in dB", row=1, col=3)

fig.update_layout(title_text="Outdoor Model for Path Loss Estimation using IMT 2000 and Cost
231 models")
fig.show()
SAHIL HAMBIRE
22
LAB 09

Graph

Problem 2
Implement following outdoor models for path loss estimation if distance d is varied from 1 to 20
Km in step size of 1Km
f-center frequency in Hz (1500-2000MHz)
f1-center frequency1 in Hz (1800MHz)
hb- base station height (upto 50)
hm- mobile station height (upto 5)
a = 3.2log(11.75hm)^2 - 4.97 a
hm= (1.1log(fc)-0.7)hm-(1.56log(fc)-0.8)
'Hata model urban area'
'Hata model suburban area'
'Hata model rural area'
And plot graph

Code

import numpy as np
import math as m
from plotly.subplots import make_subplots
import plotly.graph_objects as go
f = int(input("Enter the center frequency: "))
f1 = int(input("Enter the center frequency 1: "))
d = np.arange(1,21,1)
hm = 5
hb = 50
a = 3.2*np.log(11.75*hm)**2 - 4.97
SAHIL HAMBIRE
22
LAB 09

p1=69.55+(26.16*np.log(f))+(44.9-6.55*np.log(hb))*np.log(d)-13.82*np.log(hb)-a

p2= p1-2*np.log((f/28)**2) - 5.4


p3= p1-(4.78*(np.log(f))**2)+(18.33*np.log(f)) - 40.94
fig1 = make_subplots(
rows=1, cols=3, subplot_titles=("Hata Model Urban Area", "Hata Model Suburban Area", "Hata
Model Rural Area")
)
fig1.add_trace(go.Scatter(x=d, y=p1), row=1, col=1)
fig1.add_trace(go.Scatter(x=d, y=p2), row=1, col=2)
fig1.add_trace(go.Scatter(x=d, y=p3), row=1, col=3)
fig1.update_xaxes(title_text="Distance in m", row=1, col=1)
fig1.update_xaxes(title_text="Distance in m", row=1, col=2)
fig1.update_xaxes(title_text="Distance in m", row =1, col=3)

fig1.update_yaxes(title_text="Path loss in dB", row=1, col=1)


fig1.update_yaxes(title_text="Path loss in dB", row=1, col=2)
fig1.update_yaxes(title_text="Path loss in dB", row=1, col=3)

fig1.update_layout(title_text="Outdoor Model for Path Loss Estimation using Hata models")


fig1.show()
SAHIL HAMBIRE
22
LAB 09

Graph

Conclusion
After performing this experiment we understood the various models of outdoor propagation like
Cost 231, IMT and HATA.

You might also like