CPVT3N – Modeling in the photovoltaic/thermal concentrator considering a stratified reservoir in 3 levels ![](https://camo.githubusercontent.com/39adee198103de7e3d95f18f9edc638af6bb59fd0a2b0c570fffacf8d4d7dec4/68747470733a2f2f736b696c6c69636f6e732e6465762f69636f6e733f693d6d61746c6162)
A MATLAB tool to model the operation of a concentrated photovoltaic/thermal (CPV/T) module alongside a stratified reservoir with 3 levels.
![main](https://private-user-images.githubusercontent.com/161434060/308386958-9fc6a469-693a-4d86-b21d-58bdce0c008e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5MTA1NTcsIm5iZiI6MTcyMzkxMDI1NywicGF0aCI6Ii8xNjE0MzQwNjAvMzA4Mzg2OTU4LTlmYzZhNDY5LTY5M2EtNGQ4Ni1iMjFkLTU4YmRjZTBjMDA4ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxN1QxNTU3MzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yNThkZTYxNjkzMDA5N2QyYTc2MzZlNzdiMWY4Yjg5MjUyZDJjOThmZTlkZDkzOTdmM2MyZjQ2YTRiMGJjMDJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ffzatc9CKVr-bMq2GswdedJ6EEnARavJPR6fEEkoBL8)
![main2](https://private-user-images.githubusercontent.com/161434060/308386983-e6979111-8d71-4bd4-ae38-665edc582743.png?jwt=eyJhbGciOi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y1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxN1QxNTU3MzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ZTkyMzVmM2M3MWUyNGNkMDc2NzlmNGE1ZGFmZDVjNjU3N2IzZGU3MTU2ZjAyNWM3YzhjNGEyMjRjNDQ2NDg5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Wu1B_ACQiggvjja7DRi5ylWvonsmhkcwtGlm8M60DiU)
- Download the package to a local folder (e.g. ~/CPVT3N/) by running:
git clone https://github.com/letfritz/CPVT3N.git
- Run Matlab and navigate to the folder (~/CPVT3N/), then run the interface.m script.
- Open the file "interface.m" and click "Run" to compile the main interface of the code.
- After user adjustments, simply press the "Iniciar" button to begin the simulation.
- Upon completion, the results will be exported to the "Resultado" folder.
2021-07-30.17-13-13.mp4
Released under MIT license.
- Folders
- Curve - Folder containing necessary curves for running the program. The files must have the same size and time interval between the data, which should be in minute intervals.
- Result - Folder with the results generated in the simulation. It contains an Excel file and a workspace with the variables from the last simulation.
- Files
- CPVT.m - Iterative code with CPVT simulation.
- cpvt3n.gif - Program logo image.
- cpvtinfo.fig - Interface with CPVT and stratified reservoir model.
- cpvtinfo.m - Interface code with CPVT and stratified reservoir model.
- errorCurve.fig - Error interface between curve file dimensions.
- errorCurve.m - Error interface code between curve file dimensions.
- errorQtdmodulos.fig - Non-integer module quantity error interface.
- errorQtdmodulos.m - Non-integer module quantity error interface code.
- getConfigOutput.m - Result matrix creation code.
- getConsumoAgua.m - Code to identify water demand from each level.
- getCurva.m - Code that loads input curves into the program.
- getDifusividade.m - Thermal diffusivity calculation code.
- getEnergiaEletrica.m - Single CPVT module electrical energy code.
- getEqAgua.m - Code for water properties calculation at 2 bar.
- getEstratificacao.m - Reservoir stratification code.
- getInput.m - Input data loaded with interface information.
- getOutput.m - Code to export output result matrix.
- getPrandtl.m - Prandtl number calculation code.
- getQtdModulos.m - Quantity of modules that fit in a reservoir code.
- getReservatorio.m - Reservoir variable iterative code.
- getViscosidade.m - Kinematic viscosity calculation code.
- info.fig - Interface with general program information.
- info.m - General program information interface code.
- interface.fig - Main interface with input data for the program.
- interface.m - Main interface code with input data for the program.
- main.m - Main MATLAB code.
- modeloCPVT.gif - CPVT model image used in the simulation.
- modeloRes.gif - Image of the 3-level stratified reservoir model used in the simulation.
- morecpvt.fig - Interface with information about CPV/T input data.
- morecpvt.m - CPV/T input data information interface code.
- moreRes.fig - Interface with information about Reservoir and Curve input data.
- moreRes.m - Reservoir and Curve input data information interface code.
The CPVT3N is an open-source software, where the main functionality is to model the operation of a concentrated photovoltaic/thermal (CPV/T) module alongside a stratified reservoir with 3 levels. The model utilizes concepts of heat transfer and fluid mechanics for the cooling of the photovoltaic cell, allowing to increase the energy efficiency of the system. The tool operates the system according to input data provided by the user, such as temperature curve, water consumption, and direct normal radiation. Thus, the model allows easy adaptation to various refrigerant fluids, other CPV/T module topologies, and studies in different simulation horizons. The results generated by the software are exported in xlsx format, containing powers generated by the CPV/T module and temperatures of the collector outlet, photovoltaic cell, plate, and the three stratified levels of the reservoir.
Currently, concentrated photovoltaic/thermal (CPV/T) technology has been gaining visibility in literature and in prototype validation operational environment applications. However, the sizing of this equipment, which is recently entering the market, requires an iterative model that takes into account fluid mechanics and heat transfer, as it is sensitive to weather conditions. Therefore, CPVT3N aims to facilitate the analysis of CPV/T technology alongside a stratified reservoir as interactions between the system and the environment are considered over time. In this sense, this program presents as its main innovations the fact that it is a free, open-source model, programmed in MATLAB, with a user-friendly interface and systematically commented code, allowing users with intermediate knowledge of the model to apply improvements and add new functionalities to the system. Furthermore, due to its user-friendly interface and responsiveness to input data, users interested solely in analyzing the operation of CPV/T technology can perform various simulations under different environmental conditions and usage of the stratified reservoir. Additionally, the tool includes technical data on heat losses from the constructive aspects of the reservoir and properties of the refrigerant fluid of the CPV/T collector, which vary with temperature. These data reflect in a precise model of reservoir stratification, which is performed in 3 levels of equal volume. Thus, we understand CPVT3N as a useful tool both to facilitate the development of new CPV/T technologies in the industry and for academic studies that consider precise and environmentally sensitive models of operation, covering an existing gap in tooling with data richness.
Free and open-source tool, targeting technical and academic audiences, which can serve, for instance, as a solution to enable undergraduate and graduate students to develop an analysis of the concentrated photovoltaic/thermal system responsive to climatic data and reservoir utilization associated with this technology. Furthermore, the simulated results from this program can serve as a basis for constructing prototypes that operate in real environments and even facilitate the entry of concentrated photovoltaic/thermal technology into the market. Among its main advantages is the fact that the tool is developed in MATLAB, a computational environment widely used in academia, allowing advanced users to refine the model and incorporate future functionalities.
The combined heat and power tool through the CPV/T collector presented here aims to provide studies estimating the operation of a system composed of a CPV/T module and a reservoir sensitive to the operational conditions of the environment in which the system is deployed. Therefore, cogeneration operation studies with CPV/T and reservoir utilize the iterative model of this tool to depict the production of electrical and thermal energy and the use of the reservoir for providing heated water through reservoir stratification. The findings serve as inputs for CPV/T technology projects, prototype development, and economic feasibility studies. We see this as a promising model with significant future applications, as it allows for a variety of input data and can represent operational conditions of a new technology in the market. The current version already enables users to input data for direct normal radiation, reservoir water consumption, ambient temperature, and suitable water usage temperature over different time horizons.
@article{BORBA2020113383,
title = {A novel stochastic optimization model to design concentrated photovoltaic/thermal systems: A case to meet hotel energy demands compared to conventional photovoltaic system},
journal = {Energy Conversion and Management},
volume = {224},
pages = {113383},
year = {2020},
issn = {0196-8904},
doi = {https://doi.org/10.1016/j.enconman.2020.113383},
url = {https://www.sciencedirect.com/science/article/pii/S0196890420309201},
author = {Bruno S.M.C. Borba and Letícia F. Henrique and Diego C. Malagueta}
}