|
1 |
| -# Caldera_Charge_Grid |
| 1 | +# Caldera_Grid |
2 | 2 |
|
3 | 3 | Caldera and OpenDSS co-simulation platform using HELICS
|
4 | 4 |
|
5 | 5 | ## Overview
|
6 |
| -Caldera Grid enables modeling EV charging on the electric grid. Caldera Grid cosimulation platform is built using HELICS (Hierarchical Engine for Large Scale Infrastructure Co-simulation) and cosimulates Caldera ICM with OpenDSS. The platfrom also provides an interface to apply custom control strategies to EV charge events. |
| 6 | +Caldera Grid enables modeling EV charging on the electric grid. Caldera Grid co-simulation platform is built using HELICS (Hierarchical Engine for Large Scale Infrastructure Co-simulation) and cosimulates Caldera ICM with OpenDSS. The platfrom also provides an interface to apply custom control strategies to EV charge events. |
7 | 7 |
|
8 |
| -## Prerequisites |
9 |
| - |
10 |
| -Caldera Grid depends on `C++ compiler`, `git`, `cmake`, `python` and `pybind11` to compile. |
11 | 8 |
|
12 | 9 | ## Installation
|
13 | 10 |
|
14 |
| -Get a copy of Caldera ICM. |
15 |
| -``` |
16 |
| -git clone https://hpcgitlab.hpc.inl.gov/caldera_charge/caldera_charge_grid.git |
17 |
| -``` |
18 |
| -If you are interested in the most up to date version of Caldera ICM, the development version is available in the `develop` branch. |
19 |
| -``` |
20 |
| -git switch develop |
21 |
| -``` |
22 |
| -To install Caldera Grid using cmake |
23 |
| -``` |
24 |
| -cd caldera_charge_grid |
25 |
| -mkdir build |
26 |
| -cmake -DPROJECT=<PROJECT_NAME> -DICM=<ON/OFF> ../ |
27 |
| -make |
28 |
| -make install |
29 |
| -``` |
30 |
| -If cmake cannot find C++ compiler, python or pybind11. They need to be pointed to its installed paths to find them. Refer to [pybind11](https://pybind11.readthedocs.io/en/stable/compiling.html#building-with-cmake) and [cmake](https://cmake.org/cmake/help/latest/guide/tutorial/index.html) documentations. |
31 |
| - |
32 |
| - |
33 |
| -Caldera Grid compiles the Caldera ICM submodule and installs compiled python libraries in the `libs/` folder. |
34 |
| - |
35 |
| -`-DPROJECT` flag is used to specify the project specific EV-EVSE models to be used. Options are `DirectXFC`, `eMosaic` and `EVs_at_Risk`. `-DICM` flag turns ON/OFF compiling `Caldera_ICM` lib. Please refer to Caldera ICM project for more information with respect to Caldera ICM compilation. |
| 11 | +### Windows |
| 12 | + |
| 13 | +The installation approach for windows is only a suggested approach which is well tested |
| 14 | + |
| 15 | + |
| 16 | +#### Prerequisites |
| 17 | + |
| 18 | +Caldera Grid has the following requirements to be able to compile on windows |
| 19 | + |
| 20 | +1. Install git for windows |
| 21 | +2. Install Anaconda |
| 22 | +3. Install visual studio with C++ and cmake |
| 23 | + |
| 24 | +#### Anaconda environment setup |
| 25 | + |
| 26 | +1. Open anaconda prompt |
| 27 | +2. Create a new conda environment |
| 28 | + ``` |
| 29 | + conda create -n Caldera python=3.9 # (recommended version >= 3.7.0) |
| 30 | + ``` |
| 31 | +3. Activate the new conda environment |
| 32 | + ``` |
| 33 | + conda activate Caldera |
| 34 | + ``` |
| 35 | +4. Install required python packages |
| 36 | + ``` |
| 37 | + conda install pybind11 # (recommended version >= 2.10) |
| 38 | + conda install numpy # (recommended version >= 1.23.5) |
| 39 | + conda install pandas # (recommended version >= 1.5.2) |
| 40 | + conda install cvxopt # (recommended version >= 1.2.6) |
| 41 | + pip install "OpenDSSDirect.py[extras]" # (recommended version >= 0.7.0) |
| 42 | + pip install helics # (recommended version >= 3.4.0) |
| 43 | + ``` |
| 44 | + |
| 45 | +#### Download Caldera Grid |
| 46 | + |
| 47 | +1. open git for windows |
| 48 | +2. navigate to desired folder where you would like to download Caldera Grid |
| 49 | + ``` |
| 50 | + cd <path_to_desired_download_folder> |
| 51 | + ``` |
| 52 | +3. clone Caldera Grid from Github |
| 53 | + ``` |
| 54 | + git clone https://github.com/idaholab/Caldera_Grid.git |
| 55 | + ``` |
| 56 | +4. Swich to develop branch. Develop branch has the most recent updates and bug fixes for Caldera Grid |
| 57 | + ``` |
| 58 | + git switch develop |
| 59 | + ``` |
| 60 | + |
| 61 | +#### Compile Caldera Grid |
| 62 | + |
| 63 | +1. Open the downloaded Caldera Grid folder in Visual Studio |
| 64 | + ``` |
| 65 | + File -> Open -> Folder -> <path_to_Caldera_Grid> |
| 66 | + ``` |
| 67 | +2. Open CMakeSettings.json |
| 68 | + ``` |
| 69 | + Project -> CMake Settings |
| 70 | + ``` |
| 71 | +3. Set flages for the cmake compilation process in the CMake command arguments test box |
| 72 | + ``` |
| 73 | + -DPROJECT=eMosaic -DICM=ON -DPYTHON_EXECUTABLE=<path_to_anaconda3>\envs\<env_name>\python.exe -Dpybind11_DIR=<path_to_anaconda3>\envs\<env_name>\Library\share\cmake\pybind11 |
| 74 | + ``` |
| 75 | + - PROJECT - options are DirectXFC, eMosaic and EVs_at_Risk |
| 76 | + - ICM - needs to be ON, Caldera_Grid needs ICM module |
| 77 | +4. Configure CMake |
| 78 | + - Saving CMakeSettings.json will kick off the configuration in the output tab |
| 79 | +5. Build libraries |
| 80 | + ``` |
| 81 | + build -> build all |
| 82 | + ``` |
| 83 | +6. Install libraries |
| 84 | + ``` |
| 85 | + build -> Install Grid |
| 86 | + ``` |
| 87 | + |
| 88 | +#### Running Caldera Grid |
| 89 | + |
| 90 | +1. Open Anaconda prompt |
| 91 | +2. Navigate to project folder |
| 92 | + ``` |
| 93 | + cd <path_to_Caldera_Grid> |
| 94 | + ``` |
| 95 | +3. Activate Anaconda environment |
| 96 | + ``` |
| 97 | + conda activate Caldera |
| 98 | + ``` |
| 99 | +4. Run simulation |
| 100 | + ``` |
| 101 | + python start_execution.py |
| 102 | + ``` |
| 103 | + |
| 104 | + - `start_execution.py` is set up to run a simple example of EVs charging on the IEEE 34 node test feeder. |
| 105 | + |
| 106 | + |
| 107 | +__NOTE :__ If the excution takes longer time to run, Try using release mode to build |
36 | 108 |
|
37 | 109 | ## Usage
|
38 | 110 | Please refer to [usage documentation](https://hpcgitlab.hpc.inl.gov/caldera_charge/caldera_charge_grid/-/raw/main/docs/Caldera-OpenDSS%20simulation%20platform.pptx) to learn on how to use the tool.
|
39 | 111 |
|
40 |
| -`start_execution.py` is set up to run a simple example of EVs charging on the IEEE 34 node test feeder. |
| 112 | +## Citation |
| 113 | +If you use Caldera Grid in your research, please cite: |
| 114 | + |
| 115 | +Sundarrajan, Manoj Kumar Cebol, Scoffield, Don R, Rumsey, Paden D, & USDOE Office of Nuclear Energy. (2022, December 13). idaholab/Caldera_Grid [Computer software]. https://www.osti.gov//servlets/purl/1907411. https://doi.org/10.11578/dc.20230103.3 |
| 116 | + |
41 | 117 |
|
42 | 118 | ## Authors
|
43 | 119 | 1. Don Scoffield, Senior Research Engineer, Idaho National Laboratory
|
44 | 120 | 2. Manoj Sundarrajan, Research Software Developer, Idaho National Laboratory
|
45 |
| - |
46 |
| -## License |
47 |
| -For open source projects, say how it is licensed. |
|
0 commit comments