WEC-Grid is an open-source Python library crafted to simulate the integration of Wave Energy Converters (WECs) and Current Energy Converters (CECs) into renowned power grid simulators like PSS®E & PyPSA.
You can find the full documentation here.
Amidst the global shift towards sustainable energy solutions, Wave Energy Converters (WECs) and Current Energy Converters (CECs) emerge as groundbreaking innovations. These tools harbor the potential to tap into the boundless energy reserves of our oceans. Yet, to weave them into intricate systems like microgrids, a profound modeling, testing, and analysis regimen is indispensable. WEC-Grid, presented through this Jupyter notebook, is a beacon of both demonstration and guidance, capitalizing on an open-source software to transcend these integration impediments.
WEC-Grid is in its nascent stages, yet it presents a Python Jupyter Notebook that successfully establishes a PSSe API connection. It can solve both static AC & DC power flows, injecting data from a WEC/CEC device. Additionally, WEC-Grid comes equipped with rudimentary formatting tools for data analytics. The modular design ensures support for a selected power flow solving software and WEC/CEC devices.
For the current implementations, WEC-Grid is compatible with PSSe and WEC-SIM. The widespread application of PSSe in the power systems industry, coupled with its robust API, makes it an ideal choice.
-
Install Miniconda
- Download and install Miniconda (64-bit) for Python environment management.
- TODO: add instructions to add miniconda to path and other trouble shooting
-
MATLAB
- Ensure MATLAB 2021b is installed. Download MATLAB. This is the only tested and supported version of MATLAB currently. Hold off on installing the MATLAB Engine API for Python until your conda environment is set up.
-
WEC-SIM
- Install WEC-SIM (latest version). Get WEC-SIM.
- Expose MATLAB to Python by installing the MATLAB Engine API for Python. Follow instructions here. Instructions are also provided below.
-
PSSe API
- Obtain and configure the PSSe API. Details and licensing are available on the PSS®E website.
- Install Miniconda, MATLAB, WEC-SIM, and the PSSe API.
- Clone the WEC-Grid repository:
git clone https://github.com/acep-uaf/WEC-GRID
- Confirm conda is installed:
conda --version
- navigate to the WEC-Grid directory:
cd WEC-GRID
- Create the environment using the provided
.yml
file:conda env create -f wec_grid_env.yml
- Activate the environment:
conda activate WEC_GRID_ENV
Run the following to install the WEC-Grid
package in editable mode:
pip install -e .
- Navigate to the MATLAB Engine installation directory:
cd "C:\Program Files\MATLAB\R2021b\extern\engines\python" this will most likely be different for your installation
- Run the following command to install the MATLAB Engine API:
python -m pip install . #todo format the above command to be more clear about using the dot
Currently MATLAB Engine API is only supported on python 3.8, if you run into install issues confirm you are using your conda environment with python 3.8. You can test this using the Jupyter notebook in examples/Environment_Testing.ipynb
#### Step 3.5: Naviagte to the WEC-Grid directory
#### Step 4: Configure the PSSe python API
#TODO: Add instructions for configuring the PSSe API
---
### Testing the Setup
1. Activate the `WEC_GRID_ENV` environment:
```bash
conda activate WEC_GRID_ENV
- Launch Jupyter Lab:
jupyter lab
- Run the example notebooks to verify compatibility with:
- PSSe
- WEC-SIM
- MATLAB API
TODO: Add version number beta 1.0.0 TODO: list all tested and working functions, dynamics and not working forsure.
Feel free to contribute or raise issues on our GitHub repository. Your feedback and collaboration drive the future of WEC-Grid. 🚀