DRIP (Dynamic Root Locus Integration Platform) is an advanced, interactive web application built with Streamlit, meticulously designed to facilitate comprehensive Root Locus analysis of dynamic control systems.
This platform serves as a powerful educational and analytical tool for engineers, researchers, and students, allowing for deep exploration of system stability, dynamic gain adjustments, and real-time response evaluations. Through highly interactive visualizations, users can investigate open-loop and closed-loop behaviors seamlessly.
- Interactive Root Locus Construction: Generates and plots real-time root locus branches of open-loop transfer functions, enabling direct observation of pole migrations as system gain varies.
-
Comprehensive Rule Analysis: Dynamically demonstrates classical root locus construction rules, including:
- Starting and stopping points (
$K=0$ to$K\to\infty$ ) - Asymptotes and centroid calculations
- Angles of departure and arrival
- Breakaway and break-in points
- Real-axis locus segments
- Imaginary-axis crossings
- Starting and stopping points (
- Versatile System Definition: Supports custom input of numerator and denominator coefficients, while also offering a suite of predefined architectural examples (e.g., First Order, Second Order, PID-controlled plants, Underdamped systems).
-
Dynamic Gain Interactivity: Empowers users to manipulate system gain (
$K$ ) via an intuitive slider or direct input, instantly reflecting changes in closed-loop pole locations and overall stability. - Transient Response Analytics: Simulates and visualizes system responses to various test signals (Step, Ramp) under differing gain configurations.
-
Automated Performance Metrics: Computes and displays critical transient performance indicators out-of-the-box:
- Peak Value & Overshoot (%)
- Rise Time & Settling Time
- Delay Time & Steady-State Error
- In-Depth System Profiling: Offers comprehensive diagnostic summaries, including formal transfer function equations (formatted in LaTeX), pole-zero Cartesian mapping, and system type classification.
To deploy DRIP locally, follow these steps:
- Python 3.8 or higher.
-
Clone the Repository
git clone https://github.com/your-username/drip-root-locus-app.git cd drip-root-locus-app -
Initialize a Virtual Environment (Recommended)
# For Unix/macOS: python -m venv venv source venv/bin/activate # For Windows: python -m venv venv venv\Scripts\activate
-
Install Dependencies
pip install -r requirements.txt
-
Launch the Platform
streamlit run ff.py
The application leverages the following scientific computing and data visualization stack:
- Streamlit: For the reactive frontend web interface.
- NumPy & Pandas: For high-performance numerical computation and data manipulation.
- Matplotlib: For generating high-fidelity, interactive control system plots.
- Python Control Systems Library (
control): For core feedback control algorithms, root locus computation, and step/ramp response generation.