Academic Journal of Science and Technology ISSN: 2771-3032 | Vol. 7, No. 3, 2023 305 Modelica Modeling of Thermodynamic Properties of LiBr‐H2O Solutions Kunfeng Sun* School of Energy and Environment, Zhongyuan University of Technology, Zhengzhou, China *Corresponding author: Kunfeng Sun (Email: skf0558@sina.com) Abstract: Absorption refrigeration system is one of the basic refrigeration systems, with LiBr-H2O solution being the most common working fluid. In order to perform thermodynamic design and analysis on the absorption refrigeration cycle, it is essential to develop a program to calculate the thermodynamic properties of the solution. Modelica is the most promising digital twin modeling language and has been widely used in heat flow system modeling. In this study, a new interface library for calculating the thermophysical properties of LiBr-H2O solution is introduced. This library can calculate the vapor pressure, solution temperature, enthalpy, entropy, mass concentration, etc., as well as dynamic viscosity, thermal conductivity, surface tension coefficient, and other heat transfer or thermodynamics characteristic parameters. It enables researchers to easily modeling and analyze complex LiBr-H2O absorption refrigeration cycles in Modelica within specific temperature and concentration ranges. Keywords: Thermodynamic properties, LiBr-H2O, Solutions, Modelica. 1. Introduction With the development of the world economy, human beings are facing increasingly severe energy shortages and resources crises. Therefore, research on the utilization of renewable energy such as solar energy, geothermal energy, and low-grade energy such as industrial waste heat is receiving increasing attention. The unique advantage of absorption refrigeration, which can directly use low-grade heat sources to drive and does not use working fluids such as CFCs that damage the ozone layer, has been widely recognized [1]. Absorption refrigeration system is one of the fundamental refrigeration systems, in which LiBr-H2O Solutions being the most common working fluid. In order to perform thermodynamic calculations and analysis on the absorption refrigeration cycle, it is essential to develop a program to calculate the thermodynamic properties of the solution. Modelica language is currently the most promising digital twin development language. When modeling thermal-fluid systems, the Modelica standard library provides many medium models, but they may not be sufficient for many applications. Absorption refrigeration system is one of the fundamental refrigeration systems. Currently, LiBr-H2O and NH3-H2O are widely used as working fluids in absorption refrigeration. Among them, NH3-H2O is limited in many applications due to its strong odor and toxicity, which compromises its safety. On the other hand, LiBr-H2O primarily uses water as the refrigerant and can be used as long as the evaporation temperature is not lower than 5℃ . In order to perform thermodynamic calculations and analysis on the absorption refrigeration cycle, it is essential to develop a program to calculate the thermodynamic properties of the solution. Many researchers have conducted data fitting on the experimental data of lithium bromide-water solution's thermophysical properties and obtained equations for major property parameters [2]. ASHRAE has also provided equilibrium equations for lithium bromide-water solution [3]. Some scholars have developed software for calculating thermophysical properties using computer languages such as C, VB, Python, and Fortran etc. [4-6]]. These software packages generally include relationships between enthalpy, temperature, and concentration as the main parameters. However, developing refrigeration models in these languages is challenging, especially for complex models. The release of Modelica is a significant event in the history of digital modeling technology development, marking the transition of these techniques from component-level to system-level in multiple disciplines and fields. After more than 20 years of development, Modelica has been widely applied in various industries such as aerospace, vehicles, energy, education, etc. Modelica combines the advantages of multiple modeling languages. Modelica is a high-level declarative language for describing mathematical behavior. It can easily describe the working characteristics of different engineering components, and at the same time, it can form complex systems of components [7, 8]。 Modelica provides broad technical support for various modeling forms, including object-oriented and noncausal declarative modeling. Importantly, Modelica has an open language standard design, and its language specification is freely available. Additionally, there is an open-source IDE called OpenModelica. With its comprehensive features, Modelica has become the most promising digital twin development language and has the potential to become the de facto international standard for system simulation in the future. Due to various advantages mentioned above, Modelica has been increasingly applied in the field of heat flow system modeling. When modeling a thermal fluid system, a fundamental question is whether a Modelica model can be obtained for calculating the properties of the working fluid. The Modelica standard library provides many medium models, but it is not sufficient in many specific applications, such as obtaining the thermodynamic properties of the working fluid solution for thermal calculation and analysis of absorption refrigeration cycles, which is essential and 306 challenging. To address this issue, the author of this article developed the Lithium Bromide solution thermodynamic property library for calculating the thermophysical properties of lithium bromide aqueous solutions. This library allows researchers to easily and conveniently model, calculate, and analyze complex absorption refrigeration cycles in Modelica within specific temperature and concentration ranges. 2. Framework of Library The thermophysical property library consists of five main parts: LiBr , Saturation , Transports, tools and Example. The framework of the thermophysical properties calculation library for LiBr-H2O solution is shown in Figure 1. Figure 1. LiBr-H2O solution library framework 3. Thermal Properties 3.1. Enthalpy of LiBr-H2O Solution The main calculations in absorption refrigeration models are the enthalpy difference, temperature difference, pressure difference, and concentration difference of each component. The enthalpy equation for the LiBr-H2O solution can be found in many different studies. In this work, ASHRAE handbook’s enthalpy equation was used to develop the code. According to the ASHRAE handbook, enthalpy equation is expressed as following [3]: ℎ ∑ 𝐴 100𝑥 𝑇∑ 𝐵 100𝑥 𝑇 ∑ 𝐶 100𝑥 (1) (15℃