pyOTEC designs ocean thermal energy conversion (OTEC) plants for best economic performance under off-design conditions, meaning seasonal fluctuation of ocean thermal energy resources.
- If you don't have it yet, download the latest version of Anaconda
- Install the netCDF4 library by first opening Anaconda prompt and then executing the following command
conda install netCDF4
If you want to use the geographic visualisation functions of pyOTEC (work-in-progress), install Cartopy using:
pip install cartopy
- Go to https://github.com/JKALanger/pyOTEC and download/clone the repository to your computer
- Go to Copernicus Marine (CMEMS) https://marine.copernicus.eu/ and create an account for free (you need the account to download the seawater temperature data)
- In Anaconda prompt, run the following command:
python -m pip install copernicusmarine
This installs the client used to download the seawater temperature data required to size the OTEC plants.
To update the client, run the following command in Anaconda prompt:
python -m pip install copernicusmarine --upgrade
- Login to your CMEMS account by opening a python terminal (e.g. writting "python" or "python3" in the command line) or console of an IDE like Spyder, and then paste the following lines :
import copernicusmarine
copernicusmarine.login()
This will create locally a file with your CMEMS username and password, and you will not have to worry about logging in in the future.
- Open the pyOTEC.py file in your preferred Python IDE (e.g. Spyder)
- Run the script and follow the instructions given by pyOTEC (i.e. provide the country and plant size)
- If you want to check or change the parameters used by the model, go to file parameters_and_constants.py
When using pyOTEC, e.g., in a scientific publication, please refer to the following paper:
Langer, J., Blok, K. The global techno-economic potential of floating, closed-cycle ocean thermal energy conversion. J. Ocean Eng. Mar. Energy (2023). https://doi.org/10.1007/s40722-023-00301-1