Diesel Engine App
[Visit the app](https://www.twine.net/signin
📝 Description
Diesel Engine App is a web-based application that visualizes a diesel engine in 3D using React, Three.js, React Three Fiber, and Drei.
The app is designed for educational and demonstrative purposes, allowing users to explore the engine’s kinematics, thermodynamic cycle and components interactively.
✨ Features
🔧 Simulation Tab
⚙️ Animation Section
- Animate the engine’s kinematics with the play/pause button or
Rkey - Control the animation speed with the slider
📈 Pressure-Volume Diagram Section
- Displays the PV diagram of the diesel cycle
- A point moves along the curve according to the swept volume of the first cylinder
🔋 Indicated Power Section
- Calculate Indicated Power (IP) based on four parameters:
- Engine Displacement (volume swept by all pistons)
- Indicated Mean Effective Pressure (average pressure producing work during the cycle)
- Engine Speed (rotational speed)
- Number of cycles per revolution (0.5 for 4-strokes engine)
- Users can change the first three parameters values with interactive sliders
🔩 Engine Parts Tab
- Lists some engine components
- Selecting a component in the list highlights it in the 3D scene
- Selecting a component in the 3D scene highlights it in the list
- Clicking on the info icon displays the component description
- Supports camera rotation and zoom for better visualization
🖱️ Interaction & Controls
- Mouse drag/scroll → Rotate and zoom the 3D engine view
Mkey → Toggle left drawer menuRkey → Start/stop engine animationPkey → Show/hide metrics panel (fps, memory, draw calls and triangles)
🚀 Usage
- Access the application via the link provided in the About section of this repository.
- Open the drawer menu (
Mkey) to navigate between Simulation and Engine Parts tabs. - Interact with the engine using animation controls and component selection.
📜 Terms of Use
This application (Diesel Engine App) is provided for educational and demonstrative purposes only.
By accessing and using this application, you agree to the following conditions:
- The application may be used freely for personal, academic, or non-commercial educational purposes.
- Redistribution, modification or commercial use of this application or its contents is not allowed.
- The source code of this application is private and not publicly available.
- The application is provided “as is” without warranties of any kind.
© 2025 Selim Consulting. All rights reserved.
- 3D Animator
- 3D Designer
- 3D Modeler
- +3











