Visit www.phaseflux.com to use PhaseFlux directly in your browser - no installation required!
PhaseFlux is a Streamlit-based web application that predicts flow regimes in multiphase flow systems under adiabatic conditions. It utilizes a LightGBM model to provide predictions based on various input parameters related to fluid properties and flow conditions. The app also offers feature importance analysis using SHAP (SHapley Additive exPlanations) values.
This app is for demonstration purposes only and should not be used for real-world applications. The predictions should be validated against experimental data or established correlations for critical applications.
- Instant flow regime predictions based on user-input parameters
- Advanced feature contribution analysis using SHAP values
- Navigate to www.phaseflux.com
- Enter your flow parameters in the input fields
- Click "Predict Flow Regime" to get instant results
- Explore the SHAP analysis to understand prediction factors
If you prefer to run PhaseFlux locally, you have two options:
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/benettia/phaseflux.git cd phaseflux
-
Build and run the Docker container:
docker-compose up --build
-
Access the application at:
http://localhost:8501
- Python 3.11+
- pip
-
Clone the repository:
git clone https://github.com/benettia/phaseflux.git cd phaseflux
-
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run src/app.py
-
Access the application at:
http://localhost:8501
We welcome contributions to PhaseFlux! Whether it's bug fixes, feature additions, or documentation improvements, please feel free to:
- Fork the repository
- Create a feature branch
- Submit a Pull Request
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
The model used for this app is from:
@misc{alma9963263908776,
author = {Benetti, Alessandro},
title = {Flow regime estimation in two-phase flows employing machine learning: Investigation of the most promising dimensionless feature set},
year = {2021},
keywords = {flow regime estimation, two-phase flow, machine learning, feature selection, algorithm optimization},
language = {English}
}