Diesel Engine Cycle App

Selim AMDJAHDI
Published

0
  • Project creator

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 R key
  • 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
  • M key โ†’ Toggle left drawer menu
  • R key โ†’ Start/stop engine animation
  • P key โ†’ Show/hide metrics panel (fps, memory, draw calls and triangles)

๐Ÿš€ Usage

  1. Access the application via the link provided in the About section of this repository.
  2. Open the drawer menu (M key) to navigate between Simulation and Engine Parts tabs.
  3. 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.