Skip to content

JKALanger/pyOTEC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyOTEC

pyOTEC designs ocean thermal energy conversion (OTEC) plants for best economic performance under off-design conditions, meaning seasonal fluctuation of ocean thermal energy resources.

Step-by-step guide to set up and use pyOTEC

  1. If you don't have it yet, download the latest version of Anaconda
  2. 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
  1. Go to https://github.com/JKALanger/pyOTEC and download/clone the repository to your computer
  2. 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)
  3. 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
  1. 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.

  1. Open the pyOTEC.py file in your preferred Python IDE (e.g. Spyder)
  2. Run the script and follow the instructions given by pyOTEC (i.e. provide the country and plant size)
  3. If you want to check or change the parameters used by the model, go to file parameters_and_constants.py

Citation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages