anon98 / EC-simulator

Energy Communities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EC-Simulator

GitHub commit activity GitHub License Build

Overview

This is a Julia-based simulation test project that models an energy community with solar generation, battery storage, and cooperative energy management.

Setup Instructions

  1. Julia Installation and Setup:
    sudo add-apt-repository ppa:staticfloat/juliareleases

    sudo apt-get update

    sudo apt-get install julia

Install Packages:

(@v1.7) pkg> add Random
(@v1.7) pkg> add Plots
(@v1.7) pkg> add FilePathsBase
(@v1.7) pkg> add JSON
  1. Clone the Repository:

    git clone https://github.com/anon98/test_julia.git
    cd EC-simulator
  2. Config File Settings/config.json example:

    {
     "simulation_parameters": {
         "dt": 0.1,
         "simulation_hours": 24
     },
     "grid_parameters": {
         "num_nodes": 16,
         "pv_nodes": [1, 2, 3, 4, 6, 8, 9, 10],
         "battery_nodes": [2, 3, 5, 7, 9, 10, 11, 12],
         "cooperative": false,
         "cooperative_nodes": [1, 2, 3, 4]
     }

}

  1. Run the simulation
  julia src/energy_community.jl 
  1. Directory Structure

    simulation.jl: Main simulation script.

    local_market.jl: Local market logic.

    output/: Directory for simulation output.

     images/: Contains simulation output images.
    

About

Energy Communities

License:Apache License 2.0


Languages

Language:Julia 100.0%