Here, in the first HVAC tutorial we shall
icon on the desktop.
If you have no such folder, please create it in any way you prefer inside the d_prelud directory.
Click on that folder. It will remain your working directory for the PRELUDE HVAC session until you change it again.
You should then see a picture more or less like this:

The 'more or less' is included because, between the time of writing of this tutorial and the time of your studying it, it is almost inevitable that some changes will have been introduced into PRELUDE, which is constantly being improved. This explains why the images presented in this tutorial can be slightly different from yours.
If you click on the arrow to the right of the 'Scenario' box, you will see the possible scenarios given from the picture that follows.
We are going to look into the simplest case - simulation of air flow inside a room and for this reason let us select 'ONEROOM.PSC' from the list of PSC files, i.e. from the script files provided for this gateway.
After that click on the 'next' button. The next box "Steady?" presents two alternatives of answering the question: saying "Yes" here we intend to consider a steady case and ignore all possible transients.
Click again on the button "next" and the scenario according to the conditions set will be loaded.

What you see in this picture is an almost empty room with some objects which we shall discuss later.
Try rotating the domain and enlarging it by moving the mouse, as explained in Tutorial 1, so as better to understand shapes of the component objects.


These are the variables which a CFD specialist would expect to be calculated throughout the space.
Buoyancy is a phenomenon which operates everywhere; therefore, when you click on it in the object tree, the whole domain is brightened, the other objects becoming correspondingly dimmed. [This effect does not disappear completely when the next object is selected; but clicking on the
will remove it.]
Clicking the red-tick icon, then on 'In-Form Statements',
and then on 'IF_SOURCE_W1' and on 'formula', will reveal that the source is:
9.81*rho1*(tem1-20)/273 .
Here, 9.81 is recognisable as the acceleration due to gravity; rho1 is the ambient-air density, tem1 is the local air temperature, and 1/273 is the volumetric expansion coefficent of air.
Evidently, whoever set up this problem regarded 20 degrees Celsius as being the ambient temperature, deviations from which would cause the air to rise or fall. However, it will later be seen that air from the outside enters at 15 degrees Celsius; so (tem1-15) would be more reasonable than (tem1-20).
Later, after you have made the first flow-simulation calculation, you might care to make the change from 20 to 15, so as to determine how much difference it makes. The 'MAKE RUNS' facility of PRELUDE would enable you to explore a range of such assumptions.


Clicking on 'appearance' will lead you, after a few obvious (to Windows cognoscenti) steps, to the folder 'textures' containing a large number of alternative texture files.
Choose one of them if you wish.
Of course, the texture which you choose has only decorative significance: it will have no effect on the calculated flow.
Clicking on the red tick, the 'Attributes' tab and reveling parameter to edit from the corresponding box will lead to the information that the temperature of the in-flowing air is the just-mentioned 15 degrees Celsius,
and that its x-direction velocity is a (hardly-to-be-endured!) 6 meters per second.

If you think that this is too much even to be contemplated, reduce it at once. Otherwise, when you come to examine the results of the calculation, do not be surprised that the effects of buoyancy are rather small. As currently set up, this is a flow in which forced convection will be dominant and natural convention of little effect.


This is, of course, not the absolute pressure; it is that relative to which all other pressures (P1 in PHOENICS parlance) are measured.
What is meant is that air escapes through it in proportion to the excess of the local pressure above zero.
What is the proportionality constant? The PHOENICS default value (no other having been set) of 1.0E3 kg/s/Newton.
The other attribute is the temperature, which is the same 15 degrees as has been set for the inflow. This means that if any air
This indicates that the radiator represents a source of heat that somehow controls the room temperature TEM1. At this stage we shall not expand how.
Try enlarging and reducing this. What you do should be reflected on the screen. [but whatever you do, do not shut it entirely; for then there would be no flow to simulate!]

"MAX(0,5*(30-TEM1{(xmid(sensor)&ymid(sensor)&zmid(sensor))}))"


The curves in the left-hand panel represent the maximum values of each of the solved-for variables to be found anywhere in the domain ; those in the right-hand panel show their minimum values.
Which curve corresponds to which variable? This can be established by comparing their colours with those used for printing the names of the variables (P1, U1, V1, W1, TEM1) in the central column in the lower part of the screen.
Other columns of interest are those headed 'Dom.Max.' and 'Dom.Min.', which contain the actual values of those quantities at the end of the run; and the columns headed 'Change', immediately to the right of them, which represent their changes in value between the last-but-one sweep and the very last.
The run which gave rise to the last diagram can be regarded as converged in part as only the maximum values of pressure P1 (red curve) and Y-component of velocity V1 (yellow curve) still show the tendency to rise; besides the corresponding 'Change' of 0.0446 m/s for the yellow curve on the right can be regarded as quite satisfactory especially for the tutorial needs.
Were the run to be repeated with LSWEEP (the last-sweep number) set to 1000 rather than the 200 which was used (in order that you did not have to wait long for your results), all the curves would become more nearly horizontal; then convergence could be said to be more complete, and the results more trustworthy.
You might care to try this.
4. Inspecting the results
How to use the PHOENICS Viewer package is
a large subject, for which separate tutorials exist, for example, the one called
'How to use
the Viewer'. Nevertheless, the following suggestions are made to the
newcomer to PHOENICS who wishes to see immediate evidence that he or she has
performed a CFD calculation:
By default the first variable to be displayed is 'Pressure'. Its variations you can observe in a certain plane by means of its contours, coloured Pressure bar on the left of the picture and the 'Probe value' that is displayed on the right of the picture also concerns pressure - relative pressure at a point marked by the probe.

It might be interesting to display maximum and minimum values of the variable in question. To do so, press the button
in the Viewer tool bar or in its Control panel to open the Viewer Options window.
Under the 'Contours' tab you will see these values of temperature, i.e. the variable earlier chosen, being 22.45722 and 15 degrees Celsius respectively.
Open the 'Options' tab, select the empty box 'Show min max locations' to reveal them and after that close the 'Viewr Options' window by the top-right cross.
You will see a red sphere marking the maximum temperature location in the top-left corner of the radiator, but to have a better look you will have to click on the contours button to switch them off and them to click on the 'Wireframe toggle' button
of the Control Panel to view a picture like this one

It might be a good way to judge about plausibility of the results obtained by viewing max and min temperature locations. As to the present case, the results seem to be realistic. After that you may disselect the same box to remove the display of these locations.

We advise you to leave unchanged the default settings for 'Streamline mode' - 'lines' (that is how streamlines will be displayed on the screen) and for 'Streamline direction' - 'both' (that means whatever way of creation of the streamlines you choose, it/they will be extended in both directions - 'Downstream' and 'Upstream'.)
Third group of options 'Streamline coloured by' gives you opportunity of choosing a variable according to which values the streamlines will be coloured. If you click in the 'Current variable' box, you will be able to set any variable from the list that is of interest to you.

The fourth group of options specifies the way of streamline creation, necessary coordinates for the 'Along a line' option or the circle radius for the 'Around a circle' option and their number, the default number of streamlines being set to '15'.


and you will get a picture like this one.

Experiment with the streamlines deleting and creating new ones by means of the 'Object' - 'Options' command from the 'Streamline Management' panel.
Having reached this section of the tutorial and being still able to proceed, you might be in need of having some rest and entertainment. We can offer you a rather specific way of amusement - animation of created streamlines.


Click 'here' to see animated streamlines.

We advise you to pay attention to the 'Animation ball size' which you can set according to you preferences and selecting the box 'Colour by value' you will make animation balls change their colour according to the variable value at the point in question.
However, the settings which you made during your interaction with PRELUDE will be lost unless you save them.
Then navigate to d_prelude\my_hvac, where if you choose 'all files', you should find several files those displayed by clicking here.
However, if you choose the first-supplied option (*.q1, *.q3, *.psc),you will see only:
If you load either the q1 or the q3, you should be able to repeat the run which you last made; but it is only the q3 which still contains all the relations which were provided by the PRELUDE hvac gateway.
6. Concluding remarks
About HVAC, about the PRELUDE Gateway, and about the CFD simulations which PHOENICS makes in response to its user's requests, there are many more things to say than could be alluded to in this tutorial.
Therefore, in conclusion, attention is drawn to the following sources of further information, namely: