Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.6.0
metadata
title: Bernoulli Pipe Flow Calculator
emoji: 🃏
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.47.2
app_file: app.py
pinned: false
Bernoulli Pipe Flow Calculator
This Space hosts a deterministic Bernoulli pipe flow calculator with a clear Gradio interface. Ulltimately, this calculator find the head loss of a pump placed within an internal flow system, helping to determine the optimal placement of the pump to maintain flow.
Features
- Deterministic backend computing Bernoulli head terms and Darcy–Weisbach head loss.
- Structured JSON output containing inputs, intermediate values (Reynolds, friction factor), and step-by-step math trace.
- Two explanation modes:
- deterministic textual explainer (no external models required).
- optional LLM-based explainer using TinyLlama LLM
Scope & Assumptions
- Incompressible, steady, single-phase flow.
- Suitable for liquid flows where density variation is negligible.
- Not intended for compressible gas dynamics, two-phase flows, or complex networks without adaptation.
Safety & Validity
- Always validate units and ranges before using for design decisions.
- The LLM explainer should only rephrase the structured record — it is not a substitute for engineering judgment.
Models
- 'TinyLlama/TinyLlama-1.1B-Chat-v1.0'