Skip to main content

The Gaussian Plume Model for atmospheric dispersion and inverse modeling of contaminants with support for multiple sources and receptors.

Project description

# GPlume

This repository contains a Python implementation of the Gaussian Plume Model for atmospheric dispersion of contaminants (PM2.5), along with an inverse modeling approach to estimate emission rates from receptor measurements. The model calculates the contaminant concentration at receptor locations based on emission rates and wind conditions. It assumes 4 sources, which can be customized according to the code that generates an input box. This code works for multiple sources and multiple receptors.

## Code Description

The main code file gpm.py includes the following components:

  1. Contaminant Parameters: Set the parameters related to the contaminant being modeled, such as gravitational acceleration, dynamic viscosity of air, density of the contaminant, diameter of particles, deposition velocity, and molar mass of the contaminant.

  2. Source and Receptor Data: Define the locations and characteristics of the emission source and receptors where deposition measurements are made. This includes the number of sources, x-y-z coordinates, labels, and emission rates.

  3. gplume Function: This function computes the contaminant concentration (in kg/m^3) at a given set of receptor locations using the standard Gaussian plume solution. It takes into account the source characteristics, receptor locations, and wind speed.

  4. forward_atmospheric_dispersion Function: This function calculates and plots the ground-level contaminant concentration contours based on the Gaussian Plume Model. It takes the wind speed as an input and calls the gplume function to calculate the concentrations. The resulting contours are displayed using the matplotlib library.

The inverse.py file introduces an inverse modeling approach to estimate emission rates from observed contaminant concentrations at receptor locations. The key components in this file are:

  1. ermak Function: This function computes the contaminant concentration at receptor locations using the Ermak dispersion model. It takes into account the emission rates, wind speed, and other parameters.

  2. Objective Function: The objective_function calculates the difference between predicted and observed contaminant concentrations based on the Ermak model. It sets up an optimization problem to find the optimal emission rates that minimize this difference.

  3. Optimization: The minimize function from the scipy.optimize module is used to find the optimal emission rates that best fit the observed receptor measurements.

## Installing

Install and update from PyPI using an installer such as pip:

`python $ pip install -U gplume `

## A Simple Example

`python # Compute and plot forward modeling from gplume import gpm `

`python # Compute and plot inverse modeling from gplume import inverse `

## Contributing

Contributions to this project are welcome. If you find any issues or have suggestions for improvements, feel free to create a pull request or submit an issue on the GitHub repository. https://github.com/VaibhavVasdev/Gaussian-Plume_Model

## Contact

For any inquiries or questions, please contact Vaibhav Vasdev at vaibhavvasdev63@gmail.com.

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

gplume-0.0.6.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

gplume-0.0.6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file gplume-0.0.6.tar.gz.

File metadata

  • Download URL: gplume-0.0.6.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for gplume-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5329b93171078aa02cef3d988d840fe100cf5185a0eaf24886da08d293d63225
MD5 b90fca326023b05b7321a66520a7ac1f
BLAKE2b-256 08a04a434ae3be8a1f3f57efd4f49d232906e3afa76545e82e409c8f76411a27

See more details on using hashes here.

File details

Details for the file gplume-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: gplume-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for gplume-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c1f0f4c1970e805977ca3126a2301c22105e8c13536f3c9d60cefec96ae2f460
MD5 8cabc53ed57648cf2f26b75a11ca35f1
BLAKE2b-256 350b9849024d0ab6070046c14ed1b497ba2d47239ca276cb4e0865bbc314d568

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