Skip to main content

This is a Python package for the implementation of various equations of Free Space Optical Communication

Project description

Freesopy

A Python package for the implementation of various equations of Free Space Optical Communication


Freesopy is designed to simplify the implementation of various mathematical equations used in Free Space Optical Communication. It provides easy-to-use functions that can be integrated into your projects.

Usaage

You can import Freesopy as:

import freesopy as fso

Some General Equations

P_t: Transmitted power in mW
D_r: Receiver aperture diameter in meters
d: Distance between transmitter and receiver in meters
P_r: Received power in mW
L_p: Path loss in dB
N_0: Noise power spectral density in mW/Hz

Calculate Received Power

Power_received = fso.calculate_received_power(P_t, D_r, d)

Calculate Path Loss

Path_loss = fso.calculate_path_loss(P_t, P_r)

Calculate SNR

SNR = fso.calculate_snr(P_r, N_0)

Calculation of Losses

wl = wavelength
d= distance between transmitter and receiver
alpha= atmospheric attenuation coefficient
dt= diameter of transmitter antenna
dr = diameter of receiver antenna
pt = power total
pn = power of ambient noise
sigma_p = standard deviation of pointing error
sigma_s= standard deviation due to scintillation
gamma = initial intensity of optical beam
cn = refractive structure parameter
theta= angle of divergence
theta_mis = mismatch angle divergence


Attenuation Loss

attenuation_loss = fso.atmospheric_attenuation_loss(gamma, alpha, d)

Geometric Loss

geo_loss = fso.geometric_loss(dr, dt, d, wl, pt)

Misalignment Loss

misalignment_loss = fso.pointing_misalignment_loss(d, sigma_p, pt)

Atmospheric Turbulence

turbulence_loss = fso.atmospheric_turbulence(pt, cn, d, wl)

Polarising Loss Power

polarising_loss_power = fso.polarising_loss_power(pt, theta_mis)

Ambient Noise

ambient_noise = fso.ambient_noise(pt, pn)

Beam Divergence Loss

divergence_loss = fso.beam_divergence_loss(theta, d, pt)

Scintillation Loss

scintillation_loss = fso.scintillation_loss(sigma_s, pt)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freesopy-1.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

freesopy-1.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file freesopy-1.0.3.tar.gz.

File metadata

  • Download URL: freesopy-1.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.1

File hashes

Hashes for freesopy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 dad7df903aa9d27f958d523efa651db7d5f5f0c239259ee3c88e090b7837aba3
MD5 ad6fe7c71a6640765e503c04163f9e5b
BLAKE2b-256 0b04fa1c8e5ac9d241cd2c58472664335ec89f0f867eeae8af25078217062bff

See more details on using hashes here.

File details

Details for the file freesopy-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: freesopy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.1

File hashes

Hashes for freesopy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a233485fe284dc9e2cc1597693bd073afcfae0a097cc311e3137d5905c6196b3
MD5 64a2788172fb42162ec2961dabb8334e
BLAKE2b-256 43ce27c6d98a11611f4e32950f07b1fedf2cacf482733565bbb1fc43aec8f9d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page