System and Method for Calculation of Thermofluid Properties using Saturation Curve-Aligned Coordinates
20220381494 · 2022-12-01
Assignee
Inventors
Cpc classification
F25B2700/195
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2700/19
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2500/18
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2600/2513
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2700/21174
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2600/0253
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B19/00
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2500/19
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2600/111
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2700/21162
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B49/02
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2700/197
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2600/112
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F25B2700/21163
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
International classification
F25B49/02
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
Abstract
A system for controlling or optimizing the performance of a vapor compression system by modifying the actuator commands via an output interface, that realizes thermofluid property functions and their derivatives as spline functions which are represented in a coordinate system that is aligned with a fluid saturation curve. The system includes an interface configured to receive measurement data from sensors, a memory configured to store thermofluid property data and computer-executable programs including a B-spline method, and a processor for performing the computer-implemented method. The processor is configured to take as input two thermofluid property variables, and compute a coordinate transformation in which one axis of the coordinates is aligned with the liquid and vapor saturation curves. In the saturation-curve aligned coordinates, a spline function represents the thermofluid property function, with coefficients and knots stored in memory. The spline function is constructed in a manner such that derivatives of the thermofluid property function may be discontinuous across the saturation curve.
Claims
1. A control system for controlling a vapor compression system including actuators, comprising: an input interface configured to receive setpoints of the vapor compression system from a user input and measurement data from sensors arranged in the vapor compression system; a memory configured to store fluid property data of a fluid flowing in the vapor compression system and computer-executable programs including a thermofluid property calculator, a fluid property coordinate transformation, a spline function calculator and a derivative coordinate transformation, and a processor configured to: compute, with respect to the setpoints, a pair of input thermofluid property variables from the measurement data or from the stored fluid property data; compute a pair of independent thermofluid property variables from the pair of input thermofluid property variables using the fluid property coordinate transformation, wherein the computed pair of thermofluid property variables is aligned with a saturation curve; compute a third thermofluid property variable using the spline function calculator; compute derivatives of the third thermofluid property variable with respect to the pair of input thermofluid property variables using the spline function calculator and a derivative coordinate transformation; compute the control data from the measurement data and the third thermofluid property variable and the derivatives of the third thermofluid property variable; and transmit, via an output interface, the computed control data including instructions that control the actuators operating the vapor compression system to the vapor compression system.
2. The control system of claim 1, wherein the spline function calculator uses knots of a multiplicity p for the saturation curve aligned coordinate at the saturation curve, wherein the multiplicity p is a degree of a spline function.
3. The control system of claim 1, wherein the spline function calculator uses B-spline functions.
4. The control system of claim 1, wherein the fluid property coordinate transformation uses polar coordinates and the saturation curve is aligned with a normalized radial coordinate.
5. The control system of claim 1, wherein the fluid property coordinate transformation utilizes normalized polar coordinates to approximate a fluid property function represented by ρ.
6. The control system of claim 5, wherein the fluid property coordinate transformation uses B-splines.
7. The control system of claim 1, wherein the fluid property coordinate transformation uses cartesian coordinates and the saturation curve is aligned with thermodynamic quality as a coordinate.
8. The control system of claim 1, wherein the fluid property coordinate transformation uses cartesian coordinates to approximate a fluid property function represented by ρ.
9. The control system of claim 8, wherein the fluid property coordinate transformation uses B-splines.
10. The control system of claim 1, wherein the actuators are compressors, valves, and fans.
11. The control system of claim 1, wherein the saturation curve is configured to divide a region of interest into a two-phase region and a single-phase region with respect to the fluid.
12. A computer-implemented method for controlling a vapor compression system including actuators, wherein the method uses a processor coupled with stored instructions implementing the method, wherein the instructions, when executed by the processor carry out at steps of the method, comprising: receiving setpoints of the vapor compression system from a user input and measurement data from sensors arranged in the vapor compression system; computing, with respect to the setpoints, a pair of input thermofluid property variables from the measurement data or from fluid property data stored in a memory; computing a pair of independent thermofluid property variables from the pair of input thermofluid property variables using a fluid property coordinate transformation, wherein the computed pair of thermofluid property variables is aligned with a saturation curve; computing a third thermofluid property variable using a spline function calculator; computing derivatives of the third thermofluid property variable with respect to the pair of input thermofluid property variables using the spline function calculator and a derivative coordinate transformation; computing the control data from the measurement data and the third thermofluid property variable and the derivatives of the third thermofluid property variable; and transmitting, via an output interface, the computed control data including instructions that control the actuators operating the vapor compression system to the vapor compression system.
13. The method of claim 12, wherein the spline function calculator uses knots of a multiplicity p for the saturation curve aligned coordinate at the saturation curve, wherein the multiplicity p is a degree of a spline function.
14. The method of claim 12, wherein the spline function calculator uses B-spline functions.
15. The method of claim 12, wherein the fluid property coordinate transformation uses polar coordinates and the saturation curve is aligned with a normalized radial coordinate.
16. The method of claim 12, wherein the fluid property coordinate transformation utilizes normalized polar coordinates to approximate a fluid property function represented by ρ.
17. The method of claim 16, wherein the fluid property coordinate transformation uses B-splines.
18. The method of claim 12, wherein the fluid property coordinate transformation uses cartesian coordinates and the saturation curve is aligned with thermodynamic quality as a coordinate.
19. The method of claim 12, wherein the fluid property coordinate transformation uses cartesian coordinates to approximate a fluid property function represented by ρ.
20. The method of claim 19, wherein the fluid property coordinate transformation uses B-splines.
21. The method of claim 12, wherein the actuators are compressors, valves, and fans.
22. The method of claim 12, wherein the saturation curve is configured to divide a region of interest into a two-phase region and a single-phase region with respect to the fluid.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are included to provide a further understanding of the invention, illustrate embodiments of the invention and together with the description serve to explain the principle of the invention.
[0027] The drawings shown are not necessarily to scale, with emphasis instead generally being placed upon illustrating the principles of the presently disclosed embodiments.
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045] While the above-identified drawings set forth presently disclosed embodiments, other embodiments are also contemplated, as noted in the discussion. This disclosure presents illustrative embodiments by way of representation and not limitation. Numerous other modifications and embodiments can be devised by those skilled in the art which fall within the scope and spirit of the principles of the presently disclosed embodiments.
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0046] Various embodiments of the present invention are described hereafter with reference to the figures. It would be noted that the figures are not drawn to scale elements of similar structures or functions are represented by like reference numerals throughout the figures. It should be also noted that the figures are only intended to facilitate the description of specific embodiments of the invention. They are not intended as an exhaustive description of the invention or as a limitation on the scope of the invention. In addition, an aspect described in conjunction with a particular embodiment of the invention is not necessarily limited to that embodiment and can be practiced in any other embodiments of the invention.
[0047] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. It will be apparent, however, to one skilled in the art that the present disclosure may be practiced without these specific details. In other instances, apparatuses and methods are shown in block diagram form only in order to avoid obscuring the present disclosure.
[0048] As used in this specification and claims, the terms “for example,” “for instance” and “such as,” and the verbs “comprising,” “having,” “including,” and their other verb forms, when used in conjunction with a listing of one or more components or other items, are each to be construed as open ended, meaning that the listing is not to be considered as excluding other, additional components or items. The term “based on” means at least partially based on. Further, it is to be understood that the phraseology and terminology employed herein are for the purpose of the description and should not be regarded as limiting. Any heading utilized within this description is for convenience only and has no legal or limiting effect.
[0049] Heat pumps, air conditioners and refrigerators are examples of devices that move heat from one or more physical locations to other locations in order to achieve desirable thermal conditions at one or more of these locations. Most heat pumps employ a vapor compression cycle to move heat. Operation of a vapor compression cycle may be described using a variety of thermofluid property variables, such as temperature, pressure, humidity, enthalpy, density, viscosity, etc. It is desirable to operate a vapor compression cycle in a manner that satisfies various operational constraints, such as maintaining certain thermofluid property variables below each of their respective maximum limits in order to prevent damage to the vapor compression cycle equipment. It is also desirable to operate a vapor compression cycle in order to cause some thermofluid property variables, such as temperature or pressure, to remain near desirable setpoints, despite disturbances that may act on the vapor compression system such as changes in ambient temperature. It is also desirable to operate a vapor compression cycle in a manner that minimizes power consumption.
[0050] Generally, a vapor compression cycle (system) is connected to a controller or optimizer that adjusts actuators, such as a compressor speed, valve settings, or fan speeds, in order to achieve a desirable operating performance. A controller may obtain information about a vapor compression cycle via sensors that may be installed on or near the vapor compression cycle in order to measure characteristics of the vapor compression cycle or its environment, including some thermofluid property variables. Examples of such sensors are temperature sensors or pressure sensors. A controller may perform some computation based on one or more sensor measurements in order to calculate values for one or more actuators of the vapor compression cycle, such that a desired performance objective is satisfied. Many different performance objectives may be defined, such as the objective of regulating a setpoint or minimizing power consumption of the vapor compression cycle while maintaining a thermofluid variable within a desirable range. Additionally, a controller may also need to satisfy specified performance objectives, such as ensuring that certain thermofluid variables remain below certain limits. This information may be incorporated into a calculation of actuator values. Such considerations are particularly important for vapor compression cycles that have variable-position actuators, such as variable speed compressors or fans, since poorly chosen combinations of actuator values can result in performance degradation or reduce the useful lifetime of system components.
[0051] Many different types of controllers may be formulated, depending on the desired objective for system performance. To predict a behavior of a vapor compression cycle in steady-state conditions, or dynamically over a time horizon, a set of mathematical equations which may include a number of differential equations and a number of algebraic equations, describing mass transfer, momentum balance, energy conservation, and various closure and correlation relationships known to those skilled in the art may be used in a controller in order to control or optimize the operation of a vapor compression cycle. Herein, such a set or subset of such equations is referred to as a model of a system.
[0052] For example, a candidate control architecture referred to as “model predictive control” (MPC) uses a model of a vapor compression cycle to predict its behavior over a time horizon. An MPC periodically samples one or more sensors and computes values for one or more actuators by minimizing a mathematical objective function that is defined over a time horizon and represents a desirable operational performance, subject to a constraint that the solution satisfies the model equations, and possibly some additional operational constraints. This procedure may be repeated in a receding horizon fashion. The model used in such a framework may be based on the physics of a vapor compression cycle and may require thermofluid property variables that are not directly measurable, and are therefore calculated via some thermofluid property variable calculation method. For example, such a method may measure the temperature and pressure of a fluid in a vapor compression cycle and calculate the specific enthalpy of the fluid from those measurements, from which the amount of heating and cooling produced by the cycle may be calculated and used to control or optimize the system.
[0053] A thermofluid property variable for a fluid of fixed composition in thermodynamic equilibrium can be calculated as a function of two other independent thermofluid property variables. For example, any thermofluid property variable can be calculated as a function of the fluid pressure and the fluid specific enthalpy, or alternatively as a function of the fluid temperature and the fluid specific entropy. Many combinations of independent variables are possible, and various combinations have advantages in terms of numerical efficiency depending on the particulars of a system model or a need to compute various quantities of interest such as a heat flux. Therefore, a function that relates two thermofluid property variables to a third thermofluid property variable, referred to herein as a thermofluid property function, is critical to models of vapor compression cycles, and such functions appear frequently in a set of differential and algebraic equations that comprise a model of a thermofluid system, such as a vapor compression cycle.
[0054] Mathematical derivatives of thermofluid property functions are often used in models, which are used often in controllers or optimizers of a vapor compression systems. Moreover, certain thermofluid property variables may be preferred over others as state variables of a model, because they lead to more efficient numerical solutions of a model. For example, the mass conservation equation for a compressible volume of fluid may be expressed as
where M is the mass of the fluid in the volume, m.sub.in is the flow rate into the volume, and m.sub.out is the flow rate out of the volume. However, M is seldom used as a state variable of a vapor compression cycle model because it is numerically inefficient to calculate other thermofluid property variables of interest from this variable. Rather, fluid pressure P and specific enthalpy h are preferred because it is more efficient to calculate other thermofluid property variables from them, and because many of the quantities of interest for the cycle, such as the amount of cooling provided at a point in time, can be directly calculated from P and h. As a result, fluid mass conservation for a vapor compression cycle is often expressed in terms of fluid density ρ, rather than M, with the equation
where V is the fluid volume, v.sub.in is the fluid velocity at the inlet, v.sub.out is the fluid velocity at the outlet, A.sub.in is the inlet port area, and A.sub.out is the outlet port area. The importance of derivatives of the fluid property variables, ∂ρ/∂P and ∂ρ/∂h, and of derivatives of fluid property functions that relate thermofluid property variables to one another, can thus be seen to be an essential aspect of this model, and an essential aspect to a numerical solution computed using a model, and an essential aspect to optimization and control of a vapor compression system that uses a model.
[0055] Alternatively, a controller may dynamically optimize vapor compression system behavior using a model. Gradient-based optimization methods, such as the family of approaches related to Newton's method, have been shown to effectively identify optimizers of nonlinear problems through iterative refinement of an initial guess by using the first and second derivatives of a model-based cost function. Representative applications include calibration methods that seek to identify best-fit parameter values of a predictive model on the basis of system measurements or system tuning methods that seek to estimate the optimal mass of refrigerant in a vapor compression cycle based on data. Because gradients used by these methods include derivatives of thermofluid property variables, accurate derivative computations of thermofluid property variables, and accurate realizations of derivatives of thermofluid property functions, are essential to obtain accurate results from these algorithms.
[0056] Alternatively, models of vapor compression systems find many uses in computer simulation. Many physics-based simulation models for vapor compression cycles are based upon computing numerical solutions to one or more differential equations and one or more algebraic equations that describe the behavior of a vapor compression cycle. The numbers of these equations and associated thermofluid property variables may be very large and numerically ill-conditioned. As a result, these equations may have to be solved many times in the course of a computer simulation. It is therefore important that these equations are numerically efficient, so as to reduce the time required to complete a computer simulation.
[0057] In these and other cases, it is important that thermofluid property functions and variables, and their derivatives, be computed accurately, efficiently, and consistently. Accuracy of a thermofluid property variable or a thermofluid property function means that the prediction of a model corresponds to measured or observed behavior, and that the thermofluid property variable or thermofluid property function satisfies physical conservation laws such as the conservation of mass, energy and momentum. In addition, models used in a controller or optimizer may make use of a large number of thermofluid property function evaluations. A thermofluid property function calculation must be numerically efficient because its calculation must be completed under a strict time budget in order to run within a controller or optimizer in real time. Additionally, as is evident from the above discussion, a vapor compression cycle model often includes thermofluid property variables, thermofluid property functions, and derivatives of both thermofluid property variables and thermofluid property functions with respect to other thermofluid property variables. Because many different fluid property variables may be used within a model, it is important that the derivatives are consistent, meaning they have the mathematical property of transitivity, and also that derivatives of thermofluid property variables are accurate, meaning integration of a derivative gives back the same value. Numerical approximations to derivatives may lack consistency, and also accuracy, giving rise to errors in a model.
[0058] Accurate and consistent methods for representing thermofluid property functions must accurately represent the discontinuity in thermofluid property variables at the liquid and vapor saturation curves that are associated with the transition between the single-phase fluid state and the evaporating or condensing (two-phase) fluid state. This is especially true for models of vapor compression systems, because their operation depends fundamentally on this transition, and models of vapor compression systems evaluate thermfluid property functions on both sides, and very near to the saturation curve. The discontinuity in the derivatives of thermofluid property functions at the liquid and saturation curve can be significantly large to affect the solution to a model. For example, calculating the derivative of density with respect to specific enthalpy for a model of a pure fluid in the single-phase region is
where β is the coefficient of thermal expansion, and c.sub.p is the specific heat capacity at constant pressure. In comparison, the derivative of density with respect to specific enthalpy at constant pressure in the two-phase region is
[0059] The values for these expressions differ at the saturation curve, which indicates the presence of a discontinuity in the derivatives of the thermofluid property functions. Methods that represent a thermofluid property function that are smooth at the saturation curve, i.e., that have a continuous derivative of a fluid property variable across the saturation curve, will result in derivatives of the fluid property function on either side of the saturation curve that have errors, which can be severe and can result in erroneous model behavior.
[0060] One realization of this invention is that representing thermofluid property functions via B-spline functions addresses the need for accuracy, numerical efficiency, and consistency. Univariate (single-variable) spline functions are piecewise polynomial functions defined on a domain of interest Ω∈R. The domain Ω is segmented into disjoint intervals. On each interval, a spline function is a polynomial of degree p+1. At the ends of each interval, called a knot point, the two adjoining polynomials are identical, and their derivatives are identical, up to and including their d.sup.th derivative, where d≤p. If the two adjoining polynomials agree at the (p+1).sup.th derivative, then the two polynomials are the same, so there is no knot joining them. B-splines (basis splines) are a representation of spline functions that make use of a numerically efficient set of basis functions, based on the realization that spline functions of a given degree for a given set of knots are a linear vector space.
Denote the set of knots in a domain Ω=[a, b] as
where the knot points satisfy u.sub.i≤u.sub.i+1, i=0, . . . , m−1. Note that the knots at the ends, a and b, are repeated p+1 times, which is required by the formulae to be presented below. Other knots in the interior of Ω may also be repeated. If a knot is repeated l≤p times, it is said to have multiplicity l.
[0061] The i.sup.th B-spline basis function of degree (or order) p+1, denoted by N.sub.i,p(u), can be computed recursively by the Cox-de Boor formula as
[0062] These functions have finite support, meaning only the basis functions from the p+1 Intervals around a given point u are nonzero, so that the computation of the B-spline basis has a fixed cost, is numerically efficient, and is well conditioned regardless of the size (m+1) of the knot set. Derivatives of B-spline basis functions are given by
so that derivatives of the basis functions can be computed directly from the basis functions themselves.
[0063] A B-spline function ƒ(u) is a linear combination of the B-spline basis
where n=m−p−1 and c.sub.i∈R is a spline coefficient, for 0≤i≤n. For notational compactness, define the coefficient vector as c=[c.sub.0, c.sub.1, . . . , c.sub.n].sup.T∈R.sup.n+1. At knots of multiplicity l, a spline function will be continuous, and the first p−l derivatives will be continuous. In other words, at knots of multiplicity l, a spline function will be C.sup.p-l at that knot point, and C.sup.p-l+1 on the intervals around that knot. However, the (p−l+1)-th derivative may be discontinuous at that knot, depending on the coefficients. Therefore, by setting the multiplicity of a knot to be l=p, any Spline function will be C.° at that knot, meaning it will be continuous, but not continuously differentiable.
[0064] Multivariable B-splines are defined simply by the Cartesian product of each of the univariate domains. For example, the two-dimensional B-spline function ƒ(u,v):R.sup.2.fwdarw.R is represented as
where the coefficient c.sub.ij∈R, for 0≤i≤n.sub.u, 0≤j≤n.sub.v. In this case, the coefficient matrix C may be defined as C=[c.sub.ij].
[0065] In order to calculate thermofluid property variables, and order to represent thermofluid property functions and compute their derivatives accurately efficiently and consistently, the present disclosure describes methods that are suitable for inclusion in a simulator, controller, or optimizer. This method is based upon the realization that there are many tangible benefits of aligning the coordinate system with the saturation curve, particularly for the purpose of accurately and efficiently calculating derivatives of thermofluid property variables. These methods are also based upon the realization that B-spline-based methods that enable the calculation of the derivatives directly from the a set of coefficients that are used to compute thermofluid property functions, which is valuable because it ensures consistency between variables derivatives, and also because of its memory efficiency. These methods are also based upon the realization that a proper representation of thermofluid property functions must be able to accurately represent the discontinuity in derivatives caused by fluid phase change.
[0066] While two distinct embodiments are examined herein, both manifest common characteristics of the underlying invention. Specifically, both embodiments align a coordinate system with the saturation curve, and both embodiments use B-splines to represent thermofluid property functions because they enable the calculation of derivatives that are accurate and consistent. One embodiment uses a coordinate transformation to a Cartesian coordinate system that is aligned with the saturation curve, while the other uses a polar coordinate transformation to polar coordinates that are aligned with the saturation curve. The first of these embodiment will be called the “Cartesian transformation embodiment,” while the second is called the “normalized polar coordinates embodiment.”
[0067]
[0068] The figure illustrates a diagram of a vapor compression system 102 with variable actuators which also incorporates a controller 101 that regulates its behavior. The vapor compression cycle (system) 102 comprises, at a minimum, a set of four components: a compressor 103, a condensing heat exchanger 104, an expansion device 106, and an evaporating heat exchanger 107. Heat transfer from the condensing heat exchanger is promoted by use of fan 105, while heat transfer from the evaporating heat exchanger 107 is promoted by the use of fan 108. This system has variable actuators, such as a variable compressor speed, variable expansion valve position, and variable fan speeds. Of course, there are many other alternate equipment architectures to which this invention pertains with multiple heat exchangers, compressors, valves, and other components such as accumulators or reservoirs, pipes, and so forth, and the discussion of a simple vapor compression cycle is not intended to limit the scope or application of this invention to systems whatsoever.
[0069] The function of a vapor compression cycle is well-known, but is described briefly here. The variable speed compressor 103 compresses a low pressure, low temperature vapor-phase fluid called the refrigerant to a high pressure, high temperature vapor state, after which it passes into the condensing heat exchanger 104. As the refrigerant passes through this heat exchanger, the enhanced heat transfer promoted by variable speed fan 105 causes the high-temperature, high pressure refrigerant to transfer its heat to the ambient air, which is at a lower temperature. As the refrigerant transfers thermal energy to the ambient environment, it gradually condenses until all of the refrigerant is in a high pressure, low temperature liquid state. After it leaves the condensing heat exchanger 104, the refrigerant passes through a variable orifice expansion valve 106 and expands to a low pressure boiling state, from which it enters an evaporating heat exchanger 107. Because the air passing over the evaporating heat exchanger is warmer than the refrigerant itself, this refrigerant gradually evaporates as it passes through this heat exchanger, so that it completely evaporates before it exits at a low pressure, low temperature state. The evaporation process is further facilitated by the enhanced heat transfer promoted by variable speed fan 108. The refrigerant reenters the compressor in this low pressure, low temperature state, at which point the cycle repeats.
[0070] In this system, the controller 101 is configured to transmit control data including instructions that control operations of actuators, such as the components 103, 105, 106, and 108 of the vapor compression system 102 including compressors, valves and motor fans to achieve the performance of a vapor compression system 102 in response to the setpoints inputted via an interface by a user input. The controller 101 obtains measurements from sensors about the state of the system that is used to provide information about its performance. Sensor 109 indicates the use of temperature, pressure, or other sensors to measure the state of the refrigerant entering the condensing heat exchanger, while sensor 110 indicates the use of similar measurement modalities to measure the state of the refrigerant leaving the condensing heat exchanger. Similarly, sensor 111 measures the state of the refrigerant entering the evaporating heat exchanger, while sensor 112 measures the state of the refrigerant exiting the evaporating heat exchanger. The controller or optimizer then uses these measurements 113 to evaluate the operation of the system according to factory-provided setpoints 114 inputted by a user using an input interface, and modifies the value of actuator inputs 103, 105, 106, and 108 according to the measurements and the specified objectives or constraints that are possessed by the controller. As before, these indicated measurements and architecture are not intended to be limiting, but rather indicate the overall structure of such systems.
[0071]
[0072]
[0073] In this invention, some embodiments of thermofluid property functions are described. Either may be used in a controller or optimizer (illustrated as controller/optimizer 101 in
[0074]
[0075]
[0076] As shown in
[0077] In the second step, a saturation curve interpolating function 503 is computed which describes the saturation curve as a function of an implicit parameter u.sub.i for 0≤u.sub.i≤1. Standard methods to create this interpolating function that represents the saturation curve may be used. The saturation curve is thus defined as two coordinates, such as h and P, that are a function of a single parameter u. This parameter u is typically set to 0 at the low pressure limit on the liquid saturation curve, and to 1 at the low pressure limit on the vapor saturation curve. This parameterized representation is important because it can smoothly interpolate between points on the saturation curve at which data is missing.
[0078] In the third step, a coordinate transformation to a pair of saturation curve-aligned variables (ξ, η) 504 is defined such that the saturation curve represents a level set in the (ξ, η) coordinate system. This coordinate transformation has the effect of aligning the saturation curve with the coordinate system, so that ξ is constant along the saturation curve. The use of this transformation is based upon the realization that numerical errors that occur when computing thermofluid property variables in the vicinity of the liquid or vapor saturation curves are caused by the curvature of the saturation curve in a coordinate system of interest, and that aligning the coordinate system of the interpolation with the saturation curve will eliminate the cause of these errors. The use of this transformation is further based on the realization that, in the (ξ, η)-coordinates, B-splines may be used to represent a fluid property variable of interest, with knots of multiplicity l=p (where p is the degree of the spline) placed on the saturation curve. This allows for the accurate, efficient and consistent calculation of derivatives of a fluid property variable near the saturation curve in the (ξ, η) coordinates.
[0079] In the fourth step, a grid is defined in the saturation curve-aligned coordinates (ξ, η) 505 and fluid property data is computed from the Thermofluid Property Calculator tool on that grid. Thus, a set of sample points ξ.sub.j for 1≤j≤J and η.sub.k for 1≤k≤K that will be used to sample the thermofluid property variable of interest are specified. Different approaches for selecting these samples may be used. This may include a uniform sampling of points over a minimum and maximum value of the coordinate, or the selection of a nonuniform sampling density to manage the interpolation error over the range of thermofluid property function.
[0080] In the fifth step, the Thermofluid Property Calculator tool is used to compute reference data for the desired thermofluid property variable ρ 506 at reference locations in the saturation curve-aligned coordinate system. For example, the Thermofluid Property Calculator tool computes the density ρ.sub.jk for each value of the tuple (ξ.sub.j, η.sub.k) where 1≤j≤J and 1≤k≤K and there are J samples of the ξ coordinate and K samples of the η coordinate. The output of this step is a set of data for ρ on a saturation curve-aligned grid.
[0081] In the sixth step, spline coefficients c.sub.ij for the thermofluid property function are calculated for the saturation curve in these saturation curve-aligned coordinates 507. An advantage of this spline coefficient calculation process is that it can be accomplished using least-squares methods, which are straightforward to implement in common computational tools.
[0082] In the seventh step, coefficients of the B-spline representation of the thermofluid property function, c.sub.ij, are calculated for the in the regions of the domain not on the saturation curve, Ω.sub.1 and Ω.sub.2 508. The discontinuity in derivative of the thermofluid property function on saturation curve is represented by knots on the spline curve in the ξ-direction having multiplicity p, where p is the degree of the spline function. The output of this step, and of this overall process, are a set of pre-computed coefficients and a discontinuity-capturing representation of the thermofluid property function that can be used to calculate a third thermofluid property variable, and derivatives of a third thermofluid property variable, from a pair of two input thermofluid property variables in the domain of interest as in
[0083]
[0084] The figure illustrates an exemplar saturation curve which is fit to data obtained from the Thermofluid Property Calculator tool, and which is represented by a parameterized variable u. In general, a pure fluid, such as water or a refrigerant like R32, can be described as consisting of two regions: a single-phase region Ω.sub.1 601, which comprises the liquid region, the vapor region, and the supercritical region, and a two-phase region Ω.sub.2 602. The saturation curve 603, which is a one-dimensional curve embedded in a two-dimensional space, represents the boundary between these regions characterizing the inception of a boiling or condensing process as state of a fluid volume in thermodynamic equilibrium moves from Ω.sub.1 to Ω.sub.2. The liquid and vapor saturation curves meet at the critical point 604, which represents the upper limit of pressure where two-phase behavior exists. Above this critical point, fluid exists in a homogeneous-single phase state, called the supercritical state.
[0085] Points Q.sub.k=(P.sub.sat,k, h.sub.sat,k) 605 on this saturation curve can be calculated by many available Thermofluid Property Calculator tools via the use of iterative algorithms that seek to satisfy fundamental thermodynamic constraints for any thermofluid property variable of interest. While these Thermofluid Property Calculators prefer the use of iterative algorithms because they can be motivated by the underlying physics, their implementation on digital computers sometimes results in nonconvergence so that data cannot be obtained for arbitrary points on the saturation curve. In order to robustly interpolate between these missing points, the saturation curve is described as the image of a parameterized function (h,P)=ƒ(u), where u=0 at the low pressure limit on the liquid saturation curve, and u=1 for the low pressure limit on the vapor saturation curve. The value of u corresponding to a given (h,P) pair must be identified iteratively in this formulation, but methods for building lookup tables that provide practical acceleration for this lookup process are readily available in the literature.
Cartesian Coordinate Transformation
[0086]
[0087] This aligns the liquid saturation curve with the value x=0, while the vapor saturation curve is aligned with the value x=1. In this embodiment, the saturation curve-aligned coordinate ξ=x, which splits into two separate sets. This coordinate transformation used in this embodiment is only valid up to the critical pressure of the fluid, though additional aspects will be described that enable this to be extended to pressures above the critical pressure. This embodiment is useful in many practical circumstances because of the ubiquity of subcritical vapor compression cycles in air-conditioning, heat pumps, refrigerators, and energy recovery applications.
[0088] The process of computing the thermodynamic property functions begins with a pair of upper and lower limits on h and P 701, as well as a desired uniformly or non-uniformly sampled set of pressures P 702 at which the data will be obtained. For example, a user may specify that the pressure is sampled every 10 kPa from the low pressure limit to the maximum pressure limit (below the critical pressure).
[0089] With this data, the Thermofluid Property Calculator 704 (denoted in this diagram as TPC) is used to generate the data along the saturation curve 703 for a thermofluid property variable of interest along the saturation curve Ω.sub.s. Most Thermofluid Property Calculator tools, such as REFPROP, provide an explicit means for calculating this information as a function of one variable, such as the pressure. The resulting data 705 is provided to the next block 706, which calculates the coefficients of the saturation curve interpolating function {circumflex over (ƒ)}.sub.sat(u). As described in
[0090] Next, a data grid is generated 708 at which samples of the thermofluid property variable will be calculated by the Thermofluid Property Calculator tool. While the pressure samples 702 may be used at this step, a grid of samples 709 in the saturation curve-aligned coordinate, such as the thermodynamic quality x, must be specified. For example, a uniform spacing of x where values are separated by 0.01, may define the grid. Alternatively, a nonuniform spacing for the values of may be used. The values of x=0 and x=1 must also be included in this grid to ensure the correct representation of the locations at which the derivative discontinuities occur. Because the transformation between x and h is nonlinear and depends on P, the pressure-dependent upper and lower limits of x must then be calculated from the saturation curve interpolation function. The output of this step 710 is thus a vector of thermofluid property variables x.sub.j of length J and vector of pressures P.sub.k of length K at which data on the thermodynamic property of interest will be obtained from the Thermofluid Property Calculator tool.
[0091] The output 710 of the grid generation block 708 can be then used to generate the reference data on the grid points 711 in the transformed coordinate domain of p and x by using the Thermofluid Property Calculator tool. Because the grid is defined in the saturation curve-aligned coordinates (x,P), but the inputs for the Thermofluid Property Calculator tool are in the units of the input pair of thermofluid variables (h,P), the saturation curve interpolation function {circumflex over (ƒ)}.sub.sat(u) is used to calculate the inputs for the Thermofluid Property Calculation tool from the saturation curve-aligned coordinates (x,P) for every point on the data grid (x.sub.j, P.sub.k) for 1≤j≤J and 1≤k≤K, i.e.,
(h.sub.j,P.sub.k)=(x.sub.jh.sub.vap(P.sub.k)+(1−x.sub.j)h.sub.liq(P.sub.k),P.sub.k) (12)
[0092] This produces data for the third thermofluid property variable ρ.sub.jk at a Cartesian set of points in the (x,P) plane 713 which are aligned with the saturation curves.
[0093] The final step in this embodiment 714 calculates the coefficients of the thermofluid property function c.sub.ij over the single-phase region Ω.sub.1 and two-phase region Ω.sub.2 from the data 713 obtained from the previous step. This calculation is ensures that the derivative discontinuities associated with the saturation curve are reproduced at the correct location via the insight that knots of multiplicity l=p (where p is the degree of the spline) may be included in a B-spline basis function to locate changes in continuity of the derivative at specific points. By locating a knot of multiplicity l=p exactly on the saturation curve at x=0 and x=1, the resulting B-spline realization of a thermofluid property function possesses derivative discontinuities on the saturation curve while maintaining sufficient smoothness at all other points in the domain. These knot vectors, corresponding to the saturation curve-aligned coordinate axes, are then used to calculate the remaining coefficients c.sub.ij of the thermofluid property function. This calculation can be posed as solving a sequence of least squares problems for the control points of the B-splines first in one direction, and then the second direction. Methods described in subsequent embodiments can be used to perform this calculation. Because the numerical conditioning of this computation can sometimes be poor, Tikhonov regularization can be used to improve the performance of this fit by adding a small diagonal term to improve the condition number of the data matrix. After the conclusion of this fitting process, the output 719 includes all of the information used by the thermofluid property function, including the knot vectors and a set of coefficients that describe the observed data. These values and coefficients are then stored in computer memory.
[0094]
[0095] This step returns the specific values (x,P) 807 at which the B-spline function in the Spline Function Calculator 802 is to be evaluated. The Spline Function Calculator 802 computes the value of {circumflex over (ρ)}(P,x) in the saturation curve-aligned coordinates, as a function of the spline coefficients and knots stored in the data δ 805.
[0096] When using a thermofluid property function, the user may seek to obtain either a property variable or one of its derivatives. While the thermofluid property variable can be obtained through a straightforward evaluation of the thermofluid property function, the change in the coordinate system imposes additional computational needs for derivative computations due to the fact that the derivatives are with respect to the transformed coordinate system, rather than the natural coordinate system. When using these saturation curve-aligned coordinates, the available derivatives for property ρ for this embodiment are dρ/dP|.sub.x and dρ/dx|.sub.p, rather than dρ/dP|.sub.h and dρ/dh|.sub.p, as desired. A Derivative Coordinate Transformation 803 must therefore be used to transform the derivatives from the interpolating coordinate system into the engineering coordinate system; in the case of density, such transformations are given by the Jacobian of T,
[0097] These transformations require information about the properties on the saturation curves and their derivatives, so additional information in the Auxiliary Thermofluid Property Vector ζ 810 is needed from the Property Coordinate Transformation 801 to complete this calculation. After these transformations, the thermofluid property variable derivatives 811 with respect to the input fluid property variables (h,P) are produced as an output. The outputs of these calculations, being either properties or their derivatives, can then be used by a controller or optimizer to adapt the system behavior.
[0098] While this embodiment provides a means of computing thermofluid property variables in the subcritical region using a coordinate transformation that aligns the saturation curve with the coordinate axes in order to correctly represent the derivative discontinuities at the saturation curve, it has not addressed the subject of characterizing thermofluid property variables or thermofluid property functions in the vicinity of the critical point or in the supercritical region. This can be accomplished by using methods that are similar to those described above and combining them via blending functions.
[0099]
[0100] This blending function ƒ(x) and the complementary blending function 1−ƒ(x) can be used to combine functions because this function smoothly varies between 1 and 0, with the transition between these values centered at x.sub.0 and the slope of the transition between these values proportional to k. This function is useful because it can be used to easily select subdomains, and because it is differentiable. There is a transition band between the selected domain and the nonselected domain of a width controlled by k, which is typically located in a region where both functions to be blended accurately represent the composite function. Because it is difficult to succinctly visualize the process of blending thermodynamic functions together, this figure illustrates an examplar 1-D scenario in which function g.sub.1(x)=(5/64)x.sup.2 901 is valid for x<−2 and x≥2, while function g.sub.2(x)=5 902 is valid for −2<x<2. Two related blending functions are used for this process, where
[0101] The function g.sub.1(x), shown in the upper left plot, is multiplied by the blending function 1−ƒ.sub.1(x)(1−ƒ.sub.2(x)) 903, which preferentially selects the domain less than −2 and greater than 2, while the function g.sub.2(x) shown in the upper right plot, is multiplied by the complementary blending function ƒ.sub.1(x)(1−ƒ.sub.2(x)) 904. The result of the direct sum of these products 905 can be seen in the plot in the middle of this figure, which clearly shows that the regions of interest for these two disparate functions have been blended together.
[0102] A directly analogous approach can be used to blend together multiple thermofluid property functions, each defined on different but overlapping domains. For example, three overlapping domains can be defined to cover a large domain of interest on the (h,P)-plane, ranging from the subcritical to supercritical regions: a first subcritical domain, which does not extend up to the critical pressure; a second supercritical domain, which extends down into the subcritical region slightly, but which uses a simple approximation of the behavior around the critical point; and a third critical domain, which covers only the region immediately surrounding the critical point. Thermofluid property functions for each domain may be constructed as described in this embodiment, and a value of {circumflex over (p)}(h,P) for each domain can be calculated as described in this embodiment. If the pair (h,P) of input thermofluid variables lie in an intersection of these three overlapping domains, then the thermofluid property variables computed from each domain may be blended together to calculate an output thermofluid property variable. This output thermofluid property variable will vary smoothly between the subdomains of validity due to the differentiability of the blending function.
[0103] While a means of constructing and evaluating a thermofluid property function in the subcritical region of the (h,P)-plane have been described in this embodiment, similar methods may be used to construct thermofluid property functions in the supercritical region and around the critical point. Use of interpolating functions in the supercritical region is straightforward and can be directly extended from existing method for fitting B-splines, due to the lack of discontinuities in this region. Methods similar to the embodiment discussed above can be used to create multiple versions of a thermofluid property function in the vicinity of the critical point, but a different coordinate transformation must be used in this area due to the existence of a singularity in x at the critical point. One such coordinate transformation takes the engineering coordinates (h,P) to an alternate set of saturation curve-aligned coordinates (h,y), where y is defined as
for an appropriately chosen value of P.sub.min<P.sub.crit. This transformation also aligns the coordinate system with the saturation curve, though the alignment is with the y-axis, rather than the x-axis.
Normalized Polar Coordinates
[0104] A second embodiment of the invention defines a Fluid Property Coordinate Transformation from a pair of input fluid property variables to a pair of saturation curve-aligned variables (ξ, η) using a normalized polar coordinate transformation. B-Splines are used in the normalized polar coordinates to represent an approximation to the fluid property function. This embodiment has an advantage that it covers a domain that includes both sub- and super-critical regions of a fluid state.
Coordinate Transformations
[0105] Consider a fluid property such as density ρ (kg/m.sup.3), as a function of input fluid property variables pressure P.sub.e(Pa) and specific enthalpy h.sub.e, (kJ/kg) where the subscript e denotes that the variables are in engineering units. Fluid density is used to illustrate the embodiment, but it should be understood that P may represent any other fluid property variable. Pressure and specific enthalpy are used as input fluid property variables to illustrate the embodiment and for clarity of exposition, but it should be understood that these may be any other input fluid property variables.
[0106] Consider a domain of interest Ω on the h.sub.e−P.sub.e plane, on which an approximation of a fluid property function ρ, denoted {circumflex over (ρ)}(h.sub.e, P.sub.e), is constructed. Ω may include the two-phase region and also the liquid and vapor regions, and the super-critical region above the critical point. In this embodiment, a Fluid Property Coordinate Transformation is the composition of three coordinate transformations, but in other embodiments that use different input fluid property variables, for example, there may be less than three. Each of the three coordinate transformations is described below.
Scaling Coordinate Transformation
[0107] Choose an origin (h.sub.e0, P.sub.e0)∈Ω where h.sub.e0 is a specific enthalpy in engineering units (kJ/kg) and P.sub.e0 is a pressure in engineering units (Pa). The origin is typically near the center of Ω and inside the two-phase region. Choose values for two scaling factors, P.sub.s (Pa) and h.sub.s (kJ/kg), to define the scaling coordinate transformation as T.sub.1:R.sup.2.fwdarw.R.sup.2:(h.sub.e, P.sub.e)(h,p) as
h=(h.sub.e−k.sub.e0)/h.sub.s (20)
p=(log(P.sub.e)−log(P.sub.e0))/P.sub.s. (21)
[0108] The scaling factors are chosen such that the dimensionless p and h are O(1) over Ω. Denote the origin in the (h,P) coordinates as (h.sub.0, p.sub.0). The inverse scaling coordinate transformation, T.sub.1.sup.−1:R.sup.2.fwdarw.R.sup.2:(h,p)(h.sub.e, P.sub.e), is
h.sub.e=h.sub.s.Math.h+h.sub.e0 (22)
P.sub.e=exp(P.sub.s.Math.p+log(P.sub.e0)). (23)
[0109] In some embodiments that make use of other input fluid property variables, T.sub.1 may be defined differently, in order to scale the variables to be O(1) over Ω, as is well known to those skilled in the art. In some embodiments, the two input fluid property variables are O(1) over Ω, so that scaling is not needed. In this case, T.sub.1 may be the 2×2 identity matrix.
Polar Coordinate Transformation
[0110] In the scaled (h,p) coordinates, define a polar coordinate transformation T.sub.2:R.sup.2.fwdarw.R.sub.2:(p,h)(r,θ) as
r=√{square root over (h.sup.2+p.sup.2)} (24)
θ=atan(p,h), (25)
where atan(⋅,⋅) is the two-argument, four quadrant inverse tangent function. The inverse polar coordinate transformation T.sub.2.sup.−1:R.sup.2.fwdarw.R.sup.2:(r,θ)(h,p) is
h=r.Math.cos(θ) (26)
p=r.Math.sin(θ). (27)
Saturation Curve Radial Distance Normalization
[0111]
(r.sub.1,θ.sub.1)=T.sub.2(h.sub.r0,p.sub.r0) (28)
and
(r.sub.j*,θ.sub.j*)=T.sub.2(h.sub.l0,p.sub.l0). (29)
(j* is defined below.) Then the saturation curve between (h.sub.r0, p.sub.r0) 1010 and (h.sub.l0, p.sub.l0) 1011, including the critical point (h.sub.c, p.sub.c) 1004, may be represented on the (h,p) plane in polar coordinates as the image of a function 1009 ƒ.sub.sat:R.fwdarw.R:θr
r.sub.sat=ƒ.sub.sat(θ) for θ∈[θ.sub.1,θ.sub.j*]. (30)
[0112] The saturation curve Ω.sub.s 1003 in scaled coordinates (h,p) is then the image of (h.sub.sat, p.sub.sat)=T.sub.2.sup.−1(r.sub.sat,θ)
[0113] In this embodiment, functions are periodic in θ, but ƒ.sub.sat has been defined in equation (30) for only the closed interval θ∈[θ.sub.1, θ.sub.j*]. As shown in
[0114] In this embodiment, ƒ.sub.sat (θ) 1009 is approximated by an interpolating, periodic B-spline {circumflex over (ƒ)}.sub.sat that is fit through data for r on the saturation curve Ω.sub.s that is generated by a thermofluid property calculator such as REFPROP or CoolProp, or other form of data. But it should be understood that other functional representation, such as NURBS or Fourier series that may be constructed to fit this data are other embodiments of this invention.
[0115] A number N.sub.1 of pairs of values of (h,p) 1014 are computed using a Thermofluid Property Calculator (304, 1705) and the transformations T.sub.1 along the liquid side of the saturation curve from (h.sub.r0, p.sub.r0) 1010 up to but not including the critical point (h.sub.c, p.sub.c) 1004. A number N.sub.2 of pairs of values of (h,p) 1015 are computed using a Thermofluid Property Calculator and the transformations T.sub.1 along the vapor side of the saturation curve from (h.sub.l0, p.sub.l0) 1011 up to but not including the critical point (h.sub.c, p.sub.c) 1004. For many fluids the values of pressure and specific enthalpy on the saturation curve near the critical point is difficult to compute and may be inaccurate, but the value of pressure and specific enthalpy at the critical point may be computed precisely. Therefore, a small gap between data points may appear around the left side 1013 and right side 1014 of the critical point 1004. However, values for pressures below this gap may be precisely computed using REFPROP, CoolProp or an equivalent thermofluid property calculator. Add the calculated value of (h.sub.c, p.sub.c) 1004 to the set of data from the vapor and liquid saturation curves, giving N=N.sub.1+N.sub.2+1 data pairs. This set is transformed into polar coordinates using T.sub.2 giving a set of data points (r.sub.i,θ.sub.i) for 1≤i≤N defining the radial distance r.sub.i from the origin 1005 to the saturation curve Ω.sub.s 1003 at discrete values of θ.sub.i.
[0116]
[0117] This embodiment of {circumflex over (ƒ)}.sub.sat(θ) can be expressed mathematically as
where N.sub.i,3.sup.n(θ) are 3-degree B-spline basis functions that depend on knots θ.sub.i, and c.sub.si are coefficients, 1≤i≤N. In this embodiment, {circumflex over (ƒ)}.sub.sat(θ) is computed algorithmically for a value θ using the computationally efficient, recursive formulae including equations (6)-(7), modified slightly for periodic basis functions, that take as input a value of θ, the knots θ.sub.i and the coefficients c.sub.si, 1≤i≤N, and compute a value for {circumflex over (ƒ)}.sub.sat, and which are known to those skilled in the art [4, 7].
[0118] A third coordinate transformation T.sub.3:R.sup.2.fwdarw.R.sup.2:(r,θ)(
with inverse T.sub.3.sup.−1:R.sup.2.fwdarw.R.sup.2:((r,θ)
r=
θ=
[0119] In this embodiment, the distance from origin to saturation curve is normalized to one, but it should be understood that other embodiments may normalize the distance to any other constant value. In this embodiment, the saturation curve-aligned variables (ξ, η) are ξ=
[0120]
Polar Splines
[0121] The fluid property function ρ is approximated by a two-dimensional spline function {circumflex over (ρ)} of degree p defined in the (
Knot Points
[0122]
[0123] Referring to
[0124] In the
Basis Functions
[0125] Once knots are defined in the
[0126] In the
[0127]
[0128] Indexing of B-spline functions in polar coordinates is more complex than for Cartesian coordinates. For the
I={i∈I:1≤i≤i.sub.max}, (36)
where i.sub.max is the number of spline basis functions. Let i.sub.sn∈I and i.sub.sp∈I denote the indices that correspond to
I.sub.s={i.sub.sn,i.sub.sp}, (37)
I.sub.1={i∈I:i<i.sub.sn}ø{i∈I:i>i.sub.sp} (38)
I.sub.2={i∈I:i.sub.sn<i<i.sub.sp}, (39)
so that I.sub.s contains the basis indices in the
[0129] In the {circumflex over (θ)}-direction, this embodiment has a different number of basis functions depending on the fluid state region, making the B-spline indexing dependent on the region.
[0130] In the two-phase region Ω.sub.2, the B-spline basis functions in the
J={j∈I:1≤i≤j.sub.max}. (40)
[0131] On the saturation curve, the density ρ is continuously differentiable as a function of θ except at the point θ.sub.j* 1107, and possibly at the point θ.sub.1 1106, where there is a transition between the actual saturation curve and the extended saturation curve. This embodiment assumes ρ is continuously differentiable at
J.sub.s={j∈I:1≤i≤j.sub.max+p−1}. (41)
[0132] There are p−1 more basis functions on Ω.sub.s because the knot at knot at
As illustrated in
[0133] Since the region Ω.sub.1 1302 is only partially annular, the B-spline functions in the
J.sub.1={j∈J:j≤j*}∪{j∈J:j≥j.sub.max−p+1}. (42)
Normalized Polar Spline Functions
[0134] The normalized polar spline function {circumflex over (ρ)} is expressed mathematically as
where N.sub.i,p(
[0135] To compute values for the coefficients c.sub.ij in equation (43), this embodiment is based on the realization that for values of (
[0136] This is because all of the B-spline basis functions in the
[0137] In this embodiment, the coefficients c.sub.ij for the Ω.sub.s term in equation (43) are computed first using equation (44). For each value of
[0138] Once the coefficients c.sub.ij are computed for the saturation curve Ω.sub.s, then equation (43) decomposes into two decoupled equations
for the two-phase region Ω.sub.2, and
for the region Ω.sub.1. Note that the terms on the left-hand sides of (45) and (46) labeled Ω.sub.s may be assigned a numerical value given a value for (
Derivative Calculation
[0139] Derivatives of {circumflex over (ρ)} with respect to the (
where DT.sub.1, DT.sub.2 and DT.sub.3 are the Jacobians of T.sub.1, T.sub.2 and T.sub.3, respectively. Other embodiments provide for calculation of higher-order derivatives of {circumflex over (ρ)} with respect to the input fluid property variables h.sub.e and p.sub.e by further differentiating (47) and making use of higher-order derivatives of {circumflex over (ρ)} with respect to
Normalized Polar Spline Function Calculation
[0140]
[0141]
[0142] The figure illustrates a vapor compression cycle (system) 1711 is connected to the controller 1700 via sensors 1709 and actuators 1710. In some cases, the controller circuit 1700 includes an input interface 1707 connected to the sensors 1709, an output interface 1708 connected to the actuators 1710, a processor 1701, a storage 1702 and a memory unit 1706. The storage 1702 can store data 1703, a computer-implemented controller program 1704 and a property calculator (program) 1705. The computer-implemented controller program 1704 can include a thermofluid property calculator, a fluid property Coordinate Transformation (program), a Spline Function Calculator and a Derivative Coordinate Transformation (program).
[0143] The input interface 1707 is configured to receive/acquire measurement data from the sensors 1709, and the output interface 1708 is configured to transmit control signals/commands to the actuators 1710 to operate the actuators according to the control parameters (control data) computed based the controller program 1704 using the processor 1701. In some cases, the input interface 1707 and the output interface 1708 may be integrated into a input/output interface.
[0144] The vapor compression system 1711 includes valves, compressor, and heat exchangers. In some cases, the vapor compression system 1711 may include variable actuators and also incorporates a controller 1700 that regulates their behavior. The vapor compression cycle (system) 1711 can be configured in a manner similar to the vapor compression system 102 in
[0145] The input and output interfaces 1707 and 1708 provide the facility of exchanging data between the various components of the controller 1700, including processor 1701, storage 1702 with data 1703, controller 1704, and property calculator 1705, and memory 1706. The input and output interfaces may consist of a communication infrastructure such as a controller area network (CAN) bus or other medium that allows data to be physically transferred through serial or parallel communication channels (e.g., copper, wire, optical fiber, computer bus, wireless communication channel, etc.).
[0146] In an embodiment, values of measurements of temperatures or pressures at specific places in the cycle, e.g., 109, 110, 111, or 112, are obtained by sensors 1709 and then transmitted over a communication channel and converted into a computer-readable form in the input interface 1707. This computer-readable representation of the input thermofluid properties 804 from the input interface 1707 is then used by the processor 1701 along with the data 1703 (also referred to as 805 in
[0147] The above-described embodiments of the present invention can be implemented using hardware, software, or a combination of hardware and software.
[0148] Also, the embodiments of the invention may be embodied as a method, of which an example has been provided. The acts performed as part of the method may be ordered in any suitable way. Accordingly, embodiments may be constructed in which acts are performed in an order different than illustrated, which may include performing some acts simultaneously, even though shown as sequential acts in illustrative embodiments.
[0149] Use of ordinal terms such as “first,” “second,” in the claims to modify a claim element does not by itself connote any priority, precedence, or order of one claim element over another or the temporal order in which acts of a method are performed, but are used merely as labels to distinguish one claim element having a certain name from another element having a same name (but for use of the ordinal term) to distinguish the claim elements.