THERMOSYS 4.3. Getting Started Guide

Similar documents
AIR CONDITIONER PERFORMANCE RATING

Simscape Refrigerant Loop Product

Ion Gateway Cellular Gateway and Wireless Sensors

Numerical Simulation of a New Cooling System for Commercial Aircrafts

PWM. Solar Charge controller with Ethernet. Solar Smart PWM 20Amp. Hardware Description : Release : 19 June 2014

Installing ProSeries 2005

LineGuard 2300 Program User Manual (FloBoss 107)

Milestone XProtect Alarm Matrix Integration 1.0

Monitoring Operator Guide. Access Control Manager Software Version

SPLIT SYSTEMS SELECTION & OPTIMIZATION GUIDE

AN EXPERIMENTAL STUDY OF A REFRIGERATING PLANT WHEN REPLACING R22 WITH HFCs REFRIGERANTS

Installing ProSeries 2004

Tutorial: How to Download and Install Lumberyard v or greater

Jurnal UMP Social Sciences and Technology Management Vol. 3, Issue. 3,2015

Bosch TCU Integration Module Administrator's Guide

Avigilon System Integration Guide. for the Avigilon Control Center and Access Control Manager

TIL Suite simulates Thermal Systems. Software containing models for thermophysical properties, thermal components and systems

Procidia iware AlarmWorX32. AlarmWorX32 Viewer January 2010

ModSync Sequencing System Installation & Operation Manual. For use with Fulton Steam Boilers.

Subcooling is defined as the point at which liquid is cooled below it s condensing temperature. Example: Refrigerant R404A

Implementation and testing of a model for the calculation of equilibrium between components of a refrigeration installation

Niagara4 Technical Certification Program Student Guide DAY 1 DAY 2

Alarm Coordination Connected Components Building Block. Quick Start

IP TRONIK. Project Scope: Simulation of car refrigerant circuit with the software GT SUITE and its comparison with real test bench measurements

CALIBRATABLE 7-FUNCTION THERMO- HYGROMETER USER S MANUAL

Simplex Panel Interface Guide

Seyedeh Sepideh Ghaffari 1 & Seyed Ali Jazayeri 2

Technical Information

DeltaV Operate. DeltaV Operate. Introduction. DeltaV Product Data Sheet. Robust and secure plant operations

Refrigeration Controller Operator s Manual (HRC) PO Box 6183 Kennewick, WA

BRS Mechanically-Agitated BioReactor MA 100. Quick Reference Guide Ver2.0

Milestone SMI Intrepid II Perimeter Module 1.1 User s Manual

HERCULES 6 GRAPHICS SYSTEM

Alarm System Example

1.1. SCOPE OF THE WORK:

How to Configure the Alarm Action Outgoing Cell Call MultiLogger Application Note #14

Mechanical Heat Pump R515

i-vu CCN 4.0 Owner s Guide

ENSC 388: Engineering Thermodynamics and Heat Transfer

Technical Bulletin (TB-0037)

SR SERIES WATER SOURCE HEAT PUMP SYSTEM SELECTION AND OPTIMIZATION GUIDE

Alarms Updated 03/26/2018

Technical Information

Scientific Principals and Analytical Model. Charcoal Cooler. Lisa Crofoot MECH 425, Queens University

"COP Enhancement Of Domestic Refrigerator By Sub cooling And Superheating Using Shell &Tube Type Heat Exchanger"

ND4000 Manual Marine Hydraulics

Electronic Pellet Burner Controller NPBC-V3-1

The Refrigeration Cycle

ENERGY ANALYSIS OF HEAT PUMP WITH SUBCOOLER

1 Air Handling Units In ICE

SAFETY CERTIFIED MODEL FP-700 COMBUSTIBLE GAS DETECTOR

Installer Manual KNX Touchscreen Thermostat

CHAPTER 7 PERFORMANCE ANALYSIS OF VAPOUR COMPRESSION REFRIGERATION SYSTEM IN HYBRID REFRIGERATION SYSTEM

(Refer Slide Time: 00:00:40 min)

Oil Stabilization Optimization

Carwin COMPRESSOR SELECTION PROGRAM

User Manual. Digi-Sense TC9500 Advanced Multiparameter Temperature Controller with Thermocouple, Thermistor, and RTD Inputs

Operations Manual TS400. Test Station for G450/G460 Gas Detector

SBS5311 HVACR II Experiment 2: Analysis of the Combined Rankine and Vapour Compression Cycle

M3092 Programmer. User s Manual. M3096B-33 E Copyright 2017 SELCO

GEM-C Wireless User & Installation Manual. Revision October Apollo Solar Electric Limited. Documentation

Added password for IP setup page : Password must be in IP format!

CODAC Core System 5.4 CS-Studio Release Notes

Electronic Pellet Burner Controller NPBC-V3M

Simple Compression Refrigeration Circuit Unit TSCR

Virtual Household Refrigerators at Steady-State and Transient Conditions. Numerical Model and Experimental Validation.

Bristol s Six Principles for Good Solar Hydronic Design SLASH-D: Software for Solar Heating Design

Ambient Temperature/ Relative Humidity & Dew Point Temperature Sensors to USB Output. Model LFS108B

EnergyGauge USA Release Notes

Math. The latent heat of fusion for water is 144 BTU s Per Lb. The latent heat of vaporization for water is 970 Btu s per Lb.

Millennium Xtra. Millennium ATMA setup and configuration guide. May Millennium Group, Inc.

PowerRouter application guideline

Milestone XProtect Alarm Matrix Integration 1.0

Configuration and Operation Manual for the Unipos

CLIMA I Thermostat ZENNIO

Lesson 25 Analysis Of Complete Vapour Compression Refrigeration Systems

Tempered Water Logic Control OPERATION l TROUBLE SHOOTING

HPE Knowledge Article

Chapter 11. Refrigeration Cycles. Study Guide in PowerPoint

OPERATION MANUAL. Packaged air-cooled water chillers and packaged reversible air to water heatpumps EWAQ009ACV3 EWAQ010ACV3 EWAQ011ACV3

CompleteView Alarm Client User Manual. CompleteView Version 4.6.1

Technical Information

INSTRUCTION MANUAL 4-WAY BALL VALVE Digital Manifold

SIMATIC IPC DiagBase SIMATIC. Industrial PC SIMATIC IPC DiagBase. Introduction. DIAG software components. Quick-Start Guide

VIDEO CONTROLS LIMITED

Moxa Proactive Monitoring User s Manual

CFD Analysis of a 24 Hour Operating Solar Refrigeration Absorption Technology

CALIBRATABLE 3-FUNCTION THERMO- HYGROMETER USER S MANUAL

Substation Monitoring System

Avigilon Control Center 5 System Integration Guide

Thermodynamic Calculations of Two-Stage Vapor Compression Refrigeration Cycle with Flash Chamber and Separate Vapor Mixing Intercooler

Summary of Comments (Washington Revisions November 7, 2000) Update November 27, 2000

Dynamic Simulation of Double Pipe Heat Exchanger using MATLAB simulink

EkoAir Heat exchanger selection manual.

Avigilon System Integration Guide. for the Avigilon Control Center and Access Control Manager

1 DOCUMENT REVISION CONTROL ELEMENTS... 9

Transient Groundwater Analysis with Slope Stability

presentations the week of the final exams. Anyone who misses the appointment will receive a grade of zero.

Monitoring Software for NPBC-V3M-1 User Manual

Smoke Layer Height and Heat Flow through a Door

Transcription:

THERMOSYS 4.3 Getting Started Guide February 2016

Table of Contents 1 Installation and File Organization... 3 2 THERMOSYS by Example... 4 2.1 THERMOSYS Component Descriptions... 5 2.1.1 Compressor... 6 2.1.2 Condenser... 7 2.1.3 Thermostatic Expansion Valve... 8 2.1.4 Evaporator... 9 2.1.5 Box Model... 10 2.2 Simulink Blocks: On-Off Controller and Simulation Settings... 11 2.3 Additional THERMOSYS Models Not Applied in this Example... 12 3 Running Simulations...13 4 Future Updates and Advanced Use...14 2

Overview: THERMOSYS is a toolbox designed for the Simulink environment within MATLAB that models and simulates vapor compression systems. Component models including a compressor, evaporator, condenser, multipurpose tank, valves, and more allow the simulation of these systems. Coupled with the power of the existing Simulink library, control schemes can be applied in order to aid the design and effective control of thermal systems. NOTE: This Getting Started Guide is for versions of MATLAB prior to 2012b. A second guide for Matlab 2012b and newer will be issued soon with updated screenshots for the new User Interface. 1 Installation and File Organization THERMOSYS includes separate instructions for installation and licensing which should be followed before using the program. Before each use of THERMOSYS, ensure that the entire install folder and its subfolders are part of the MATLAB path. The Simulink Library Browser will display the THERMOSYS toolbox if this is done properly. The toolbox should display a Components and a Fluid Properties icon. The Components section is where the user can drag blocks into Simulink models. With this in mind, we can close Simulink and take a moment to browse through the THERMOSYS install directory. Within the install folder, several other subfolders and files are available and discussed below: Component S-Functions This contains the code that each Simulink block calls. These are compiled code and are unavailable for viewing or editing. Fluid Tables This directory contains fluid property tables for the different refrigerants and gases used within THERMOSYS. THERMOSYS 4.1.1 includes properties for Air, Ammonia, CO 2, Glycol(75%)/Water(25%), R21, R134a, R245fa, R404a, R407c, R410a, R507a, and Water. In a pending update, software will be provided that allows for the generation of these tables for additional refrigerants using the NIST software REFPROP. Heat Transfer Coefficients This contains heat transfer coefficients necessary for the models. These are compiled code and are unavailable for viewing or editing. HelpFiles This contains the various help files about the various components which will be accessible in the MATLAB Simulink help browser. Icons This directory contains the images used in each of the THERMOSYS blocks. It is not recommended that these be altered. Licensing This directory contains initialization and validation files for the THERMOSYS licensure system. The thermosys.license.dat file you will receive after sending in your license request should be placed in this folder. Sample Systems This directory contains sample refrigeration systems. These are useful for reference and show many different block connections. They also demonstrate how other Simulink blocks can be used to implement control on the systems. 3

Single Component Models This directory contains simple examples with individual components for a basic understanding of their inputs and outputs. Support Functions Some of these functions are called within the various component models, while others are user-oriented utilities. Within this folder, Fluid Table Generation has compiled code which generates fluid property tables from REFPROP. However, the MATLAB interface provided with the purchase of REFPROP is only compatible with MATLAB versions prior to 2007. For this reason, a separate package for fluid property tables is in development that is compatible with current versions. With the current release, these functions are not packaged for standalone use, and are only called by the THERMOSYS blocks when needed. slblocks.m This file automatically adds the THERMOSYS toolbox to the Simulink Library Browser. It must be part of the MATLAB path before opening Simulink, but no other user interactions are needed. thermosys.mdl This file contains the actual THERMOSYS blocks. Within this file, the masks (which contain the user interface and default parameters) can be viewed and edited. Editing the block masks is not recommended. The user may simulate their own system by dragging and dropping blocks from this file or the Library Browser into a new Simulink model, as shown in Section 2 of this guide. 2 THERMOSYS by Example The following is a demonstration example using Sample System #3 to get users started with THERMOSYS. Open Sample_3_TXV_Box_On_Off_Cycling.mdl in the Sample Systems. This can be accomplished by either double clicking the file within your file browser (which should then open MATLAB and the sample), or by opening the file within MATLAB or Simulink. Sample 3 is used for this demonstration as it includes a wide variety of components along with a usercreated control system (using non-thermosys Simulink blocks). These include a refrigeration loop consisting of a compressor, condenser, expansion valve, and evaporator. This loop (in conjunction with a simple On-Off controller) regulates the temperature within a Box Model (essentially a room affected by its environment). This example, as provided, regulates the temperature of the box to a value between 19 and 20 degrees C. With the sample open, run the model by clicking the play button shown at the left below in Figure 1. One can then double-click the eyeglasses-shaped icon within the model as indicated in the right of the figure below to open a scope view of the box temperature changing in time. Figure 1. Running and Viewing Sample 3. 4

After running the simulation for a few seconds, it is advised to click the Autoscale button within the scope view or to select Autoscale from the right-click drop-down menu. NOTE: repeatedly autoscaling the embedded scopes in the examples can crash the simulation. This is not the case for the discrete scope blocks like. If the simulation crashes when autoscaling the scope accept the error message and restart the simulation. When run successfully, the scope should display a drop in temperature to 19 degrees, and at this point the refrigeration system shuts down, allowing the environment to heat the box. With more simulation time, the refrigeration system enables again when the temperature has risen to 20 degrees. A sample of system pressures and box temperature output with the TXV cycling on and off is shown below in Figure 2. Figure 2. Sample 3 Successful Code Output (3000 sec.). 2.1 THERMOSYS Component Descriptions All components applied in Sample 3, their connections, and their initial conditions are now described in detail. Special considerations for the components will also be mentioned. Following the THERMOSYS components used in Sample 3, the remaining Simulink components will be overviewed in the Section 2.3. In this example, all inputs and outputs to most blocks are linked to Simulink standard goto and from tags for neatness. Figure 3 shows the full simulation model. 5

Figure 3. Full Simulation Loop for Sample 3 (block displays in Text mode). 2.1.1 Compressor Figure 4. Compressor Block. The Compressor Block shown in Figure 4 has four inputs and two outputs. The [rpm] from tag feeds into the compressor s input. The evaporator exit pressure [Pe_out] is fed into the compressor s input pressure ( ) and the desired compressor output pressure [Pc_out] is assigned to the compressor block s output pressure input ( ). Finally 6

the compressor s input enthalpy ( ) is set to the evaporator s exit enthalpy [He_ro]. On the output side, the compressor block produces the mass flow rate ( which this example assigns into the [m_comp] tag. Aside from the block connections, there are additional parameters that must be set by double clicking the block. The Compressor Parameters tab contains the input for the internal compressor volume and outlet enthalpy time constant, which are constant during the simulation, and the compressor map file name CompProp. The Refrigerant Properties tab has an input for the refrigerant data filename (ex. R134a ); additional fluid files can be generated and must be placed in the Thermosys/Fluid Tables folder, and the selected refrigerant should be consistently selected across all blocks connected to each flow loop (note: in Thermosys 4.3, the selected fluid name of each block is displayed at the top of the block). Inlet and outlet pressures and temperatures are specified as initial conditions and should correspond with the surrounding components. The Initial Conditions tab allows setting initial inlet and outlet pressures and temperatures, as well as initial mass flow and compressor speed. The temperature and pressure for these locations are related and should be consistent. For example, if a saturated vapor exits the compressor, temperature and pressure are direct functions of one another. Compliance with the refrigerants properties will help ensure a stable system. Mass flow and compressor speed define their respective initial conditions and are straightforward. The Display tab allows the user to choose between Symbol and Text display modes. 2.1.2 Condenser Figure 5. Condenser Block. The Condenser Block shown in Figure 5 takes in an air flow (with temperature) as well as a refrigerant input mass flow rate, output mass flow rate, and refrigerant input enthalpy, and it returns the refrigerant output pressure, enthalpy and temperature along with some additional diagnostics. This totals five inputs and seven outputs. As with the compressor, most of the inputs and outputs are either pulled from from tags, or pushed into goto tags, to keep the inter-block connections clean. The incoming air mass flow rate ( ) is assigned from the [mc_air_in] tag. The input air temperature ( ) pulls from the [Tc_air_in] tag. The refrigerant mass flow from the compressor [m_comp] is supplied to the refrigerant mass flow 7

input ( ), and the desired condenser output mass flow rate (determined by the TXV valve) [m_valve] is passed into the appropriate condenser block input (.. The enthalpy of the refrigerant (coming from the compressor) [Hk_ro] is fed into the appropriate input ( ). The important outputs for the condenser are refrigerant output pressure ( )) which feeds into the [Pc_out] tag (and therefore into the TXV valve), and refrigerant output enthalpy ( ) which goes into the [Hc_ro] tag (and from there the TXV valve).). In addition to these two outputs, another five are provided, but for this example, they are not used to feed into any other blocks, and are simply attached to scopes so their values can be observed. These additional five outputs are: the refrigerant output temperature, the air output temperature, the wall temperature during the 3 operating phases (Superheated, Two-phase, Sub-cooled), the lengths for each phase zone, and the current mass in the condenser. When double clicking the block, its parameters are shown. The Condenser Block has six tabs with inputs to be set by the user: Condenser Exchange Geometry, Wall Properties, Parameter Adjustment Factors, Refrigerant Properties, Air Properties and Display. The user should refer to the THERMOSYS help files for further information. 2.1.3 Thermostatic Expansion Valve Figure 6. Thermal Expansion Valve Block (TXV). The Thermostatic Expansion Valve (TXV) Block shown in Figure 6 is a metering device, placed between the condenser and evaporator, which has some means of control based on the evaporator exit conditions. This block takes in the desired input and output pressure and input fluid enthalpy, and returns the corresponding mass flow rate and exit fluid enthalpy, as well as some valve parameters. As in this example, the pressure exit on each side of the valve is determined by other components, so [Pc_out] and [Pe_out] are inputs feeding in from the 8

compressor and the evaporator into the corresponding block inputs and, respectively. Note that [Pe_out] is used twice as an input. The second instance corresponds to the label P eqlzr in the library blocks, and in this case is set to match the downstream pressure of the evaporator [Pe_out]. This allows simulation of an internally equalized TXV. Attach a different pressure source to the P eqlzr to simulate an externally equalized TXV. The valve has a switch for enabling and disabling, which is supplied a constant value of 1 (indicating enable) in this Sample. When the switch has input equal to 0, the valve is closed, mass flow rate will report zero. Outputs for the valve are mass flow through the valve ( which is tied to the [m_valve] tag, and output enthalpy sample. which is not used by any other blocks in this Double clicking on the TVX block brings up its parameters which are organized on five tabs: Valve, Cv Data, Bulb, Display, and Refrigerant Properties, which all contain inputs to be set up by the user. More information on how to set up these tabs is available in the THERMOSYS help files. 2.1.4 Evaporator Figure 7. Evaporator Block. Much like the condenser, the evaporator takes in an air mass flow rate and temperature, as well as a refrigerant input and output mass flow rate and enthalpy, and returns the corresponding output refrigerant pressure, temperature and enthalpy, as well as the output air temperature. It further returns some additional evaporator diagnostics and values. In this example, the evaporator air input mass flow rate ( ) takes in the [me_air_in] tag, and the air temperature (coming from the [Te_air_in]) is fed into the evaporator air 9

temperature slot ( ). As the evaporator is placed between the TXV valve and the compressor, its input refrigerant mass flow ( ) comes from the [m_valve] tag, which takes it values from the TXV block, and the desired output mass flow rate ( ) takes its value from the compressor mass flow rate [m_comp]. Finally, the refrigerant s input enthalpy ( ) takes its value in this example from the refrigerant coming out of the condenser, [Hc_ro]. The output refrigerant pressure ( ) is fed into the [Pe_out] tag for use in the TXV and Compressor, as is the output refrigerant enthalpy ( ) to the [He_ro] tag, also needed for the Compressor s input side. The refrigerant output temperature is moved into the [Te_ref_out] tag for use with the TXV, while the air temperature is moved into the [Te_air_out] tag for use as a Box Model Block input. The refrigerant s effective cooling power ( ) is passed into the [Capacity] flag for use with the box model. The remaining the parameters are not needed for this example, and are attached to the scope for observation. For a full description of these as well as the Evaporator mask parameters inputs, see the THERMOSYS help files. 2.1.5 Box Model Figure 8. Box Model Block. The Box Model block is used for simulating a refrigerated trailer or similar enclosure exposed to outside elements with the effect of altering the interior environment. The inputs are: Q ref. [W] which is fed from [Capacity] from the Evaporator V dot [m 3 /hr] which is determined from [me_air_in] and [Te_air_out] from the Evaporator T amb. [C] which is assumed to be the same as the Condenser air input [Tc_air_in] 10

Various input conditions [Wind], [Solar], [Door], and [Product] defined as Box Model Inputs (see Figure 9 below) Outputs include the resultant internal air temperature (which is subsequently pushed to the [Te_air_in] flag, and used as input air for the evaporator), the internal and external Wall temperatures, the product temperature, and a load vector containing various heat loads in Watts. The Box Model parameters are organized on five tabs: Box listing box dimensions, UA value, and initial temperatures Product listing product dimensions and thermal characteristics Door listing door dimensions, and protection rating Solar listing emissivity of the box and the solar view factor Display which allows the user to select between the Text and Symbol display modes Figure 9. Box Model Inputs. 2.2 Simulink Blocks: On-Off Controller and Simulation Settings 11

Figure 10. Simulink Blocks. This example uses Simulink blocks to define constant environmental inputs for the Box Model. In addition, a simple controller is made in which the air temperature leaving the box is compared to a set point. If the temperature reaches the set point, an off signal is sent and the compressor is spun down (rpm = 0). In addition, the air cooling for the evaporator and condenser is disabled. When the temperature reaches an upper bound these are re-enabled. More complicated controls can be implemented (for instance, see Sample 1: TXV PI Control for an example of a proportional-integral controller), and parameters held constant in this example could be allowed to vary, such as RPM. PID controls are also possible, varying parameters such as compressor rpm or external air temperature. This illustrates the power of THERMOSYS within Simulink : any control scheme imaginable can be applied to these thermodynamic systems. 2.3 Additional THERMOSYS Models Not Applied in this Example Electronic Expansion Valves (EEV): These have very similar inputs/outputs/parameters to the TXV. There are both map and poly versions. The former has its parameters empirically mapped, while the latter is instead fitted with a polynomial. The Electric Expansion Valve - Poly is included in Sample 4. Multipurpose Tank Block: This block can be used to model a variety of refrigerant tanks applied in a system design, for example a receiver placed between the evaporator and compressor, or at the exit of the condenser to avoid undesirable fluid phases in the compressor and expansion valves respectively. 12

Hydraulic Resistance Block: This calculates a mass flow rate from a pressure difference in a tube and returns the new enthalpy. There are three versions of this corresponding to three different models: (1) The Static Valve model which requires only specification of a flow coefficient and a max flow; (2) the Full model which accounts for the pipe dimensions and uses an adaptive iterative model dependent on the flow being vapor to vapor, two-phase to two-phase, or two-phase to vapor transition; and (3) the Swamee- Jain model (non-iterative). Plate Heat Exchanger Blocks: Two fluid models for plate heat exchangers for both condenser and evaporator roles have been added to THERMOSYS. These operate on similar principles to the finned tube heat exchanger blocks. The details are described further in the help files. 3 Running Simulations Once a model has been built, linked, and has all its initial conditions defined, it is ready to be simulated. In the example, press Ctrl + e to enter the configuration parameters, or choose Configuration Parameters from the Simulation drop down menu. Start and stop times are editable problem variables within this window. It is strongly recommended to begin any new THERMOSYS models by using the parameters defined here and in the other Samples as they are relatively stable for similar configurations. If stability or accuracy is problematic, adjusting step sizes and error tolerances are options, but will increase computation time. See Figure 11 for the recommended settings. Figure 11. Configuration Parameters. 13

Results can be stored with Simulink scope blocks and exported at will, or passed back into MATLAB, using standard Simulink blocks. Users can create their own blocks to streamline this process in the event large amounts of data collection are necessary. 4 Future Updates and Advanced Use As mentioned above, while several fluid property tables are currently included in THERMOSYS 4.3, a software package for creating fluid property tables is in development. The default maps for the compressor and TXV performance are calibrated to specific hardware. The help files contain instructions on how to create user-defined maps for valves and compressors. Additionally, if THERMOSYS 4.3 is used with Matlab 8 (R2012b) or newer, the fluid tables will automatically populate a drop-down list, instead of the user needing to type in filenames. 14