COMIS 3.2: 1 - COMIS With Simulation Studio Tutorial
COMIS 3.2: 1 - COMIS With Simulation Studio Tutorial
2
A multizone air flow calculation program
EMPA Materials Science & Technology http://www.empa.ch CSTB Centre Scientifique et Technique du Btiment http://software.cstb.fr
or from CSTB BP 209 F-06904 Sophia Antipolis Phone : + 33 4 93 95 67 00 FAX : + 33 4 93 95 67 33 Email : [email protected]
Acknowledgments
This document is based on the very useful Volume III of the TRNSYS with Simulation Studio software package, Introduction to TRNSYS for WINDOWS with Simulation Studio. Thanks to all the participants of Annex 23 who contributed with remarks and helped me to understand COMIS. Special thanks to Andreas Weber from EMPA for his continued support as well as to Sabine Taristas for the excellent job on the adaptation of the TRNSYS Simulation Studio to COMIS. Werner Keilholz [email protected] Sophia Antipolis, August 2005
2
TABLE OF CONTENTS
Scope of this manual.......................................................................................................................................2 Acknowledgments............................................................................................................................................2 Introduction......................................................................................................................................................4 Getting started..................................................................................................................................................5 Installation....................................................................................................................................................5 Starting the software.....................................................................................................................................5 Using Simulation Studio .................................................................................................................................7 Beginning the simulation process................................................................................................................7 Modeling the problem in COMIS............................................................................................................7 Entering the problem with Simulation Studio.........................................................................................8 Simulation Studio Assembly Panel Tools.............................................................................................11 Specifying the Parameters......................................................................................................................14 Specifying Facades.................................................................................................................................16 Setting the Global Parameters................................................................................................................17 ................................................................................................................................................................19 Running COMIS Simulations................................................................................................................21 Placing Components onto the Assembly Panel.....................................................................................22 Connecting the Components Together..................................................................................................24 Running More Examples.......................................................................................................................27 Using Schedules.....................................................................................................................................27 Other Simulation Studio Tasks..................................................................................................................29
Introduction
The new, graphical user interface for COMIS described in this manual is based on CSTBs Simulation Studio technology, successor of the IISiBat simulation environment. The simulation studio has evolved to house both COMIS and the TRNSYS simulation programs, and includes mecanisms to couple both programs, allowing for coupled air flow and thermal building simulations. This manual describes how to use the Simulations Studios graphical user interface to create, execute and manage simulation projects with COMIS. The Simulation Studios graphical simulation environment exists also for the TRNSYS simulation software. The TRNSYS version 16.1 and later includes project editors for TRNSYS projects, COMIS projects, as well as coupled TRNSYS-COMIS (thermal-air flow) simulation projects. As a consequence, certain features of the graphical environment may not apply to this COMIS stand-alone version of the tool.
Getting started
Installation
If COMIS with Simulation Studio has not been installed on your computer yet, simply introduce the COMIS 3.2 CD-ROM, start the setup program and follow the instructions on the screen. We recommend to install the software into the main directory of your hard disc (such as \comis32), and not under Program Files.
Note for TRNSYS users: If you plan to use COMIS with TRNSYS 16.1 or later, you can create the link between the two environments by adding the following lines to the Studio.ini file in the . \Trnsys16\Studio\exe directory : [COMIS] COMIS_EXE=\comis32\binary\comis32.exe You can then work directly in the TRNSYS 16.1 environment to execute COMIS simulations, TRNSYS simulations, as well as coupled simulation projects.
Push the Next-> button A building floor plan layout editor will open.
In this window, air nodes can be defined by clicking at the grid points on the left side of the window. For our simple example, we will only create one air node. Click (for example) on the box in line 5, column E
9
Push the Next-> button You must now specify the dimensions of each node in the project. To do so, Click (again) on the box in line 5, column E and fill in the width, height and depth of the node, as 5 respectively.
Specification of node volume by clicking on the node and typing the zone dimensions
Push the Next-> button Now a project template is created. This default project contains the air node (zone) we have defined, as well as 4 faade elements (North, South, East and West).
10
Note that you may have to scroll or zoom (see below) to see the project completely.
To create simulations graphically in the Simulation Studio, the users places icons onto the working surface of the Assembly Panel window, creates links between the components, defines the parameters, and runs COMIS. The project creation wizard has done most of the job for us a template project is already created. The following section gives a brief summary of tools allowing to manipulate the project.
- move the links between components - view the list of parameters associated with each component - rename component models Erase Tool The Erase Tool allows the user to delete a model or a link between two models. Selecting this tool and clicking on a model deletes the model and all of its links to other components. Selecting an object in the assembly panel and clicking on this tool removes the selected object.
Direct Access Tool The Direct Access Tool allows users to retrieve standard COMIS models and place them onto the Assembly Panel. It exists as a menu (on top of the main Studio Window) and as a tree view (on the right side of the main window).
Link Tool The Link Tool allows the user to specify possible air flow paths between two component models. The direction of air flow is defined as positive from the first model to the second model. To connect two components, the user must select the Link Tool and then click on a first component. The cursor will change to reflect an ongoing link operation. Users must complete the link process by clicking on the component model to which the link will go. A segmented line will be drawn between the two components to indicate information flow between the two components.
Write Tool The Write Tool will create a COMIS input file from the information in the Assembly Panel window, but will not call the COMIS simulation engine to perform the calculations. This input file may then be viewed using the Editor Tool. Run Simulation Tool The Run Simulation Tool allows the user to run the COMIS simulation program on the currently opened project in the Assembly Panel window. Clicking on this tool starts the following process: - The project is checked for any obvious errors (verified). - The COMIS input file is created for the project. - The COMIS simulation program is called with the newly created input file.
Input File Tool The Input File Tool opens a text editor with the COMIS Input File (CIF) created by the Simulation Studio.
12
Output File Tool The Output File Tool opens a text editor with the results computed by COMIS.
Global information The Simulation Card Tool allows the user to specify the simulation control parameters which are required by the COMIS program. These control cards include the start and stop times of the simulation, the solution method statement, weather data, schedules, etc. Refer to the Simulation Studio with COMIS User Manual and the COMIS User Guide for more information on the control statements.
13
The zone ID and name (zone_E5) is the name of the icon in the assembly window (it can be changed by clicking on it). The section Schedule Name is filled in by Simulation Studio automatically, if schedules are attached (attaching schedules is described below). To specify the required parameters for the zone component model, click on the Select Tool and then double-click on the zone icon in the project. A window will appear listing the four required parameters for this component as shown below.
14
Parameters Window for the zone component model Note that default values have been filled in by the project creation wizard. Simulation Studio also knows values for the minimum, maximum, and default values for all of the variables. To demonstrate this feature, attempt to modify the Height (Parameter 3) to -42, for instance. To change the value, click just to the right of the numerical value and use the backspace key to delete the existing value; then simply type in the new value of -42. The value will automatically change back to 5, indicating that the value you typed is not allowed. To get detailed information about a parameter, the user should click on the 'more' button to the right of the parameter. A variable information window will appear similar to the one shown below. After reviewing the information, close the variable information window for the parameter.
Variable Information Window for the First Parameter of the zone component
Close the Parameters window using the Close button in the upper right corner (or AltF4) and return to the Assembly Panel window. At this point, the zone is completely defined In a normal Simulation Studio session, the user would now enter the parameters for each of the component models on the Assembly Panel window. However, to save some time in this demonstration, only the facade element component models will be completely specified. For the other components, we will use the default values.
15
Specifying Facades
Facade elements are important to connect the building to the outside. They are always linked to an external node. Each facade element is specified by a list of n data pairs (cpvalue1, wind direction). For our example, we will assume that for facade elements only one data pair is known: a cp-value of -0.1 for a wind direction of 0. To enter these values:
open the parameter window of the facade element FacadeW. The value for Number of Angles already defaults to 1, so we dont have to modify it. The first data pair defaults to a Cp-value of 0 at an angle of 0. So we only have to change the value for Cp-value, the last parameter of the component. Click inside the box containing the value 0, delete it and replace it by -0.1. Close the window.
Defining Cp-values
This first facade will be used to represent the west facade of our hut. Repeat the process for the east faade (FacadeE), using a cp value of 0.1
See the COMIS Fundamentals for the exact definition of cp-values; be careful not to mix them up with cs-values 16
Note: Specifying only one cp-value for 2 of the 4 facades is not realistic. It is done here for purpose of demonstration only. In particular, changing the wind direction during the simulation will have no influence in this case. In a realistic simulation, cp-values for several wind direction should be specified for all facades. If you do not have access to wind tunnel data, you can use the Cp_calc program (available in the files section of the COMIS discussion group on http://groups.yahoo.com/group/comis ) or TNOs online service at
http://cpgen.bouw.tno.nl .
This action will produce the Global Information window as shown below. The global information window contains a series of tabs, which are accessible from the buttons on the top of this window. The values that are contained in these windows are initially the COMIS defaults. In general, it is important to verify the following points: - the simulation start time should be adapted to all schedules used, otherwise scheduled events might not occur within the period simulated. Since our simple example does not use any schedules, we can just use the default values. To modify the start and stop times, click on the Options button in the Global Information Window. See the COMIS User Guide for allowed date/time formats. - at least one line of weather data should be given
17
To enter information into any input box in this window, click on the input box with the mouse, delete the existing value with the backspace key, then enter the new information.
Enter the values given in the figure above for our example. 270 indicates wind blowing from west to east (wind angles are measured clockwise from the north).
The remaining global data should be checked; but in our example the default values are sufficient. Please consult the COMIS Users Guide for details. To define what output should be calculated (and stored in files for later use) the output tab in the Global Information window has to be used. This menu allows the definition of different types of output.
At this point, quit the Meteo and Global Information windows to return to the Assembly Panel window.
19
Output options are also available for certain components in the assembly panel. For example,
By checking the checkboxes in this window, additional output can be produced for this component.
In the example given in the figure above, the user is interested in the Flow Rate computed by the zone component. Related data is stored in CSO (COMIS standard output) files. One data line per timestep is produced. At the latest at this point, it is wise to store your work in a file. The wizard saves the automatically created version in the MyProjects directory, but your modifications would be lost if you do not save the project.
Select File/Save to store your project. Use File/Save As to store it under another name or in another directory.
Simulation Studio stores projects in .CPF files (COMIS Project Files). These files contain all project information, including icons, while the COMIS Input File (CIF) only contains the numerical values for the simulation.
20
).
Note: If you have installed the software in the \Program files directory (or any other directory containing spaces), you may have to adapt the COMIS input file name in the Global information window ( ). You may for example use \comis.cif, or \myproject\comis.cif (the \myproject folder must exist). When the calculations are complete, the window in which the COMIS program has been executed may either be removed from the screen automatically or remain visible, depending on the operating system configuration. If the window remains visible after the simulation is finished, you can close it with the windows-closer. A text editor containing the COMIS output file should open automatically:
The user should immediately check the COMIS output file after a simulation run. The COMIS Output File lists warnings or errors detected in the input file and runtime errors that have occurred during the simulation.
21
In the case of the example created with the assistant (wizard), the output file has a default name like Wizard1.COF (Comis Output File - the name of the output file is derived from the CIF name given in the Global Information window, where .CIF is replaced by .COF. It is located in the same directory path as the input file). The output file is the first place to check for warnings or errors in the COMIS simulation.
To access the output file at any time, click on the Editor Tool ( Assembly Panel window.
) in the
The COF file lists basic information computed by COMIS. Note that from/to conventions use the orientations of the links in the project window. In the example shown above, a flow of approx. 8.8e-4 kg/s through link_4 is computed in the To>From direction. This means, that the actual flow is in the opposite direction of the arrows in the project, i.e. from the East faade (FacadeE) to ZoneE5. (Due to the poor Cp value data we have used, this direction will not change if the wind direction is modified; see also the exercises at the end of this tutorial). In addition to the .COF file, so-called .CSO (COMIS Standard Output files) are produced for component-related output. The first line of each CSO file contains the physical unit used and the COMIS output option which produced the file. The second line contains numbers of the elements which are stored in the respective columns.
After saving your project (File/Save, File/Save As...), select all components and delete them. (Alternatively, select the components one by one and delete them).
The Direct Access Tool is the quickest and easiest method for placing components onto the Assembly Panel.
22
The first component necessary for the example system we are using is the zone component, representing the only room of our building. To place this component onto the Assembly Panel, follow these steps:
Click with the left mouse button on the + next to the word in the tree view on the right side of the window, or double-click on the word zone. This opens the library. Open the Volume known sub-library. This selects a zone model which is specified by its volume, rather than its dimensions. Select Volume known. The mouse pointer will turn into a crosshair indicating that you have selected a component and need to place it on the Assembly Window. Select an appropriate place on the assembly window and press the left mouse button again. The Simulation Studio icon for the zone component will appear on the Assembly Panel similar to that shown in the figure below.
Zone component Placed On the Assembly Panel Window and waiting to be connected to other components in the system. Now, we need to drag the other components onto the Assembly Panel and define their variables. The remaining components and the path used for the Direct Access tool are listed below: Facade Element: COMIS / facade element / facade-e External Node:
23
COMIS /external node / external Crack: COMIS / AFC / crack / crack When all the component models have been retrieved using the Direct Access Tool, rearrange the models on the Assembly Panel (using the Select Tool and dragging the icons to their new locations) so that they resemble the figure below. The precise placement of the components is not extremely important. It will often become apparent, as the links between the components are created, what the logical placement will be. The components can always be moved with the Select Tool.
Assembly Panel with Necessary Example Components in Place Since we need exactly the same component for the floor, we will simply copy it : Select the faade element select Edit/Copy (or hit Ctrl-C) select Edit/paste (or hit Ctrl-V)
actually define lines of code within the &-NET-Links section of the COMIS Input File for each connection that links two zones. In our simple example, no internal air flows occur, since there is only one zone. So we only need to connect the zone to the external node. In COMIS, pressure nodes can never be connected directly. An Air Flow Component (AFC) has to be kept between them. We have chosen to connect our zone to the outside with the help of crack components. The crack is a very popular, multi-purpose AFC that can be used to model just about any opening. It is perfect for a floor and ceiling with cracks. To connect the zone to the crack, select the Link Tool ( )and click on the zone icon. The mouse pointer will change to a crosshair, indicating that a link is being created. Now click on the crack icon, selecting one of the red dots which appear as you approach the icon with the mouse (the red dots indicates where the links can connect to a given icon). The airflow in a link may go either way. The direction indicated by the link only defines the direction in which the flow is counted positively; flow in the opposite direction will be indicated by negative numbers in the output file. A segmented black line connecting the zone and the crack, as shown below, should now be seen.
In the same way the following connections should be made: - crack to external
25
- external to faade-e - crack-2 to external-2 - external-2 to faade-e-2 - v_zone to crack-2 External nodes always come with a facade element. Therefore, a specialized macro model, containing an external node with its facade element, is also provided and could have been used instead. Macro models are discussed in more detail in the Assembly Panel section of the Simulation Studio User Manual.
26
Using Schedules
Some components, such as zones, allow for the definition of schedules to define events occurring during the simulation. Such events may concern : meteorological changes, occupant behavior (moving from room to room, opening windows, ...), pollutant emission/absorption, etc. Schedules can be defined in the Global Control Window ( tab.
),
In this window, you can use the + buttons to create, the - buttons to delete, and the edit button to edit schedules. It also allows to create zone layers. When creating a
27
schedule with the + button, the user has to specify an ASCII text file to store the schedule values. Once created, these schedules (and layers) can be used with a given compoennt, such as a zone, by double-clicking on that component in the assembly panel, and selecting the Others tab. Again, there are + and - buttons to add existing schedules to the component. To find out what schedules can be attached to a given component, click on the Others tab of the components window. For example, when double-clicking on the zone icon in your sample project, a window similar to the one below will open.
Attachments to zones
28
Look at the sample projects in the Examples subdirectory. Manipulate more complex components like windows, doors, fans, etc. The restaurant example is prepared for coupling with the thermal simulation tool TRNSYS, but can also be run in stand-alone mode. Create a more realistic example, using cp-values for the 4 main wind directions, such as the ones given in section 4.4 of the COMIS user Guide (under the description of the &-CP-VALUES keyword) :
Wind angle Facade 0 90 180 270
2.
4 1 -0.49 -0.45 -0.49 3 -0.49 1 -0.49 -0.45 2 -0.45 -0.49 1 -0.49 1 -0.49 -0.45 -0.49 1
Set all zone temperatures to 20 degrees, as well as the outside temperature. Modify the wind direction during the simulation by defining a schedule in the lower part of the Meteo tab in the Control Card window. Observe the changes of air flows and be sure to understand their directions (From->To and To->From columns in the output file). 3. Study the COMIS User Guide and the Simulation Studio manual.
29