A modeling method for dynamic heat exchanger based on Modelica language

Use Modelica language to build a dynamic heat exchanger model, and use the finite volume method to establish pipeline models on the molten salt and steam sides. This solves the research problem of the dynamic distribution characteristics of molten salt temperature in tower solar power generation systems and realizes the control of the medium in the heat exchanger. Real-time monitoring of temperature and response to heat transfer characteristics improve the simulation accuracy and efficiency of the system.

CN118194619BActive Publication Date: 2024-08-27NANJING YUANSI SIMTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410621710.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-27
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

It is difficult to effectively study and simulate the dynamic distribution characteristics of molten salt temperature in tower solar power generation systems with existing technology, which affects the solar resource conversion efficiency of the system.

Method used

The Modelica language is used to build a dynamic heat exchanger model, and the finite volume method is used to construct the pipeline models on the molten salt and steam sides. The mass, momentum and energy balance equations are established to support dynamic simulation and simulation of the heat transfer process.

Benefits of technology

It realizes real-time monitoring of the temperature of the medium in the heat exchanger and responds to heat transfer characteristics, simplifies the modeling process of dynamic heat exchangers, is suitable for heat exchanger applications with different media, and improves the simulation accuracy and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118194619B
    Figure CN118194619B
Patent Text Reader

Abstract

The present invention discloses a modeling method of a dynamic heat exchanger based on Modelica language, including: building a molten salt medium model for dynamic simulation, and performing transient processing on the properties of the molten salt; considering the flow law and turbulent heat transfer effect of the fluid in the heat exchanger, building a dynamic heat exchanger pipeline on the molten salt side; building a dynamic heat exchanger pipeline on the steam side; and building a heat transfer model between the pipelines on both sides. The density and dynamic viscosity of the control volume are defined by using the thermodynamic state of the control volume. The steam side heat exchanger pipeline is centered on the control volume to construct the mass and energy balance equations, and the momentum balance equation is constructed with the control volume boundary as the center. Each balance equation is an expression of the conservation of a certain physical quantity on the control volume. Solving the established representative equation to obtain the node value of the continuous function greatly reduces the difficulty of solving the mathematical model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of heat exchangers, and in particular to a modeling method of a dynamic heat exchanger based on Modelica language. Background Art

[0002] Heat exchangers are key equipment for heat exchange. In tower solar power generation systems, high-temperature and high-pressure molten salts flow through heat exchangers. In order to study the dynamic distribution characteristics of the molten salt temperature in the heat exchanger and improve the solar energy resource conversion efficiency of the overall system, a discrete dynamic modeling method is used to build a heat exchanger, which enables a comprehensive simulation of the dynamic changes in the medium temperature and heat transfer in the heat exchanger.

[0003] Modelica is an object-oriented, open source, non-causal, multi-physics modeling language that uses non-causal mathematical descriptions, uses equations to represent system behavior, supports dynamic, discrete physical system modeling, and is widely used in the modeling and simulation of complex physical systems in multiple fields. The connections between model elements satisfy the generalized Kirchhoff's law, which can realize coupled modeling and simulation of multiple fields and multiple systems, and serve the virtual design and heat collection optimization of dynamic heat exchangers in molten salt tower power generation systems. Summary of the invention

[0004] Purpose of the invention: In view of the defects of the prior art, the present invention discloses a modeling method of a dynamic heat exchanger based on the Modelica language.

[0005] Technical solution: In order to achieve the above technical objectives, the present invention adopts the following technical solution.

[0006] A modeling method for a dynamic heat exchanger based on Modelica language comprises the following steps:

[0007] Step S1, building a molten salt medium model that can be used for dynamic simulation, and constructing a derivative function of the molten salt medium properties with respect to time.

[0008] Step S2: construct a pipeline model for heat transfer on the molten salt side based on the finite volume method. Discretize the fluid pipeline into n control volumes along the length direction, define the boundary variables and source terms of the control volumes, construct the mass, momentum and energy balance equations between the n control volumes, and set the value of the control volume n based on the Modelica language.

[0009] Step S3: Based on the finite volume method, a pipeline model for heat transfer on the steam side is constructed. The steam side pipeline is divided into a thermal control volume and a hydraulic control volume. The mass and energy balance equations are centered on the control volume, while the momentum balance equation is centered on the control volume boundary. For n control volumes, there are n+1 control volume boundaries, n mass and energy balance equations, n+1 momentum balance equations, and the hydraulic control volume moves half a unit relative to the thermal control volume, and is staggered and crossed.

[0010] Step S4: Connect the pipe walls on both sides of the heat exchanger with a heat transfer unit to ensure that the heat transfer unit is connected to the control volume of the pipe in a corresponding manner.

[0011] Beneficial effects:

[0012] 1. Modelica is an object-oriented modeling language that can model the components of a heat exchanger as independent objects and then combine them to build an overall model. This modular and reusable modeling approach simplifies the creation process of dynamic heat exchangers.

[0013] 2. Modelica language supports declarative physical modeling, which can describe various physical processes such as fluid flow and energy transfer in dynamic heat exchangers in an intuitive way. This enables the Modelica model to reflect the discrete structure of the finite volume model of the dynamic heat exchanger and avoid the direct solution of partial differential equations.

[0014] 3. Modelica language organizes and encapsulates data with classes as the center, supports building models with component connection mechanism, and connectors define flow variables and potential variables. Modelica connectors create connection equations between dynamic heat exchanger control volumes, reflecting the dynamic momentum, mass and energy balance between actual control volumes.

[0015] 4. The dynamic heat exchanger of the present invention is not only suitable for molten salt media, but can also be extended to other fluid media. The other side of the heat exchanger is suitable for supercooled water or superheated water vapor. Therefore, the heat exchanger can be used as an ordinary heat exchanger or as a superheater in a Rankine cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION

[0017] The present invention provides a modeling method for a dynamic heat exchanger based on the Modelica language, which can realize the functions of a heat exchanger and a steam superheater, thereby being able to observe the real-time changes in the thermal state of the medium in the heat exchanger and the heat transfer characteristics in the reaction heat transfer process. The present invention will be described in detail below with reference to the accompanying drawings and in combination with examples.

[0018] The Dymola software supports the general simulation language Modelica. In this embodiment, the process implemented in the Dymola software is given. It should be noted that the method described in the present invention can be implemented in other simulation software supporting the Modelica language.

[0019] As attached Figure 1 The dynamic heat exchanger modeling method based on Modelica language of the present invention is mainly implemented by the following steps.

[0020] A modeling method for a dynamic heat exchanger based on Modelica language, characterized in that the media on both sides of the heat exchanger are molten salt and steam respectively, and comprises the following steps:

[0021] Step S1, build a molten salt medium model for dynamic simulation, and construct a derivative function of the molten salt medium property with respect to time; used for transient heat transfer calculation of the heat exchange medium of the dynamic heat exchanger.

[0022] The process of building the molten salt medium model of the present invention is to add the derivatives of physical quantities such as dynamic viscosity, density, specific enthalpy of the molten salt to the time t in the molten salt medium bag;

[0023] The derivative of dynamic viscosity with respect to time is:

[0024] ,

[0025] Derivative of medium density with respect to time:

[0026] ,

[0027] Derivative of specific enthalpy of medium with respect to time:

[0028] , in, is the dynamic viscosity, is the density, is the specific enthalpy of the medium, and e is a constant.

[0029] Step S2: Build a pipeline model for molten salt side heat transfer based on the finite volume method. Discretize the fluid pipeline into n control volumes along the length direction, define the boundary variables and source terms of the control volumes, construct the mass, momentum and energy balance equations between the n control volumes, and set the value of the control volume n based on the Modelica language. Calculate the boundary variables and source terms of each control volume, and construct the dynamic mass, energy and momentum balance equations of the n control volumes;

[0030] Dynamic mass balance equation:

[0031] ,

[0032] in, is the mass flow rate of the ith control volume, is the fluid volume of the ith control volume, is the medium density of the ith control volume, is the mass flow rate of the fluid across the segment boundary, is the source term flow rate of the ith control volume;

[0033] Dynamic energy balance equation:

[0034] ,

[0035] in, is the internal energy of the fluid in the ith control volume, is the enthalpy of the fluid in the i-th control volume, is the mechanical work, is the heat flux of the ith control volume;

[0036] ,

[0037] Calculate the enthalpy flow value of the i-th control volume using the upwind discretization method :

[0038] ,

[0039] in is the enthalpy flow value of the first control volume where the fluid crosses the segment boundary, is the enthalpy flow value of the last control volume where the fluid crosses the segment boundary, ;

[0040] Dynamic momentum balance equation: Using a staggered grid, m=n-1 momentum balance equations are defined between n control volumes;

[0041] ,

[0042] in is the momentum of the control volume, is the momentum of the fluid across the segment boundary, is the pressure of the control volume, is the gravity that controls the volume;

[0043] ,

[0044] in is the fluid density of the ith control volume, is the average flow rate in the ith control volume, is the cross-sectional area of ​​the ith control volume.

[0045] Step S3: A pipeline model for heat transfer on the steam side is constructed based on the finite volume method. The steam side pipeline is divided into a thermal control volume and a hydraulic control volume. The mass and energy balance equations are centered on the control volume, while the momentum balance equation is centered on the control volume boundary.

[0046] The finite volume method is used to discretize the mass, momentum and energy balance equations along the flow direction of the pipeline into n control volumes, and the state of each control volume is described by enthalpy value; the state variables are pressure, flow rate and specific enthalpy of each control volume; for n control volumes, there are n+1 control volume boundaries, n mass and energy balance equations, n+1 momentum balance equations, and the hydraulic control volume moves half a unit relative to the thermal control volume, and is staggered and crossed.

[0047] Dynamic energy conservation equation:

[0048] ,

[0049] in is the pipe length; is the cross-sectional area of ​​the pipe; is the medium density of the ith control volume of a single pipeline; is the time derivative of the enthalpy of the ith control volume; is the mass flow rate through the ith control volume of a single pipe; , are the specific enthalpies of the fluid at the i-th and i+1-th nodes respectively; is the derivative of pressure with respect to time; The heat flux from the boundary into the i-th control volume;

[0050] Dynamic mass conservation equation:

[0051] ,

[0052] ,

[0053] in The derivative of the average density of the ith control volume with respect to enthalpy; is the time derivative of the enthalpy of the ith control volume; is the derivative of the average pressure of the ith control volume with respect to the enthalpy; is the time derivative of pressure; is the mass flow rate on the boundary;

[0054] Momentum conservation equation:

[0055] ,

[0056] in is the mass flow rate, is the pipeline fluid momentum, is the pipeline inlet pressure, is the pipe outlet pressure, is the water head pressure drop, is the friction loss;

[0057] The pipe wall joint represents the surface temperature of the pipe wall and is used to exchange heat work. The array interface includes three variables: enthalpy, temperature, and density, which need to be calculated at equally spaced nodes in the control volume, including inlet and outlet nodes.

[0058] Step S4: Construct a heat transfer model between the pipes on both sides. Define a pipe wall model consisting of n discretized units, and connect the pipe wall discrete units to the fluid control volume accordingly.

[0059] The spatial discretization of the pipe wall corresponds to the discretization of the connected fluid model. The pipe wall is discretized into n segments along the length direction and the two thermal interfaces at the head and tail are used. , Represents a section of pipe wall, each section of the pipe wall is perpendicular to the heat conduction,

[0060] Dynamic energy balance formula:

[0061] ,

[0062] in is the specific heat capacity of the tube wall, is the mass of the jth discrete tube wall, is the derivative function of the temperature of the jth tube wall with respect to time, is the heat flux into the thermal interface of the j-th pipe wall, is the heat flux outflowing from the thermal interface of the jth tube wall;

[0063] ,

[0064] in is the thermal conductivity of the pipe wall material, is the tube wall thickness, , is the interface temperature on both sides of the wall, is the interface temperature, is the heat transfer area.

[0065] The dynamic heat exchanger modeling of the present invention uses the finite volume method to discretize the heat exchanger space. Construct dynamic mass, momentum and energy balance equations for each control volume. The molten salt side heat exchanger pipeline has n control volumes and n+1 nodes, and the boundary variables and source terms of the control volumes are defined. The density and dynamic viscosity of the control volume are defined using the thermodynamic state of the n control volumes. The steam side heat exchanger pipeline is centered on the control volume to construct the mass and energy balance equations, and the momentum balance equation is constructed with the control volume boundary as the center. Each balance equation is an expression of the conservation of a certain physical quantity on the control volume. Solving the established representative equation to obtain the node value of the continuous function greatly reduces the difficulty of solving the mathematical model.

Claims

1. A modeling method for a dynamic heat exchanger based on Modelica language, characterized in that: The media on both sides of the heat exchanger are molten salt and steam respectively, including the following steps: Step S1, building a molten salt medium model for dynamic simulation, and constructing a derivative function of the molten salt medium property with respect to time; The process of building the molten salt medium model is to add the physical quantities of dynamic viscosity, density and specific enthalpy of the molten salt to the molten salt medium package and calculate the derivative of time; The derivative of dynamic viscosity with respect to time is: Derivative of density with respect to time: Derivative of specific enthalpy of medium with respect to time: Among them, eta is the dynamic viscosity, rho is the medium density, and h is the medium specific enthalpy; Step S2, constructing a pipeline model for molten salt side heat transfer based on the finite volume method; Specifically, the fluid pipeline is discretized into n control volumes along the length direction, the boundary variables and source terms of the control volumes are defined, the mass, momentum and energy balance equations between the n control volumes are constructed, and the value of the control volume n is set based on the Modelica language; Dynamic mass balance equation: ms[i]=fluidVolumes[i]*mediums[i].d mb_flows[i]=m_flow[i]-m_flow[i+1] Where ms[i] is the mass flow rate of the ith control volume, fluidVolumes[i] is the fluid volume of the ith control volume, mediums[i].d is the medium density of the ith control volume, m_flows[i] is the mass flow rate of the fluid across the segment boundary, and mb_flows[i] is the source term flow rate of the ith control volume; Dynamic energy balance equation: Where US[i] is the internal energy of the fluid in the i-th control volume, Hb_flows[i] is the enthalpy of the fluid in the i-th control volume, Wb_flows[i] is the mechanical work, and Qb_flows[i] is the heat flow rate of the i-th control volume; Hb_flows[i]=H_flows[i]-H_flows[i+1] The enthalpy flow value H_flows[i] of the i-th control volume is calculated by using the upwind discretization method: H_flows[i]=semilinear(m_flows[i],mediums[i-1].h,mediums[i].h) H_flows[1] = semilinear(port_a.m_flow, instream(port_a.h_outflow), mediums[1].h) H_flows[n+1] = -semilinear(port_b.m_flow, instream(port_b.h_outflow), mediums[n].h) where H_flows[1] is the enthalpy flow value of the first control volume across the segment boundary, H_flows[n+1] is the enthalpy flow value of the last control volume across the segment boundary, 1<i<n+1; Dynamic momentum balance equation: Using a staggered grid, m = n-1 momentum balance equations are defined between n control volumes; Where Is is the momentum of the control volume, Ib_flows is the momentum of the fluid across the segment boundary, Fs_p is the pressure of the control volume, and Fs_g is the gravity of the control volume; Ib_flows=rhos[i]*vs[i]*vs[i]*crossAreas[i]-rhos[i+1]*vs[i+1] *vs[i+1]*crossAreas[i+1] where rhos[i] is the fluid density of the ith control volume, vs[i] is the average flow velocity of the ith control volume, and crossAreas[i] is the cross-sectional area of ​​the ith control volume; Step S3, building a pipeline model for steam-side heat transfer based on the finite volume method; Specifically, the steam side pipeline is divided into a thermal control volume and a hydraulic control volume, the mass and energy balance equations are centered on the control volume, and the momentum balance equation is centered on the control volume boundary; For n control volumes, there are n+1 control volume boundaries, n mass and energy balance equations, n+1 momentum balance equations, and the hydraulic control volume is moved half a unit relative to the thermal control volume, with staggered intersections; Dynamic energy conservation equation: rhobar[i]=(rho[i]+rho[i+1] / 2) Where l is the length of the pipeline; A is the cross-sectional area of ​​the pipeline; rhobar[i] is the medium density of the i-th control volume of a single pipeline; is the time derivative of the enthalpy of the ith control volume; wbar[i] is the mass flow rate through the ith control volume of a single pipeline; h[i] and h[i+1] are the specific enthalpies of the fluid at the ith and i+1th nodes, respectively; is the time derivative of pressure; Q_single[i] is the heat flux from the boundary into the i-th control volume; Dynamic mass conservation equation: in The derivative of the average density of the ith control volume with respect to enthalpy; is the time derivative of the enthalpy of the ith control volume; is the derivative of the average pressure of the ith control volume with respect to the enthalpy; is the derivative of pressure with respect to time; m i-1:i is the mass flow rate on the boundary; Momentum conservation equation: L / A*dwdt+(outfl.p-infl.p)+Dpstat+Dpfric=0 Where w is the mass flow rate, dwdt is the pipeline fluid momentum, infl.p is the pipeline inlet pressure, outfl.p is the pipeline outlet pressure, Dpstat is the head pressure drop, and Dpfric is the friction loss; The pipe wall joint represents the surface temperature of the pipe wall and is used to exchange heat work. The wall array interface includes three variables: enthalpy, temperature, and density. These variables need to be calculated at equally spaced nodes in the control volume, including the inlet and outlet nodes. Step S4, building a heat transfer model between the pipes on both sides; Specifically, a heat transfer unit is used to connect the pipe walls on both sides of the heat exchanger to ensure that the heat transfer unit corresponds to the control volume of the pipe; The spatial discretization of the pipe wall corresponds to the discretization of the connected fluid model. The pipe wall is discretized into n segments along the length direction. The first and last thermal interfaces heatPort_a and heatPort_b are used to represent a section of the pipe wall. Each section of the pipe wall is perpendicular to the heat conduction. Dynamic energy balance formula: c_wall*m[j]*d(T[j])=heatPort_a[j].Q_flow+heatPort_b[j].Q_flow where c_wall is the specific heat capacity of the pipe wall, m[j] is the mass of the jth discrete pipe wall, d(T[j]) is the time derivative of the temperature of the jth pipe wall, heatPort_a[j].Q_flow is the heat flow into the thermal interface of the jth pipe wall, and heatPort_b[j].Q_flow is the heat flow out of the thermal interface of the jth pipe wall; heatPort_a[j].Q_flow=2*K_wall / s*(Ta[j]-T[j])*area_h / n heatPort_b[j].Q_flow=2*K_wall / s*(Tb[j]-T[j])*area_h / n Where K_wall is the thermal conductivity of the pipe wall material, s is the pipe wall thickness, Ta[j] and Tb[j] are the interface temperatures on both sides of the wall, T[j] is the interface temperature, and area_h is the heat transfer area.