A Streamlit application to visualize OpenFOAM residuals from residual.dat files.
- Interactive Plots: Visualize residuals using Altair for interactive exploration.
- Static Plots: Generate high-quality static plots using Matplotlib.
- Data Inspection: View raw data in a tabular format.
- Multiple Files: Upload and compare multiple residual files simultaneously.
- Log Scale: Automatically plots residuals on a logarithmic scale.
This project uses uv for dependency management.
-
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh -
Clone the repository:
git clone <repository-url> cd Plot-OpenFOAM-Residuals
-
Install dependencies:
uv sync
Run the Streamlit application:
uv run streamlit run streamlit_app.pyOpen your browser and navigate to the URL provided in the terminal (usually http://localhost:8501).
- Upload Files: Drag and drop your
residual.datfiles into the file uploader. These files are typically found in thepostProcessingdirectory of your OpenFOAM case. - Adjust Settings: Use the sidebar to change the figure width and height for Matplotlib plots.
- Explore: Switch between the "Altair", "Matplotlib", and "Dataframe" tabs to view the data in different formats.