Title: Dynamic modeling and validation of a micro-combined heat and power system with integrated thermal energy storage: MATLAB .m files
Date of Release: 2020/06/01
Associated Publication: Trevor J. Bird, and Neera Jain, "Dynamic modeling and validation of a micro-combined heat and power system with integrated thermal energy storage," Applied Energy 2020.
Suggested Citation: Please reference the associated publication above when using any of the code contained in this repository.
Contact Information: Neera Jain, Purdue University, West Lafayette, Indiana, U.S.A, email@example.com
Documentation for each of the .m files given in comment sections at the beginning of the file.
main: this file serves as an example of how to build the component models then use them to simulate the micro-CHP system. All system parameters may be easily changed here while input signals are changed in the simFile.
simFile: this file applies the model inputs as a zero order hold and propogates the system dynamics using the CHP system model. Results are saved to a .mat file.
CHPSim: micro-CHP system model. Function calls FC and TES component models with algebraic coupling to deteremine time derivative of CHP system.
FCObject: this object contains all constants and functions for the evalutation of the PEMFC component model.
TESObject: this object contains all constants and functions for the evalutation of the TES component model.
plotter: this function plots the results of the CHP simulation.
getSciCon: this function outputs a struct containing all necessary scientific constants used in simulation.
TESFigColors: colors generated using cbrewer for plotting TES results.