Power plant dispatch model, including the energy product-only model of NEMS
Copy all the files and directories (as they are) in your desired project location (just make sure you have write access to). genDispatch was built with Python 3.7 and
- NumPy 1.16.5
- SciPy 1.3.1
- Pandas 0.25.1
- Matplotlib 3.1.1
- Pint 0.9 (expicit units)
- FuzzyWuzzy 0.17.0 (string matching)
- xlrd 1.2.0
The project directory is structured as follows:
- top level contains all source codes
Inputs and resourcescontains the input files and low-level resources, such as:config.iniis the configuration file, which defines project-level parametersPint energy defn.txtis a custom Pint 0.9 units definitions filemetadata.inicontains metadata and instructions to read the inputs data (parsed via DataHandler.py)genDispatch.logis the project logSG power plant database v3.xlsxis the power plant database file. This, as with many other inputs, can be configured via the metadata file.
Resultscontains all the dispatch-related resultsTo WRFcontains all the WRF input files and resourcesScriptscontains demos and auxiliary scripts (Jupyter notebooks)
This ntbk shows how to simulate a full scenario and how to process the dispatch results into WRF input files.
After simulating scenarios, we might want to save the dispatch results first, before transforming these into WRF inputs. This notebook demonstrates how to read saved results and then transform them.
To save the results, simply pickle the results returned by genDispatch.solve(). ToWRF.read_results() lets you pick these results up.
These are auxiliary scripts that let you conveniently edit the config and metadata files, respectively.
Author: David Kayanan
Contact: [email protected]
Project: Cooling Singapore 1.5