--- title: PHI Arc Engine PHM emoji: đ colorFrom: red colorTo: red sdk: docker app_port: 8501 tags: - streamlit pinned: false short_description: Interactive PHM digital twin for TPE331 gas turbine engines. license: apache-2.0 --- # PHI-Arc Engine PHM Digital Twin **Multi-engine prognostics and health monitoring system for MRO technicians.** đ **Live Demo:** [https://huggingface.co/spaces/SM-Bello/PHI-Arc-Engine-PHM] --- ## Supported Engines | Engine | Type | Icon | |--------|------|------| | TPE331-25 | Turboprop | đŠī¸ | | CFM-LEAP Class | Turbofan | âī¸ | | J85-GE Class | Turbojet | đ | | RJ43 Class | Ramjet | ⥠| | X-51A Class | Scramjet | đĨ | | RS-25 Class | Rocket | đ | --- ## Features - **Physics-informed baseline** â ISA atmosphere + thermodynamic cycle matching per flight condition - **5-fault signature library** per engine type with 3 severity levels (Advisory / Warning / Critical) - **Cosine-similarity fault classification** against known ATA-linked degradation fingerprints - **Certification-linked maintenance actions** â FAA TCDS, EASA CS-E, FAR Part 33, MIL-STD, NASA-STD - **Report generation** â PDF, DOCX, and CSV export for offline MRO documentation - **Trend analysis** â Upload CSV flight-cycle logs, detect fault onset, view degradation curves - **Interactive charts** â Plotly heatmaps, Matplotlib steady-state comparisons, trend plots - **Responsive design** â Mobile and desktop optimized via custom CSS --- ## Architecture ``` PHI-Arc Engine PHM/ âââ app.py # Main Streamlit application âââ Dockerfile # HF Spaces Docker container âââ requirements.txt # Python dependencies âââ packages.txt # System dependencies (apt) âââ assets/ â âââ style.css # Responsive UI styling âââ engines/ â âââ base_engine.py # Abstract engine interface â âââ turboprop.py # TPE331-25 (FAA TCDS E2WE) â âââ turbofan.py # CFM-LEAP class â âââ turbojet.py # J85-GE class â âââ ramjet.py # RJ43 class â âââ scramjet.py # X-51A class â âââ rocket.py # RS-25 class âââ reports/ âââ pdf_generator.py # MRO diagnostic PDF reports âââ docx_generator.py # Editable Word reports âââ csv_exporter.py # Telemetry CSV export ``` --- ## Quick Start (Local) ```bash # Clone the repo git clone https://huggingface.co/spaces/SM-Bello/phi-arc-phm cd phi-arc-phm # Install dependencies pip install -r requirements.txt # Run locally streamlit run app.py ``` --- ## Deployment (Hugging Face Spaces) This Space uses the **Docker SDK**. The `Dockerfile` is included â no additional configuration needed. 1. Create a new Space at [huggingface.co/spaces](https://huggingface.co/spaces) 2. Select **Docker** as the SDK 3. Upload all files from this repository 4. The Space will auto-build and deploy on push --- ## Usage for MRO Technicians 1. **Select Engine Type** â Choose from the 6 supported propulsion systems 2. **Input Flight Conditions** â Altitude, Mach, power setting, fuel type 3. **Input Measured Telemetry** â EGT, Fuel Flow, N1/N2, CDP/P3 from ECU/FDR logs 4. **Run Diagnosis** â System computes physics-healthy baseline and matches fault signatures 5. **Review Results** â See degradation trends, fault rankings, ATA-linked actions, and certification requirements 6. **Download Report** â Export PDF/DOCX/CSV for maintenance records --- ## Certification Standards Referenced - **FAA TCDS E2WE Rev.8** â Honeywell TPE331 - **EASA CS-E** â Certification Specifications for Engines - **FAR Part 33** â Airworthiness Standards: Aircraft Engines - **SAE AIR 1168/4** â Gas Turbine Engine Performance Deterioration - **MIL-E-5007D** â Military Turbojet Engine Specification - **MIL-STD-810** â Environmental Engineering Considerations - **NASA-STD-5012** â Structural Requirements and Factors of Safety - **AIAA S-080 / S-081** â Ramjet/Scramjet & Liquid Rocket Engine Standards --- ## License Apache-2.0 ---