Skip to content

This project simulates and compares the Free Space Path Loss (FSPL) and Two-Ray Ground Reflection models for wireless signal propagation.

Notifications You must be signed in to change notification settings

arjun-anil-325/Simulation-of-Free-Space-Path-Loss-and-Two-Ray-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ก Free Space vs Two-Ray Ground Reflection Path Loss Models

This project simulates and compares two fundamental wireless propagation models:

  • Free Space Path Loss (FSPL)
  • Two-Ray Ground Reflection Model

It visualizes how the received power changes with distance using both models and marks the breakpoint distance, beyond which two-ray behavior dominates.


๐Ÿ“˜ Theory Overview

1. Free Space Path Loss (FSPL)

The FSPL model assumes ideal line-of-sight propagation without obstacles or reflections.

Formula:

Power-based FSPL

Where:

  • P_r : Received power (W)
  • P_t : Transmit power (W)
  • G_t, G_r: Antenna gains (unitless)
  • ฮป : Wavelength (m)
  • d : Distance between transmitter and receiver (m)

2. Two-Ray Ground Reflection Model

This model accounts for both the direct and ground-reflected signals, better modeling propagation over longer distances.

Formula:

Two-Ray formula

Where:

  • h_t, h_r : Transmit and receive antenna heights (m)

3. Breakpoint Distance

The breakpoint distance marks where the model shifts from FSPL behavior to two-ray model behavior.

Formula:

Breakpoint Distance

Beyond d_break , the received power drops off faster (โˆ (1/d^4)) compared to FSPL (โˆ (1/d^2)).


๐Ÿงฎ Simulation Parameters

Parameter Value
Frequency 2.4 GHz
Transmit Power 1 W
Antenna Gains 1 (unitless)
Transmit Height 50 m
Receive Height 2 m
Distance Range 1 m โ€“ 5000 m

๐Ÿ“Š Output

The program plots both FSPL and Two-Ray received power versus distance on a logarithmic scale and marks the breakpoint distance.


๐Ÿ“‚ How to Run

  1. Install required Python packages:
    numpy, matplotlib

  2. Run the Python script in your IDE or notebook.


๐Ÿ” Applications

  • Wireless communication systems
  • Signal coverage estimation
  • Antenna design and placement
  • Network simulation and planning (e.g., WiFi, 5G, IoT)

๐Ÿ“ˆ Sample Output

FSPL vs Two-Ray Model

๐Ÿค Contributing

Feel free to fork, improve the logic (e.g., include terrain/obstacle loss), or extend it for other propagation models.

About

This project simulates and compares the Free Space Path Loss (FSPL) and Two-Ray Ground Reflection models for wireless signal propagation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages