Skip to content

About

DRIP – Dynamic Root Locus simulation Integration Platform

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRIP: Dynamic Root Locus Integration Platform

Python Streamlit Control Theory

Overview

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.

Key Capabilities

  • 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
  • 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.

Installation and Execution

To deploy DRIP locally, follow these steps:

Prerequisites

  • Python 3.8 or higher.

Setup Instructions

  1. Clone the Repository

    git clone https://github.com/your-username/drip-root-locus-app.git
    cd drip-root-locus-app
  2. 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
  3. Install Dependencies

    pip install -r requirements.txt
  4. Launch the Platform

    streamlit run ff.py

Core Technologies

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.

About

DRIP – Dynamic Root Locus simulation Integration Platform

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages