The Gaussian Plume Model for atmospheric dispersion and inverse modeling of contaminants with support for multiple sources and receptors.
Project description
## Gaussian Plume Model for Atmospheric Dispersion
This repository contains a Python implementation of the Gaussian Plume Model for atmospheric dispersion of contaminants, 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
#### Forward Atmospheric Dispersion Modeling (gpm.py)
The main code file gpm.py includes the following components:
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.
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.
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.
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.
#### Inverse Modeling (inverse.py)
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:
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.
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.
Optimization: The minimize function from the scipy.optimize module is used to find the optimal emission rates that best fit the observed receptor measurements.
### Output
For forward modeling, the code generates plots showing the contours of ground-level contaminant concentration in mg/m^3. The maximum concentration value is displayed in the plot title.
For inverse modeling, the code outputs the optimal emission rates that best fit the observed receptor measurements.
### 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.
### 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
Built Distribution
File details
Details for the file gplume-0.0.2.tar.gz
.
File metadata
- Download URL: gplume-0.0.2.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc61bf90f242871e69b54347d1aa68cf0a75ab95cb3e8671fd6d95fe13732f64 |
|
MD5 | f14989e11838da7efe5b170cf548e65e |
|
BLAKE2b-256 | ec89ba43097a5ad0967811ee103ab60549b6013d8d70475f764b83a00a18b318 |
File details
Details for the file gplume-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: gplume-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb428828cf10676945a37c54bcee410cf35be7f0e53883e4fc0f020229aba804 |
|
MD5 | df724cec53b3a55e61333bc2de08b194 |
|
BLAKE2b-256 | b146b837c950f1dfd9b9e499ba68b3a56ad0cf8620be303504004260adb51a07 |