Skip to content

C-Wire is an academic project aimed at analyzing and processing data about electricity distribution stations.

License

Notifications You must be signed in to change notification settings

deltahmed/C-Wire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ C-Wire ⚡

deltahmed deltahmed

deltahmed

Table of Contents

About The Project

C-Wire is an academic project aimed at analyzing and processing data about electricity distribution stations. It relies on the use of an AVL tree to dynamically model and balance data extracted from a CSV file. A Shell script processes the .csv input file to extract relevant information, while the C program calculates the total load of consumers connected to each station using a balanced binary search tree for optimized performance.

Built With

GCC C Make Make Make

Prerequisites

  • A recent version of the C compiler and make.
  • gnuplot and bash

Environment

  • This project was created in unix/linux environment.

Installation and Usage

Installation

  1. Make sure you have installed gnuplot:
    sudo apt update && sudo apt install gnuplot
  2. Clone this repository:
    git clone https://github.com/deltahmed/C-Wire.git
  3. Navigate to the project directory:
    cd C-Wire
  4. Run the project:
    bash c-wire.sh -h

Usage

bash c-wire.sh <path_to_csv> <station_type: hva hvb lv> <consumer_type: comp indiv all> [<plant_identifier>] [-h] [-r]

Parameters

  • <path_to_csv>: Path to the CSV file containing the data. (mandatory)

  • <station_type>: Type of station to process (hvb, hva, lv). (mandatory)

  • <consumer_type>: Type of consumer to process (comp, indiv, all). (mandatory)

  • <plant_identifier>: Identifier of the plant (optional).

  • -h: Displays this help message and ignores all other parameters.

  • -r: force C compilation can only be the last parameter

Rules

  • Forbidden combinations: hvb all, hvb indiv, hva all, hva indiv.

Examples

bash c-wire.sh data.csv hva comp
bash c-wire.sh data.csv lv indiv 1

Make sure your CSV file is correctly formatted to avoid errors.

CSV format

Power plant;HV-B Station;HV-A Station;LV Station;Company;Individual;Capacity;Load

Specificity

  • With the command lv all you have in addition to the classic output the 10 station with the lowest load and the 10 LV station with the most load (You also have the station Electrical efficiency displayed in this file), you have also a graph of this 20 LV stations

  • Here some exemple of the additionnal calculations

Exemple 1

  • bash c-wire.sh c-wire_v25.dat lv all

deltahmed

deltahmed

Exemple 2

  • bash c-wire.sh c-wire_v25.dat lv all 1

deltahmed

deltahmed

Contributors

Licence

Licence

About

C-Wire is an academic project aimed at analyzing and processing data about electricity distribution stations.

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •