Skip to content

oemof-heat/solar_models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solar Models

In this repository you find two models, which use the components "solar_thermal_collector" and "concentrating_solar_power" from oemof_thermal. You will find a short description of both models

Model description

solar cooling

The application models a cooling system for a building with a given cooling demand. Two different systems are included, a thermal system, which uses a absorption chiller to provide the cold and an electrical system with a compression chiller. You will find the structure of the components in the docstring of the files 'thermal_model.py' and 'electric_model.py'. In both systems, the chillers are modeled as transformers with fix efficiencies.

desalination

The application models a desalination system with a given water demand. Two different systems are included, a thermal system, with uses a med (multi effect distillation) to provide the water and an electrival system with a ro (reverse osmosis). You will find the structure of the components in the docstring of the files 'desalination_med_model.py' and 'desalination_ro_model.py'.

How to download and run a model?

In the following steps we describe how you get from here to running the script, solving the optimization program yourself and finally looking at the results. We assume that you have python installed already and that you are familiar with the basic use of a terminal (e.g., enter a command or navigate to a directory).

Preparation steps:

  • Download or clone this repo. Download the repository from this page (our GitHub repository) and unzip it to a local directory of your choice or use Git to clone this repository.

  • Install required packages. You can use the requirements.txt file and pip or install the packages listed in the requirements.txt file in any other way you are familiar with. If you want to use pip open a terminal, navigate to the downloaded directory and enter pip install -r requirements.txt.

  • Download and install Cbc (an open-source mixed integer linear programming solver). For instructions have a look at the oemof-documentation and scroll down to the section Solver, for Linux distributions, or Solver for Windows.

  • Run installation test (optional). By now you should have installed two essential requirements: oemof and the Cbc-solver. You can check whether both were installed successfully with the installation test provided by the oemof developer team. Simply run oemof_installation_test in your terminal. If you are using virtual environments (recommended but not necessary) make sure your run the test in the environment where oemof is installed. If the installation was successful, the following message will be displayed:

    *****************************
    Solver installed with oemof:

    cbc: working
    glpk: not working
    gurobi: not working
    cplex: not working

    *****************************
    oemof successfully installed.
    *****************************

  • Provide input data. The input data that needs to be provided differ from one model to another. How to handle the input data and how you can run the model with your own data is therefore described in the models individual readme-file.

  • Check settings in configuration file. You find a configuration file (*.yml) in the directory ./experiment_config/. It holds information and settings that are needed to run the program and solve the optimizations problem (e.g., solver settings, paths and file names of input data). The config file specifies your experiment. Its structure and content differs for each model and is therefore described individually in each model file.

  • Run the program. Open a terminal. Navigate to the source code directory (/src/) of the model you like to run (e.g., my-computer/path-to-downloaded-file/solar_examples/solar_cooling/src/). Enter python main.py.

  • Get the results. See description in the models individual readme-file.

  • Find out what else can be modelled with oemof! The oemof-developer team provides several examples for applications on there GitHub repository: github.com/oemof/oemof-examples.

License

Copyright (C) 2017 Beuth Hochschule für Technik Berlin and Reiner Lemoine Institut gGmbH

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages