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.
The FSPL model assumes ideal line-of-sight propagation without obstacles or reflections.
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)
This model accounts for both the direct and ground-reflected signals, better modeling propagation over longer distances.
Where:
- h_t, h_r : Transmit and receive antenna heights (m)
The breakpoint distance marks where the model shifts from FSPL behavior to two-ray model behavior.
Beyond d_break , the received power drops off faster (โ (1/d^4)) compared to FSPL (โ (1/d^2)).
| 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 |
The program plots both FSPL and Two-Ray received power versus distance on a logarithmic scale and marks the breakpoint distance.
-
Install required Python packages:
numpy,matplotlib -
Run the Python script in your IDE or notebook.
- Wireless communication systems
- Signal coverage estimation
- Antenna design and placement
- Network simulation and planning (e.g., WiFi, 5G, IoT)
Feel free to fork, improve the logic (e.g., include terrain/obstacle loss), or extend it for other propagation models.
