Skip to content

A Streamlit-based application for fitting and visualizing pseudo-first-order kinetic models in photocatalytic degradation studies. Includes support for experimental parameter input, real-time plotting, and basic error analysis.

License

Notifications You must be signed in to change notification settings

raymsm/pollutant-degradation-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pollutant Degradation Kinetics Visualizer

A Streamlit-based application for analyzing and visualizing pollutant degradation kinetics data.

Features

  • Simple and intuitive interface for data input
  • Pseudo-first-order kinetic model fitting
  • Real-time visualization of experimental data and fitted curves
  • Basic error analysis (R² and RMSE)
  • Support for catalyst loading and light intensity parameters

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/pollutant-degradation-visualizer.git
cd pollutant-degradation-visualizer
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Usage

  1. Start the Streamlit application:
streamlit run app.py
  1. Open your web browser and navigate to the URL shown in the terminal (typically http://localhost:8501)

  2. Enter your experimental parameters:

    • Initial concentration (C₀)
    • Time-concentration data pairs
    • Catalyst loading
    • Light intensity
  3. View the results:

    • Fitted curve plot
    • Rate constant (k)
    • R² value
    • RMSE
    • Half-life

Development

The project is structured as follows:

pollutant-degradation-visualizer/
├── app.py                      # Main Streamlit application
├── requirements.txt            # Dependencies
├── README.md                   # Project documentation
├── src/                        # Source code
│   ├── models/                 # Kinetic models
│   │   └── first_order.py      # First-order model implementation
└── tests/                      # Unit tests
    └── test_models.py          # Tests for kinetic models

Testing

Run the test suite:

python -m pytest tests/

Deployed at: pdegrade.streamlit.app
GitHub repository: raymsm/pollutant-degradation-visualizer
For updates or collaboration, contact raymsm.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Streamlit-based application for fitting and visualizing pseudo-first-order kinetic models in photocatalytic degradation studies. Includes support for experimental parameter input, real-time plotting, and basic error analysis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages