This is a Julia-based simulation test project that models an energy community with solar generation, battery storage, and cooperative energy management.
-
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
-
Clone the Repository:
git clone https://github.com/anon98/test_julia.git cd EC-simulator
-
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] }
}
- Run the simulation
julia src/energy_community.jl
-
Directory Structure
simulation.jl: Main simulation script.
local_market.jl: Local market logic.
output/: Directory for simulation output.
images/: Contains simulation output images.