This folder contains a large part of the channel simulator for a VLC (Visible Light Communication) channel simulator in Python. It This simulator was partially based on the MATLAB channel model developed in: Ghassemlooy, Z., Popoola, W., & Rajbhandari, S. (2019). Optical wireless communications: system and channel modelling with Matlab®. CRC press.
This simulator studies various study cases in the following scenarios:
- Bus shelter
- Street lamp
- Industrial lighting
- Impulse response
- 4-transmitter system
The radiation pattern assumed in this code is the Lambertian LED emitter.
- Main_Bus_Smoke" contains the main code defining the various scenario parameters.
- fAttenuationsBus_Smoke" are the functions used to calculate the presence of smoke or fog and return the parameters to "Main".
- Plot_levelcurve_Bus_Smoke" contains all the functions for displaying the results. There are also save and display functions.
The radiation pattern assumed in this code is a NIKKON S MURA streetlight, whose IES (Illuminating Engineering Society) file was included.
- On_house_pattern" displays the IES file, which has been processed beforehand and is found in the form of the Z vector in the code.
- Main_House_Smoke" contains the main code defining the various scenario parameters.
- fAttenuationsHouse_Smoke" are the functions used to calculate the presence of smoke or fog and return the parameters to "Main".
- Plot_levelcurve_House_Smoke" contains all the functions for displaying the results. There are also save and display functions.
The radiation pattern assumed in this code is a CoreLine Highbay LED from Philips Lighting, whose IES (Illuminating Engineering Society) file was included.
- Industry_pattern" processes the test_indus.txt file to display it and calculate the optical power distribution in a plane. I recommend playing the code by section.
- test_indus.txt uses the coefficients present in the original IES file.
- Rep_imp_bus_station" introduces the scenario's main parameters and displays the curves and impulse response of the system under study. It separates and joins the contributions from smoke and fog.
- fAttenuations_Gl" is the set of functions used to calculate the attenuation for fog and smoke.