Compact Energy System Modeling Tool
Documentation: https://sinahkazemi.github.io/CESM.jl/
Prerequisites:
- Julia Installation: Ensure you have Julia installed on your system. You can download it from the official Julia website: https://julialang.org/downloads/
- Package Manager (Pkg): Julia comes with a built-in package manager called
Pkg. You'll use this to manage project dependencies.
Steps to Run the Project:
-
Navigate to the Project Directory: Open your terminal or command prompt and navigate to the directory containing this
Project.tomlfile. You can use thecdcommand for this.cd /path/to/your/julia_project(Replace
/path/to/your/julia_projectwith the actual path to your project directory.) -
Activate the Project Environment: Once inside the project directory, activate the project environment using Julia's
Pkgmanager. This ensures that you are using the specific dependencies defined in yourProject.tomlfile.Open the Julia REPL (Read-Eval-Print Loop) by typing
juliain your terminal and pressing Enter.julia
Inside the Julia REPL, type the following command and press Enter:
using Pkg Pkg.activate(".")
The
"."refers to the current directory, which contains yourProject.tomlfile. Julia will then activate the environment associated with this project. You should see the project name in parentheses in your Julia REPL prompt, indicating the environment is active (e.g.,(your_project_name) julia>). -
Install Dependencies (if necessary): If this is the first time you are running this project on your system (or if the dependencies have changed), you need to install the required packages listed in the
Project.tomlfile. While the project environment is active in the Julia REPL, run the following command:Pkg.instantiate()
This command will read the
Project.tomlandManifest.tomlfiles and download and install all the necessary dependencies. This might take some time depending on the number and size of the packages. -
Run the Project Code: Once the environment is activated and the dependencies are installed, you can run your project's main script or any other relevant Julia files.
-
Running a Main Script: If your project has a main script (e.g.,
src/main.jlor a file specified for execution), you can run it from the Julia REPL using theinclude()function:include("src/main.jl")
(Adjust the path to your main script accordingly.)
-
Interactive Exploration: You can also interact with your project's modules and functions directly in the Julia REPL after activating the environment and potentially loading your project's main module using
using YourProjectName(if your project defines a module).
-
run the following piece of code
julia ]test
Activate the virtual environment in docs folder and run make.jl
- Sina Hajikazemi — Julia implementation
- Julia Barbosa — Model conceptualization and the German Energy Transition model
If you use this package please cite the repository. If you use the German energy transition model, please also sign the following link:
Barbosa, J., Ripp, C., & Steinke, F. (2021). Accessible Modeling of the German Energy Transition: An Open, Compact, and Validated Model. Energies, 14(23), 8084. https://doi.org/10.3390/en14238084