Skip to content

ddceruti/csp-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Exercises on Concentrating Solar Thermal Power Plants

Description

This repository contains five exercises for the lecture "Concentrating Solar Power Plants" at TU Munich to learn about CSP interactively. The exercises are interactive and will be corrected in the exercise sessions.

Exercise 1: Weather Data

Getting started, dealing with weather data and the obtaining the renewable energy potentials for CSP.

To download weather locations globally:

Exercise 2: The Global CSP Industry

Data science exercise to analyse the global CSP Overview of CSP plants thanks to the CSP.guru dataset. For the original paper and analysis please go to the references:

Lilliestam J, Ollier L, Labordena M, Pfenninger S, Thonig R. The near-to mid-term outlook for concentrating solar power: mostly cloudy, chance of sun. Energy Sources, Part B: Economics, Planning, and Policy. 2021 Jan 2;16(1):23-41. https://doi.org/10.1080/15567249.2020.1773580

Richard Thonig, & Johan Lilliestam. (2023). CSP.guru (Version 2023-07-01) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.1318151

Exercise 3: Simulation of a Steam Rankine Cycle

TESpy simulation of a basic steam rankine cycle.

Exercise 4: Simulation of Andasol II Power Plant

TESpy simulation of the steam rankine cycle of the Andasol II parabolic trough power plant with the conditions from this paper.

Al-Maliki WA, Alobaid F, Kez V, Epple B. Modelling and dynamic simulation of a parabolic trough power plant. Journal of process control. 2016 Mar 1;39:123-38. https://doi.org/10.1016/j.jprocont.2016.01.002

Exercise 5: Simulation of a Supercritical CO2 Power Cycle

Simulation of a supercritical CO2 power cycle.

Penkuhn M, Tsatsaronis G. Exergoeconomic analyses of different sCO2 cycle configurations. InProceedings of the 6th International Symposium—Supercritical CO2 Power Cycles, Pittsburgh, PA, USA 2018 Mar (pp. 27-29). https://sco2symposium.com/papers2018/cycles/052_Paper.pdf

Installing

Prerequisites

  • Git: Optional but recommended.
  • Miniconda3
  • Choose an option for GUI of Python & Jupyter (suggestions):
  • Install the Jupiter & Python exctension for your GUI

Download the Files

Option A: Clone Repository (Git CMD)

  1. Open Git CMP window
  2. Open any folder (in explorer) where the repository should be store
  3. Navigate with the git command prompt to this folder: cd 'c:/path/to/folder'
  4. Clone downloaded repository with git: git clone 'url'
  5. exit Git CMD

Option B: Download .zip

Alternatively, you can download the repository as a .zip and extract the files.

Install Required Packages

  1. Open the Anaconda Powershell Prompt
  2. Navigate to the cloned repository and copy path of folder in explorer: cd 'c:/path/to/folder/csp_exercises'
  3. Create a new environment conda create -n csp python=3.11
  4. Activate the environment conda activate csp
  5. Install all required packages pip install -r requirements.txt (can take a while to finalize)
  6. check installed packages with command conda list (especially check for 'notebook')

If you have not installed git, you need to download and extract the epw package (link in the requirements.txt file), navigate to the folder with cd folder/epw-master and use the command pip install . between steps 4 and 5 to manually install the package.

Getting Started

The best way to solve the exercises is to open the notebook and try to run all cells. Then the exercises can be done within each "empty" jupyter notebook file, where the questions can be answered directly in the empty cells below.

Here is the workflow:

  1. Install a Text editor of your choice (VS Code,Spyder, ect.)
  2. Open the Anaconda Powershell Prompt
  3. Activate environment conda activate csp: always switch to this environment, otherwise you can damage the (base) path and you have to re-install all from scratch
  4. Launch jupyter-notebook jupyter notebook: https://docs.jupyter.org/en/latest/running.html
  5. Navigate to file and run all cells: https://saturncloud.io/blog/Jupyter-notebook-run-all-cells-a-comprehensive-guide/
  6. Stop jupyter server to run press 'ctrl+c' two times

Documentation on Key Packages

pandas

https://pandas.pydata.org/pandas-docs/stable/user_guide/index.html#user-guide https://pandas.pydata.org/docs/user_guide/10min.html#min https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf https://pandas.pydata.org/docs/getting_started/tutorials.html#communitytutorials

matplotlib

https://matplotlib.org/stable/api/pyplot_summary.html

folium

https://python-visualization.github.io/folium/latest/getting_started.html

.ewp (Energy Plus Weather File)

https://climate.onebuilding.org/papers/EnergyPlus_Weather_File_Format.pdf

tespy

https://tespy.readthedocs.io/en/main/introduction.html

Authors

In alphabetic order:

  • Ammerer, Maximilian (TUM)
  • Ceruti, Amedeo (TUM)

Contribute

Contributions are welcome. Please post an issue or a pull request.

License

MIT License

About

Concentrating Power Plants Exercises with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published