Object-oriented quasi-3d sub-zonal airflow models for energy-related building simulation

Similar documents
Fluid Flow Modelling with Modelica

Proceedings of CLIMA 2000 World Congress, Brussels, Belgium. Simplified Method for Indoor Airflow Simulation

SIM_ZONAL: A SOFTWARE TO EVALUATE THE RISK OF DISCOMFORT: COUPLING WITH AN ENERGY ENGINE, COMPARISON WITH CFD CODES AND EXPERIMENTAL MEASUREMENTS

CHAPTER 7 NUMERICAL MODELLING OF A SPIRAL HEAT EXCHANGER USING CFD TECHNIQUE

THERMAL ANALYSIS OF AN INDUCTION MOTOR BY HYBRID MODELING OF A THERMAL EQUIVALENT CIRCUIT AND CFD

THERMAL PERFORMANCE EVALUATION OF AN INNOVATIVE DOUBLE GLAZING WINDOW

PRESSURE BOUNDARY CONDITIONS IN MULTI-ZONE AND CFD PROGRAM COUPLING

This chapter focuses on the study of the numerical approximation of threedimensional

NUMERICAL MODELLING OF TEMPERATURE AND AIR FLOW DISTRIBUTION IN ENCLOSED ROOM

EXPERIMENTAL STUDY OF THE DISCHARGE COEFFICIENT

Dynamic simulation of DH house stations

Simulation and improvement of the ventilation of a welding workshop using a Finite volume scheme code

Vertical Mantle Heat Exchangers for Solar Water Heaters

USE OF CFD TOOL ANSYS FLUENT FOR FIRE SAFETY IMPROVEMENT OF AN INDOOR SPORTS ARENA

A NEW MODEL FOR ESTIMATING NEUTRAL PLANE IN FIRE SITUATION

Some aspects of the modeling of tube-and-shell heat-exchangers

Multizone Airflow Model in Modelica

IMPROVED EVALUATION OF RECOVERY BOILER WATER CIRCULATION DESIGN WITH THE HELP OF STATE-OF-THE- ART CFD-BASED HEAT FLUX DATA

Chapter 2 Mass Transfer Coefficient

Energy flows and modelling approaches

Natural Convection Heat Loss from A Partly Open Cubic Enclosure Timothy N Anderson 1,a * and Stuart E Norris 2,b

MATHEMATICAL MODELING OF A COMBINED HOT-WATER HEATING SYSTEM BY MEANS OF THE FINITE ELEMENT METHOD

Comparison of two equations closure turbulence models for the prediction of heat and mass transfer in a mechanically ventilated enclosure

CALCULATION OF SHOCK STAND-OFF DISTANCE FOR A SPHERE

BSE Public CPD Lecture Numerical Simulation of Thermal Comfort and Contaminant Transport in Rooms with UFAD system on 26 March 2010

1. INTRODUCTION TO CFD SPRING 2019

A Zone Model for Fast Verification of Release of Ultrafine Water Mist for Fire Extinction in Compartments

A numerical study of heat transfer and fluid flow over an in-line tube bank

On the Formulation of Steady-State Initialization Problems in Object-Oriented Models of Closed Thermo-Hydraulic Systems

VALIDATION OF REYNOLDS AVERAGED MODEL AND LARGE EDDY SIMULATION IN ACTUAL FLOOR HEATING ROOM. Hiroki Ono 1 and Koji Sakai 1

Numerical simulation of fluid flow in a monolithic exchanger related to high temperature and high pressure operating conditions

Atrium assisted natural ventilation of multi storey buildings

Water terminal control solutions

Coupling Fast Fluid Dynamics and Multizone Airflow Models in Modelica Buildings Library to Simulate the Dynamics of HVAC Systems

FIRE SAFETY DESIGN USING LARGE EDDY SIMULATION MODELS: EME BUILDING OF BUET: A CASE STUDY

COMPARISON OF CORRECTIVE PHASE CHANGE MATERIAL ALGORITHM WITH ESP-R SIMULATION

Calculating equation coefficients

Laminar flow heat transfer studies in a twisted square duct for constant wall heat flux boundary condition

This section develops numerically and analytically the geometric optimisation of

3D Simulation of the Plunger Cooling during the Hollow Glass Forming Process Model, Validation and Results

ROOM AVERAGE VELOCITY EQUATION A TOOL TO IMPROVE DESIGN OF THERMAL COMFORT CONDITIONS

Analysis of the Cooling Design in Electrical Transformer

Validation of DNS techniques for dynamic combined indoor air and constructions simulations using an experimental scale model

Patrick H. Oosthuizen and J.T. Paul Queen s University Kingston, ON, Canada

INTERNAL FLOW IN A Y-JET ATOMISER ---NUMERICAL MODELLING---

Natural Ventilation. CFD modelling of a double-skin facade. Huw Birch. Supervisor: Abigail Hathway

Three-Dimensional Simulation of Mixing Flow in a Porous Medium with Heat and Mass Transfer in a Moisture Recovery System

Enhancement of Natural Convection Heat Transfer within Closed Enclosure Using Parallel Fins F. A. Gdhaidh, K. Hussain, H. S. Qi

OpenSMOKE: NUMERICAL MODELING OF REACTING SYSTEMS WITH DETAILED KINETIC MECHANISMS

Effect of moisture transfer on heat energy storage in simple layer walls

Numerical Simulation and Air Conditioning System Improvement for the Experimental Hall at TLS J.C. Chang a, M.T. Ke b, Z.D. Tsai a, and J. R.

Studies on flow through and around a porous permeable sphere: II. Heat Transfer

Numerical Simulation of Fluid Flow and Heat Transfer in a Plasma Cutting Torch

IMPACT OF THE ATMOSPHERIC BOUNDARY LAYER PROFILE ON THE VENTILATION OF A CUBIC BUILDING WITH TWO LARGE OPPOSITE OPENINGS

Wall treatments and wall functions

CFD as a Tool for Thermal Comfort Assessment

Investigation of Flow Profile in Open Channels using CFD

GENERALISATION OF THE TWO-SCALE MOMENTUM THEORY FOR COUPLED WIND TURBINE/FARM OPTIMISATION

Group #4 (Firko, Johnson)

1. INTRODUCTION TO CFD SPRING 2018

Computational Modelling of the Impact of Solar Irradiance on Chemical Degradation of Painted Wall Hangings in an Historic Interior

Advanced Aerospace Control. Marco Lovera Dipartimento di Scienze e Tecnologie Aerospaziali, Politecnico di Milano

Simulation of Free Convection with Conjugate Heat Transfer

Numerical studies on natural ventilation flow in an enclosure with both buoyancy and wind effects

Modelling conjugate flow and heat transfer in a ventilated room for indoor

A copy can be downloaded for personal non-commercial research or study, without prior permission or charge

Modelling Thermal Time-of-Flight Sensor for Flow Velocity Measurement

Natural Gas Measurement Using Temperature-Dependent Thermal Conductivity

Chemical and Biomolecular Engineering 150A Transport Processes Spring Semester 2017

A Comparative Analysis of Turbulent Pipe Flow Using k And k Models

Available online at ScienceDirect. Procedia Engineering 90 (2014 )

ENGR Heat Transfer II

ENHANCED MODELLING OF INDOOR AIR FLOWS, TEMPERATURES, POLLUTANT EMISSION AND DISPERSION BY NESTING SUB-ZONES WITHIN A MULTIZONE MODEL

Two-scale momentum theory for very large wind farms

Educational cosmic ray experiments with Geiger counters

Analysis of Mixing Chambers for the Processing of Two-Component Adhesives for Transport Applications

Discretization of Convection Diffusion type equation

FROM SHAPE AND TEMPERATURE TO ENERGY CONVERSION ANALYSIS: A CASE STUDY

NUMERICAL AND EXPERIMENTAL INVESTIGATION OF THE TEMPERATURE DISTRIBUTION INSIDE OIL-COOLED TRANSFORMER WINDINGS

Computational Fluid Dynamics Prof. Dr. Suman Chakraborty Department of Mechanical Engineering Indian Institute of Technology, Kharagpur

Computational challenges in Numerical Weather Prediction

A finite-volume algorithm for all speed flows

Natural convection heat transfer around a horizontal circular cylinder near an isothermal vertical wall

Influence of Heat Transfer Process in Porous Media with Air Cavity- A CFD Analysis

Virtual Reference Feedback Tuning for non-linear systems

Modeling night-time ventilation in Stanford s Y2E2 building

A. Kovacevic N. Stosic I. Smith. Screw Compressors. Three Dimensional Computational Fluid Dynamics and Solid Fluid Interaction.

Turbulent Natural Convection in an Enclosure with Colliding Boundary Layers

Computer Evaluation of Results by Room Thermal Stability Testing

Chapter 7. Three Dimensional Modelling of Buoyancy-Driven Displacement Ventilation: Point Source

Using FLOTHERM and the Command Center to Exploit the Principle of Superposition

Lecture 30 Review of Fluid Flow and Heat Transfer

Comparison between RANS and LES Approaches to the Simulation of Natural Convection in a Differentially Heated Square Cavity

EE-489 Modeling Project: Behavior of the. Temperature Changes in a Room

Natural Convection from Horizontal Rectangular Fin Arrays within Perforated Chassis

Direct Modeling for Computational Fluid Dynamics

CFD MODEL FOR TRANSVERSE VENTILATION SYSTEMS

Numerical Investigation of Convective Heat Transfer in Pin Fin Type Heat Sink used for Led Application by using CFD

CFD in COMSOL Multiphysics

AN AUTOMATED GONIOPHOTOMETER FOR LUMINAIRE CHARACTERIZATION

Transcription:

Object-oriented quasi-3d sub-zonal airflow models for energy-related building simulation Marco Bonvini, Alberto Leva Politecnico di Milano, Dipartimento di Elettronica e Informazione Piazza Leonardo Da Vinci, 32-20133 Milano, Italy (e-mail: {bonvini,leva}@elet.polimi.it) Abstract: Simulation is important to evaluate the energy-related performance, of a building, and for reliable results, reproducing the behaviour of the contained air volumes is particularly relevant. This is especially true if the control system is considered as part of the simulation study, for example to determine the best sensor positioning. For such a purpose, fully mixed models (i.e., for instance, a single temperature per room) easily prove inadequate, while Computational Fluid Dynamics (CFD) ones are too complex, and difficult to formulate in a modular manner, to the detriment of their usefulness if the simulator has to be used throughout the project, and not only to assess its final result. This manuscript presents an intermediate solution based on the object-oriented modelling paradigm, and implemented in the Modelica language, also reporting some examples to prove its validity. Keywords: Building simulation; energy optimisation; object-oriented modelling. 1. INTRODUCTION In the research on building simulation, probably the toughest challenge is to deliver tools that can effectively confront the multi-physic nature of such complex systems. The energy performance of a building in fact results from phenomena of heterogeneous type (hydraulic, thermal, electric and so forth) together with the operation of several control systems and the actions of the inhabitants. Better still, energy performance is determined by the interaction of all those phenomena [Wetter, 2009b]. Traditionally, the design of a building is treated in practice as the partially disjoint (explanations follow) design of its subsystems. Although there is no standardised nomenclature, in fact, virtually the totality of engineering tools broadly distinguish (a) the building stricto sensu, i.e., walls, doors, windows and so on, (b) the contained air volumes, possibly divided in zones, (c) the Heating, Ventilation and Air Conditioning (HVAC) system, (d) automation and control systems, and (e) energy sources/sinks owing to the building utilisation, e.g., the heat released by occupants, industrial machines, or whatever is installed. The subsystems interaction is accounted for by having some of them provide boundary conditions for the design of some other. This is apparently very far from a really integrated approach, whence the term partially disjoint applied above to current design practices, but tools that address the simulation of all (or at least part) of the subsystems in a coordinated way are at present little more than research objects [Janak, 2000, Wetter, 2009a,b]. The main reason for such a scenario are the very different issues posed by the various subsystems. For example, control system models are made of oriented blocks and may need sometimes a continuous-time and sometimes a digital representation depending on the simulation purpose; models for HVAC, conversely, live invariantly in the continuous-time domain, but are typically zero- or one-dimensional, while models of phenomena that occur in continua such as a wall or an air volume often cannot avoid three-dimensional spatial distributions. As a result, it is difficult to devise simulation models that address all the necessary phenomena, and can be organised in a modular way, to the advantage of their construction, parametrisation, and maintenance. 2. MOTIVATION AND MINIMAL LITERATURE REVIEW Quite intuitively, models of entire buildings are of interest for system level studies, where one can sacrifice detailed descriptions (e.g. of an air velocity field) in exchange for a correct representation of how all the phenomena interact to produce the main energy outcome. Roughly speaking, in system level simulation, one is mostly interested in reproducing what would be seen by a control and supervision system realistically enough. For example, assuming that a model can appreciate the effect of re-positioning a temperature sensor, particularly those on the control system, it is of very limited interest to represent in detail an air motion field that gets messed up every time somebody just walks around in the room. This work is part of a long-term research aimed specifically at system level building simulation models, and in that context, its contribution can be summarised as follows. First, it is shown that the proposed approach, declined in the object-oriented framework, allows to obtain modular models, with a scalable level of complexity and a standardised interface. Second, once the standardised interfaces are defined is possible to couple the obtained models with others, also from different physical domains (representing in a unique and more realistic way all the elements that compose a building), in a very straightforward manner. For all the reasons above, the authors humbly consider this work a step forward in the direction of a really integrated Copyright by the International Federation of Automatic Control (IFAC) 12946

building simulation. To note that the capability of integrating different physical domains within the same framework means that also control systems (with a high degree of details) can be included. To relate this work to other research ones, at least a quick glance at the literature is in order. In building simulation, modelling air volumes requires to treat temperature and heat flow distributions in a coordinated way with respect to how the same distributions are addressed in solid bodies (e.g., walls) and possibly other fluids (e.g., heat conveying ones). A widely used modelling paradigm is that of zonal models or zoning, where the air within a building is split into zones, typically rooms. Zones are macro-volumes with respect to the scale of the spatial temperature and flow distribution, allowing for a small number of simulated variables, but posing non-trivial problems for the determination of average fluid properties. However the zonal approach allows to clearly characterise the relationships between a zone and the adjacent entities, thus to create modular models, typically distinguishing storage elements (like the air volumes) and flow ones, that describe the mass and energy flow among the storages. Many literature works and engineering tools adopt the zonal approach: examples are COMIS, CONTAM, POMA, see F. et al. [1990], Feustel [1999], Walton [1997], Haghighat et al. [2001], and EnergyPlus Drury and Crawley [2000]. On the opposite side with respect to the zonal paradigm stands the CFD one, that provides far more accuracy, but the computation-intensive, and does not allow to separate easily the (partial) differential equations that hold within a volume from the boundary conditions, making the creation of modular models a complex task. There exist CFD tools applied to buildings, e.g. Fluent Fluent Inc. [2003], but their use is most frequently limited to static problems, and hardly ever considered in system level studies. In recent years, various attempts are being made to join air models with the description of other elements such as containment, HVAC, and possibly the electric system, the behaviour of inhabitants, weather conditions, and so forth, see e.g. Felgner et al. [2002]. To achieve such ambitious a goal, a promising paradigm is Object-Oriented Modelling (OOM), see Wetter [2006], and in particular the Modelica language Sodja and Zupan ci c [2009] and [Felgner et al., 2006] To date, however, OOM-related research enforces modularity by relying on the zonal models idea, which is the easiest way to go, but definitely not the most accurate. In the last years a somehow intermediate proposal, termed subzonal modelling or sub-zoning, was formulated in an attempt to join the best of zoning and CFD Ren and Stewart [2003], Mora et al. [2003], Wurtz et al. [1999]. This improves accuracy at the cost of a (moderate) complexity increase, but still poses non-trivial issues with respect to modularity, especially if air models need to be connected to heterogeneous entities such as prescribed boundary conditions (e.g.. from the external environment), walls, piping, and so on. This manuscript aims at filling the gap just sketched, proposing the innovative model structuring described below, and maintaining compatibility with other Modelica-related research on the matter [Wetter, 2009b,a]. 3. THE PROPOSED MODELLING APPROACH With respect to the way equations are formulated, the distinctive characteristic of this work is that the momentum balance is introduced explicitly, contrary to previous (specifically, non- CFD) literature. An ad hoc spatial discretisation of said equation makes it natural to account for gravity and any possible other motion driving force. With respect to model structuring and implementation, the object-oriented paradigm is strictly followed. Thanks to the adoption of said paradigm, standardised, uniform interfaces can be created, that allow an easy integration of the obtained models with zero- or one-dimensional ones (e.g., for HVAC piping) and heterogeneous elements (e.g., industrial machines or household appliances releasing power to the air). Also, models are realised in the Modelica language Fritzon [2004] and totally integrated with the Modelica standard libraries, allowing to avoid co-simulation in favour of an efficient and user-friendly solution. With respect to model parametrisation, care is taken to reduce the number of empirical parameters to a minimum. 3.1 Balance equations This work starts from the mass, energy balance and the Navier Stokes (momentum) equation, that for the purpose of this work can be written as ρ t + (ρv) = 0 (mass) (1a) (ρe) + (ρvh) = (k T ) t (energy) (1b) (ρv) + (ρvv T ) + p = f t (momentum) (1c) where the scalars p, T, e, h and ρ are respectively the fluid pressure, temperature, specific energy, specific enthalpy and density, the vectors v and f are the fluid velocity and the possible motion driving forces, and the scalar parameter k is the fluid thermal conductivity. In the cases of interest for this research the fluid (air) can be considered a mixture of ideal gases, which allows to express the specific energy e as c v T, where c v is the constant-volume specific heat capacity. As further simplification, Newtonian fluid model is adopted, thereby rewriting (1c) as (ρv) t + (ρvv T ) + p = (µ v) (2) where µ is the fluid dynamic viscosity, and then the the scalar projection is brought in. The set of equations (1a), (1b) and (2), are spatially discretised with reference to finite volume elements (not necessary uniform) of parallelepiped shape. To deal with said spatial discretisation, a staggered grid of points [Patankar, 1980, Versteeg and Malalasekera, 2007] is defined in the spatial domain of interest, as illustrated in figure 1. For simplicity the figure refers to a 2-dimensional case, extension to 3-dimensional space is straightforward. In the grid there are elements that represent the volumes (circles) while other elements (horizontal and vertical 12947

Fig. 1. Staggered grid adopted for the discretisation (2D case). arrows) that represent the coupling element between adjacent volumes, or between volumes and boundaries. Within these elements the balance equations of mass, energy and momentum are discretised. In particular the mass and energy ones are integrated within the volumes while the momentum balance ones are within the coupling elements. 3.2 Other equations To complete the model it suffices to complement the balance equations introduced and discretised so far with those pertaining to the fluid state, the energy transfers not associated to fluid motion, and possibly the required turbulence model. Fluid state The fluid considered here is air, treated as a mixture of ideal gases: 78 % of nitrogen and 22 % of oxygen. Instead of using the ideal gas relationship, in order to simplify the model, the linearisation ρ = p R T ρ = ρ o + 1 R T o P (ideal gas) (3a) p o R T o 2 (T T o) (linearised) (3b) is here used, where ρ is the fluid density, R is the specific ideal gas constant, T the absolute temperature of the gas, p the absolute pressure, ρ o gas density at the linearisation point, p o and T o are the values of absolute pressure and temperature at the same point. Notice the use of the relative pressure P = p p o, in order to avoid numerical errors due to the large absolute pressure values. The discrepancy between the ideal and the linearised model is very limited in the typical operating range. In addition to the state equation, also the specific energy and enthalpy equations are necessary: here they are simply written, as partially anticipated, in the form e = c v T (speci f ic energy) (4a) h = e + p ρ (speci f ic enthal py) (4b) Thermal exchanges not associated with fluid motion The heat fluxes due to thermal air conduction are computed with the Fourier-like law Q A B = γ A AB d AB (T A T B ) (5) where Q A B is the thermal power flowing from volume A to volume B, γ is the fluid s thermal conductivity (for air γ = 0.026[W/mK]), A AB is the surface shared by the adjacent volumes, d AB is the distance between the volume centres, and T A,B are respectively the temperatures of volumes A and B. Notice that (5) can be shown to be the discretisation of the right hand side of (1b). In addition, when dealing with boundary conditions such as walls, there is a convective heat transfer instead of a conductive one. The thermal power flowing from to an adjacent volume can thus be calculated as Q Wall Volume = h A (T Wall T Volume ) (6) where h is the convective heat transfer, A is the portion of area shared by the volume and the wall, T Wall and T Volume are respectively the temperature of the wall and of the volume. Simple turbulence modelling For laminar flows, the results provided are natively accurate and reliable. As witnessed by the CFD literature, the same is not true for turbulent flows. The introduction of a turbulence model is most common way to solve this problem, and a lot of such have been studied and implemented. The solution used here is based on the idea of zero-equation turbulence modelling, first introduced by Prandtl, at the beginning of the nineteenth century. After Prandtl s work, many effort were made to extend the applicability of his theory [Wilcox, 2006], and among the so obtained results, those of Chen and Xu [1998] were chosen for this work, given their simplicity and the available validations in a context (HVAC) similar to that addressed here. Starting from the quoted work, the viscosity µ in the momentum equation, when dealing with turbulent flows, is thus replaced by the effective dynamic viscosity µ e f f = µ + µ T (7) that is a sum of the intrinsic fluid dynamic viscosity µ and a turbulent viscosity µ T, that according to Chen and Xu [1998] comes from an algebraic function of local mean velocity V and at a length scale l given by µ T = 0.03874ρV l (8) The function (8) was here implemented considering as mean velocity V the velocity of the air flowing through the coupling element, and as length scale l as the distance between the centres of the volumes linked by the coupling element. 4. SOME WORDS ON THE MODELICA IMPLEMENTATION The adopted discretisation approach is a very easy modularisation of the obtained models. To show that, based on the considerations above, some words are now spent (exhausting the matter is not possible for space limitations) how the devised models are realised in the Modelica language [Mattsson et al., 1998, The Modelica Association, 1997 2010]. The grid on which the Navier-Stokes equation are discretised can be represented in a modular way, where volume models are connected together with coupling models. Volume models 12948

Fig. 2. Modelica connection scheme for a 3 3( 1) room. are of a single type, while coupling ones can be of internal or boundary type. The staggered grid thus corresponds in Modelica to a modular structure composed only by the main model classes volume, coupling and boundary, with a uniform interface. Volume models contain the mass balance, the energy balance, the fluid state equation, the specific energy equation, and the specific enthalpy equation. Coupling models contain the momentum balance, the turbulence model, and the heat flow equation. Boundary models are similar to coupling ones but also contain the heat equation. Connectors are in fact very simple with the adopted choices, and are of two types. A first type contains the information on the fluid state and that used by the coupling elements to solve the momentum equation, namely relative pressure, absolute temperature, fluid velocity through the face, heat flow rate through the face, specific enthalpy flowing through the face, density of the fluid flowing through the face, velocities associated the other faces of the volume, and sizes of the volume. The second type connects coupling/boundary elements providing the velocity of surrounding coupling elements, and the distance between said elements. As a result, constructing a compound model is very easy by means of array structures. A compound model is spatially parametrised by just providing its dimensions, and the number of volume divisions (not necessarily evenly spaced) along the coordinate axes. At present only (compounds) of parallelepiped shape elements are allowed, extensions will be introduced in the future. Also, replacing the fluid state equation with a different one is very straightforward, as is modifying the turbulence model. For example, figure 2 shows how a room model with 3 3( 1) subzonal volumes is viewed in a Modelica graphical editor. Note that in said figure and in the following analogous ones relative to the examples, 2D arrangements are used for simplicity and/or consistence with the literature references used for the validation, but of course the devised formalism is natively 3D. 5. VALIDATION Several tests were performed to validate the proposed models, basically by comparing their outcome with that of CFD models. The verification is made by checking that the sub-zones (that are large volumes from the CFD standpoint) yield reasonably accurate averages of the quantities that CFD models evaluate on much finer a spatial discretisation. Other verifications were made against literature models realised with various approaches. As an example of said tests, a natural convection case is reported, for which the experimental and simulation results of Inard et al. [1996] and Ren and Stewart [2003] are taken as reference. The experimental setup in the quoted works is the MINIBAT test cell at CERTHIL, described in Allard et al. [1987], that consists of a 3,1 m 3,1 m 2,5 m room. Fig. 3. Simulated temperature distribution within a room ( C) with natural convection. 12949

The case here shown has two lateral walls with impressed temperature, one cold and one hot. The temperature distribution provided by the presented models satisfactorily reproduces experimental data, as can be seen by comparing the steadystate situation shown in figure 3 with figure 6 in Ren and Stewart [2003], and is also in good accordance with simulation data provided by other tools, see e.g. figures 4 and 7 in Ren and Stewart [2003], and figure 5 in Inard et al. [1996]. Here too, efficiency is good: on a standard PC, a 3000 s simulation takes approximately 1.5 s only with a 12 10 grid (the same resolution used in the quoted references). 6. AN APPLICATION EXAMPLE To witness the usefulness of the proposed models, a very simplistic application example is briefly reported, where they are used to assess the effect of the positioning of a temperature sensor in a room. Despite its simplicity this example illustrates well the impact of the modelling approach introduced by this work. Figure 4 shows the Modelica model used for the test, where two identical rooms are represented, the only difference being the position of the temperature sensor used to control their temperatures with a PI regulator. For simplicity there is here no detailed representation of the actuation mechanism, i.e., the PI output directly determines the heat rate released to the air contained in the rooms. The room is of 3.1 3.1 2.5 m in size, and is split into a nonuniform grid composed by 24 volumes. The wall temperatures are kept constant at 6 C, 13.9 C, 11.8 C and 13.5 C respectively for left and right walls, floor and ceiling. At the equilibrium, the average temperature of the air within the room is about 11 C. When the room has reached the equilibrium (concerning its boundary conditions), the control system is switched on and its aim is to keep the temperature of the room at the value of 22 C. The control system directly drive an heater that is modelled as an incoming power flow within the volume in the lower left corner. The power flow is constrained to be greater than zero and lower than 3 kw. As explained before, the only difference between the two rooms in the example, is the position of the temperature sensor. In one room it is in the same volume in which the thermal power is applied, i.e., a deliberately extreme case is realised of a temperature sensor (erroneously) placed too near the heater. In the other case, the sensor is positioned on the opposite wall with respect to the heating element, at a distance from the floor equal to half the room height (i.e., more correct a positioning). The (PI-type) controllers have the same parameters in both cases. The temperature behaviour in the two rooms is shown in figure 5, that evidences how the sensor positioning affects the performance of the temperature control system. In particular, and as expected, positioning the sensor too close to the heater leads to underestimating the room temperature as perceived by the inhabitants. In fact, it is possible to see that the mean temperature of the room in which the sensor is in the left lower corner (room 2) stays under the required set point. Conversely, the mean temperature of the room in which the sensor is located near the opposite wall (room 1) successfully reaches the set point value. Needless to say, such evaluations are not possible with mixed Fig. 4. Modelica diagram of the model used in the controlrelated example; the rooms only differ for the sensor position. models, and too expensive from the computational standpoint if CFD is used, having of course a system level study in mind. Finally, figure 6 shows the accumulated consumed energy over time for the two rooms. As expected, the different behaviour of the temperature control owing to the sensor position, has also an energy impact. In particular, the total amount of energy consumed for heating room 1 is 1.12 10 7 J, as opposite to 5.32 10 6 J for room 2. The proposed models allow to dynamically quantify that impact in a fast and reliable manner. 7. CONCLUSIONS AND FUTURE WORK An object-oriented modelling approach was proposed to somehow emulate CFD-based results in the context of building simulation. By means of an ad hoc equations formulation and model structuring, high modularity and simulation efficiency can be achieved. Of course the presented models do not fully replicate CFD results, but allow to preserve the relevant facts for energy-related simulation studies. In addition, said models can be readily integrated in a multi-physics environment, thereby avoiding the use of co-simulation to the advantage of speed and model maintenance. The proposed approach has already demonstrated its validity in terms of modularity, simulation efficiency, and ease of integration with heterogeneous models. This make the approach particularly suited for system level studies, including (but not limited to) those relative to control. Future work will be devoted to the representation of complex geometries, and the inclusion of more articulated fluid modelling (e.g., integrating accurate representations of moist air). Further validations will also be carried out, and the obtained models will be progressively integrated, also with others coming from different research lines, in order to construct a generalpurpose building simulation library, always keeping in mind the orientation to system studies, that in the opinion of the authors is one of the major strengths of their proposal. REFERENCES F. Allard, J. Brau, C. Inard, and J.M. Pallier. Thermal experiments of full-scale dwellings cells in artificial conditions. 12950

Fig. 5. Mean temperature of the two rooms in the control-related example, and temperature set point. Fig. 6. Energy consumption in the two room temperature control cases differing for the sensor position. Energy and Buildings, 10:49 58, 1987. Q. Chen and W. Xu. A zero equation turbulence model for indoor airflow simulation. Energy and Buildings, 28(2):137 144, 1998. B. Drury and B. Crawley. EnergyPlus: energy simulation program. ASHRAE Online Journal, 42(4):49 56, 2000. F. Allard F., V.B. Dorer, and H.E. Feustel. Fundamentals of the multizone air flow model COMIS. AIVC (technical note 29), 1990. F. Felgner, S. Agustina, R. Caldera Bohigas, R.Merz, and L. Litz. Simulation of thermal building behaviour in Modelica. Oberpfaffenhofen, Germany, 2002. F. Felgner, R. Merz, and L. Litz. Modular modelling of thermal building behaviour using Modelica. Mathematical and computer modelling of dynamical systems, 12(1):35 49, 2006. H.E. Feustel. COMIS An international multizone air-flow and contaminant transport model. Energy and Buildings, 30(1): 3 18, 1999. Fluent Inc. Fluent 6.3 user s guide. 2003. P. Fritzon. Principles of object-oriented modeling and simulation with Modelica 2.1. Wiley-IEEE Press, Hoboken, NJ, USA, 2004. F. Haghighat, Y. Li, and A.C. Megri. Development and validation of a zonal model - POMA. Building and Environment, 36(9):1039 1047, 2001. C. Inard, H. Bouia, and P. Dalicieux. Prediction of air temperature distribution in buildings with a zonal model. Energy and Buildings, 24(2):125 132, 1996. M. Janak. Coupling building energy and lighting simulation. Kyoto, Japan, 2000. S.E. Mattsson, H. Elmqvist, and M. Otter. Physical system modeling with Modelica. Control Engineering Practice, 6: 501 510, 1998. L. Mora, A.J. Gadgil, and E. Wurtz. Comparing zonal and CFD model predictions of isothermal indoor airflows to experimental data. Indoor Air, 23(2):77 85, 2003. S.V. Patankar. Numerical heat transfer and fluid flow. Taylor and Francis, London, UK, 1980. Z. Ren and J. Stewart. Simulating air flow and temperature distribution inside buildings using a modified version of COMIS with sub-zonal divisions. Energy and Buildings, 35 (3):257 271, 2003. A. Sodja and B. Zupan ci c. Modelling thermal processes in buildings using an object-oriented approach and Modelica. Simulation Modeling Practice and Theory, 17(6):1143 1159, 2009. The Modelica Association. Modelica home page. http://www.modelica.org/, 1997 2010. H.K. Versteeg and W. Malalasekera. An introduction to computational fluid dynamics: the finite volume method. Pearson Prentice Hall, Upper Saddle River, NJ, USA, 2007. G.N. Walton. CONTAM 96 users manual. NISTIR 6055, National Institute of Standards and Technology, 1997. M. Wetter. Multizone airflow model in Modelica. pages 431 440, Vienna, Austria, 2006. M. Wetter. Modelica library for building heating, ventilation and air-conditioning systems. Como, Italy, 2009a. M. Wetter. Modelica-based modeling and simulation to support research and development in building energy and control systems. Journal of Building Performance Simulation, 2(1): 143 161, 2009b. D.C. Wilcox. Turbulence modeling for CFD, third edition. La Canada, DCW Industries, 2006. E. Wurtz, J.M. Nataf, and F. Winkelmann. Two- and threedimensional natural and mixed convection simulation using modular zonal models in buildings. International Journal of Heat and Mass Transfer, 42(5):923 940, 1999. 12951