Development of a “PCM-in-container” energy storage model component for a possible building energy evaluation in TRNSYS 18
Abstract
Phase change materials (PCMs) offer a promising pathway toward net-zero energy buildings by enhancing thermal energy efficiency. By absorbing and storing heat during the day and releasing it at night, PCMs can reduce reliance on active heating and cooling systems. While PCMs have been widely studied both experimentally and numerically, limited research exists on configurations where PCM containers are in direct contact with surrounding air. This study developed a novel “PCM-in-container” component in TRNSYS 18 to simulate energy gains from such direct interactions. The component was integrated with greenhouse and weather modules in TRNSYS and validated experimentally using three model greenhouses containing air, water, and Vaseline as PCM substances. Model performance was assessed using R-squared (R²), correlation coefficient (CC), root mean square error (RMSE) and mean absolute error (MAE). For water-based PCM, values of R² = 0.97, CC = 0.99, RMSE = 2.01°C, and MAE = 1.33°C were obtained, demonstrating strong model accuracy. The results showed that PCM-filled containers (e.g., structural or railing pipes) could increase nighttime greenhouse temperatures by up to 7°C. The developed component enables energy gain simulations and nighttime heating predictions, offering a valuable tool for greenhouse energy demand evaluation. Although the current model does not account for hysteresis, future work may incorporate this through modifications in the TRNSYS Fortran environment.
Supporting Agencies
National Research Foundation of Korea
Data Availability Statement
The source code for the PCM component building and compilation can be found at https://github.com/users/cosmosopy/projects/1. Other data will be available on request.
References
- Adesanya MA, Na WH, Rabiu A, Ogunlowo QO, Akpenpuun TD, Rasheed A, et al., 2022. TRNSYS simulation and experimental validation of internal temperature and heating demand in a glass greenhouse. Sustainability 14:8283. DOI: https://doi.org/10.3390/su14148283
- Akpenpuun TD, Na WH, Ogunlowo QO, Rabiu A, Adesanya MA, et al., 2021a. Effect of glazing configuration as an energy-saving strategy in naturally ventilated greenhouses for strawberry (Seolhyang Sp.) cultivation. J Agric Eng 52:1177. DOI: https://doi.org/10.4081/jae.2021.1177
- Akpenpuun TD, Na WH, Ogunlowo QO, Rabiu A, Adesanya MA, et al., 2021b. Effect of greenhouse cladding materials and thermal screen configuration on heating energy and strawberry (Fragaria Ananassa Var. ‘Seolhyang’) yield in winter. Agronomy 11:2498. DOI: https://doi.org/10.3390/agronomy11122498
- Boussaba L, Lefebvre G, 2021. Investigation of white vaseline as an alternative phase change material for thermal regulation of physiological birth rooms. J Build Eng 44:102669. DOI: https://doi.org/10.1016/j.jobe.2021.102669
- Cabeza LF, Castell A, Barrenech C, De Gracia A, Fernández AI, 2011. Materials used as PCM in Thermal energy storage in buildings: a review. Renew Sustain Energy Rev 15:1675–1695. DOI: https://doi.org/10.1016/j.rser.2010.11.018
- Chandrasekharan R, Lee ES, Fisher DE, Deokar PS, 2013. An enhanced simulation model for building envelopes with phase change materials. ASHRAE T 119:1–10.
- Chanson H, 2009. Turbulent air-water flows in hydraulic structures: dynamic similarity and scale effects. Environ Fluid Mech 9:125-142. DOI: https://doi.org/10.1007/s10652-008-9078-3
- Cornaro C, Pierro M, Adoo Puggioni V, Roncarati D, 2017. Outdoor characterization of phase change materials reach NZEB. Buildings 7:55. DOI: https://doi.org/10.3390/buildings7030055
- Eydani Asl M, Niezrecki C, Sherwood J, Avitabile P, 2017. Similitude analysis of thin-walled composite I-beams for subcomponent testing of wind turbine blades. Wind Eng 41:297–312. DOI: https://doi.org/10.1177/0309524X17709924
- Jayalath A, Aye L, Mendis P, Ngo T, 2016. Effects of phase change material roof layers on thermal performance of a residential building in Melbourne and Sydney. Energy Build 121:152-158. DOI: https://doi.org/10.1016/j.enbuild.2016.04.007
- Kutty N, Barakat D, Khoukhi M, 2023. A French residential retrofit towards achieving net-zero en- ergy target in a Mediterranean climate. Buildings 13:833. DOI: https://doi.org/10.3390/buildings13030833
- Kuznik F, Virgone J, Johannes K, 2010. Development and validation of a new TRNSYS type for the simulation of external building walls containing PCM. Energy Build 42:1004-1009. DOI: https://doi.org/10.1016/j.enbuild.2010.01.012
- Mazzeo D, Matera N, Cornaro C, Oliveti G, Romagnoni P, De Santoli L, 2020. EnergyPlus, IDA ICE and TRNSYS predictive simulation accuracy for building thermal behaviour evaluation by using an experimental campaign in solar test boxes with and without a PCM module. Energy Build 212:109812. DOI: https://doi.org/10.1016/j.enbuild.2020.109812
- Mears DR, 1998. Greenhouse glazing effects on heat transfer for winter heating and summer cooling. Available from: https://horteng.envsci.rutgers.edu/workshop/lecture4.pdf
- Mu M, Zhang S, Yang S, Wang Y, 2022. Phase change materials applied in agricultural greenhouses. J Energy Storage 49:104100. DOI: https://doi.org/10.1016/j.est.2022.104100
- Naghibi Z, Carriveau R, Ting DS-K, 2020. Improving clean energy greenhouse heating with solar thermal energy storage and phase change materials. Energy Storage 2:e116. DOI: https://doi.org/10.1002/est2.116
- Najjar A, Hasan A, 2008. Modeling of greenhouse with PCM energy storage. Energy Convers Manag 49:3338-3342. DOI: https://doi.org/10.1016/j.enconman.2008.04.015
- Nishad S, Krupa I, 2022. Phase change materials for thermal energy storage applications in greenhouses: a review. Sustain Energy Technol Assess 52:102241. DOI: https://doi.org/10.1016/j.seta.2022.102241
- Ogunlowo QO, Akpenpuun TD, Na WH, Rabiu A, Adesanya MA, Addae KS, et al., 2021. Analysis of heat and mass distribution in a single- and multi-span greenhouse microclimate. Agriculture 11:891. DOI: https://doi.org/10.3390/agriculture11090891
- Ogunlowo QO, Akpenpuun TD, Na WH, Adesanya MA, Rabiu A, Dutta P, et al. 2023. Simulation of greenhouse energy and strawberry (Seolhyang Sp.) yield using TRNSYS DVBES: a base case. Solar Energy 266:112196. DOI: https://doi.org/10.1016/j.solener.2023.112196
- Ogunlowo QO, Na WH, Rabiu A, Adesanya MA, Akpenpuun TD, Kim HT, Lee HW, 2022. Effect of envelope characteristics on the accuracy of discretised greenhouse model in TRNSYS. J Agric Eng 53:1420. DOI: https://doi.org/10.4081/jae.2022.1420
- Panayiotou GP, Kalogirou SA, Tassou SA, 2016. Evaluation of the application of phase change materials (PCM) on the envelope of a typical dwelling in the Mediterranean region. Renew Energy 97:24-32. DOI: https://doi.org/10.1016/j.renene.2016.05.043
- Poulad ME, Fung AS, Naylor D, 2011. Effects of convective heat transfer coefficient on the ability of PCM to reduce building energy demand. Proc. 12th Conf International Building Performance Simulation Association, Sydney. Available from: https://publications.ibpsa.org/proceedings/bs/2011/papers/bs2011_1202.pdf
- Rabiu A, Na WH, Akpenpuun TD, Rasheed A, Adesanya MA, Ogunlowo QO, Kim HT, Lee HW, 2022. Determination of overall heat transfer coefficient for greenhouse energy-saving screen using trnsys and hotbox. Biosyst Eng 217:83-101. DOI: https://doi.org/10.1016/j.biosystemseng.2022.03.002
- Rieradevall J, Montero JI, Llorach-Massana P, Pena J, 2017. Analysis of the technical, environmental and economic potential of phase change materials (PCM) for root zone heating in Mediterranean greenhouses. Renew Energy 103:570-581. DOI: https://doi.org/10.1016/j.renene.2016.11.040
- Schranzhofer H, Puschnig P, Heinz A, Streicher W, 2006. Validation of a TRNSYS simulation model for PCM energy storages and PCM wall construction elements. Proc. 10th International Conference on Thermal Energy Storage, Pomona. pp. 2-7.
- Seo IW, 2018. Similitude and dimensional analysis. In: Elementary Fluid Mechanics and Lab. Seoul, Seoul National University.
- Tantau HJ, Akyazi G, 2017. The low energy greenhouse ‒ Heat Transfer by long wave radiation. Acta Horticulturae 1170:847-854. DOI: https://doi.org/10.17660/ActaHortic.2017.1170.108
- Tayo OB, 2020. How to calculate accuracy for regression? Accessed: January 12, 2023. Available from: https://pub.towardsai.net/how-do-i-calculate-accuracy-for-regression-ec304f3e27b6.
- TRANSSOLAR Energietechnik. 2017. Multizone building modeling with Type56 and TRNBuild. Available from: https://web.mit.edu/parmstr/Public/Documentation/06-MultizoneBuilding.pdf
- Yoo, H. 2024. Average price of water yearly in South Korea from 2012 to 2022. Accessed: May 9, 2025. available from: https://www.statista.com/statistics/1416838/south-korea-average-water-price-yearly/
- Zakir E, Ogunlowo QO, Akpenpuun TD, Na WH, Adesanya MA, Rabiu A, et al., 2022. Effect of thermal screen position on greenhouse microclimate and impact on crop growth and yield. Nigerian J Technol Dev 19:417-432. DOI: https://doi.org/10.4314/njtd.v19i4.15
- Zhao M, Liu Y, Bao D, Hu X, Wang N, Liu L, 2023. Study on the influence of solar array tube on thermal environment of greenhouse. Sustainability 15:3127. DOI: https://doi.org/10.3390/su15043127
Metrics
Citations and online attention from Dimensions, Altmetric and PlumX.
License
Copyright (c) 2026 the Author(s)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
PAGEPress has chosen to apply the Creative Commons Attribution NonCommercial 4.0 International License (CC BY-NC 4.0) to all manuscripts to be published.