Professional Documents
Culture Documents
Using Macros
Macros can help to streamline the process of building your Airpak model.
This chapter describes the macros available in Airpak and how you can
use them. Information is organized into the following sections:
Closed box macros allow you to enclose spaces in your Airpak model and
assign properties to the sides of the enclosure. Two types of enclosures
can be created using the closed box macro:
• A box that encloses the whole room with six Airpak wall objects
• A box that encloses part of the room with six Airpak partition
objects
The closed box macro can be used to reduce the number of steps required
to create the six individual sides of an enclosure.
To include a closed box in your Airpak model, click Macros in the Model
menu and select Closed Box. This will open the Closed Box panel, shown
in Figure 12.1.1.
Model−→Macros−→Closed Box
1. Select Start/end and enter values for the start coordinates (xS,
yS, zS) and end coordinates (xE, yE, zE) of the box, or select
Start/length and enter values for the start coordinates (xS, yS, zS)
and the lengths of the sides (xL, yL, zL) of the box.
6. (external box sides only) Specify the External material for the sides
of the box. The selection of default means that the material spec-
ified as the External material for the sides is defined under Default
surface in the Problem setup panel (see Section 6.4.7). To change
the External material for the sides, select a material from the Exter-
nal material drop-down list. The surface roughness and emissivity
are defined as part of the surface material parameters. You can
edit these values if you select Edit definition in the materials list.
See Section 7.7 for details on material properties.
After the box has been created and positioned in your Airpak model, it
cannot be modified using the Closed Box panel. There are two ways to
• If you selected the Create internal part option in the Closed Box
panel, you can edit the box in the same way that you edit a part
(see Section 7.8.4).
• If you did not select the Create internal part option in the
Closed Box panel, you must individually select and modify the wall
or partition objects that make up the box.
Polygonal ducts are created using wire objects (described in Section 7.5.11).
At least three wires are necessary to construct a polygonal duct. The
number of walls (sides) of the duct is equal to the number of wires used
in its construction. The macro uses the 2D polygon partition object to
construct the walls (sides) of the duct from the wires.
2. If you want to close the duct at the starting end, select Close starting
end.
3. If you want to close the duct at the finishing end, select Close
finishing end.
After the polygonal duct has been created and positioned in your Airpak
model, it cannot be modified using the Polygonal ducts panel. There are
two ways to modify an existing polygonal duct:
• If you selected the Create internal part option in the Polygonal ducts
panel, you can edit the polygonal duct in the same way that you
edit a part (see Section 7.8.4).
• If you did not select the Create internal part option in the Polygonal
ducts panel, you must individually select and modify the polygonal
duct’s partition objects.
amet a
U dmet h
h<d
met Hmet d
U (h) = amet (12.2-1)
U dmet
h≥d
met Hmet
where
Table 12.2.1: Terrain Factor and Boundary Layer Thickness for Four
Categories of Land
(U ∗ )2
k= p (12.2-2)
Cµ
(U ∗ )3
= (12.2-3)
κh
κUmet
U∗ = (12.2-4)
ln( Hmet
s )
File−→Problem
Under Northward direction, specify values for (X, Y, Z) to define the north-
ward direction for your model. See Section 6.4.4 for more information
about specifying the northward direction.
To include an atmospheric boundary layer in your Airpak model, click
Macros in the Model menu and select Atmospheric boundary layer. This
will open the Atmospheric boundary layer panel, shown in Figure 12.2.1.
Model−→Macros−→Atmospheric boundary layer
The procedure for adding an atmospheric boundary layer to your model
is as follows:
6. (optional) Specify the Boundary layer thickness (met) for the mete-
orological station (dmet in Equation 12.2-1). The default value of
dmet is 270 m, but you may enter your own value for the boundary
layer thickness based on your own knowledge or experience.
7. Select the Local terrain type. The four options (Large city centers;
Urban, suburban, wooded areas; Scattered obstacles on open terrain;
and Flat, unobstructed areas) are described in Table 12.2.1.
8. (optional) Specify the Exponent, which is the terrain factor for the
desired location (a in Equation 12.2-1). If your problem is not
accurately modeled with one of the four pre-defined terrain types,
you can enter your own value for the terrain factor based on your
own knowledge or experience.
9. (optional) Specify the Boundary layer thickness for the desired lo-
cation (d in Equation 12.2-1). If your problem is not accurately
modeled with one of the four pre-defined terrain types, you can
enter your own value for the boundary layer thickness based on
your own knowledge or experience.
11. Specify the Profile density, which is the number of points that will
be included in the velocity profile for the atmospheric boundary
layer.
12. Specify the Profile direction. This is the direction in the Airpak
model (X, Y, or Z, as available) in which the variation of height (h
in Equation 12.2-1) is taking place, and should be perpendicular
to the specified northward direction. See Section 6.4.4 for more
information about specifying the northward direction.
15. Click Accept to accept the parameters entered into the Atmospheric
boundary conditions panel and create the boundary layer.
After the boundary layer has been created and positioned in your Airpak
model, it cannot be modified using the Atmospheric boundary layer panel.
There are two ways to modify an existing boundary layer:
• If you did not select the Create internal part option in the Atmo-
spheric boundary layer panel, you must select and modify the open-
ing object that makes up the boundary layer.
The solar flux macro allows you to account for incident solar radiation,
given a model geometry and pertinent solar information such as terres-
trial location, date, and time. Once Airpak has calculated a value for the
heat flux resulting from incident solar radiation, you can then specify
this value as a boundary condition either for a wall object or for the
individual sides of a block object in your Airpak model. See Section 7.5
for more information about walls and blocks.
1. Specify the incline of the model surface relative to the ground under
Surface specification. There are two options:
3. Specify the local time at the desired location in the two fields to
4. (optional) Specify the local time zone of the desired location using
the menu to the right of the Time text-entry fields. The options are:
Greenwich Mean Time (GMT), Atlantic Standard Time (AST),
Eastern Standard Time (EST), Central Standard Time (CST), Moun-
tain Standard Time (MST), and Pacific Standard Time (PST). The
time zone is used to approximate the longitude (see below) of the
location if you are unsure of the coordinates.
6. Specify the Local Latitude of the desired location. Values can range
from −90◦ (the South Pole) to 90◦ (the North Pole), with 0◦ defined
as the equator.
8. Click Compute to accept the parameters entered into the Solar Flux
Calculator panel and calculate the solar irradiation flux boundary
condition for your Airpak model. The Message window will display
the following information:
• Local sunrise and sunset times
• Apparent solar time
For example, at 7:00 a.m. on April 2 at 43.6◦ north latitude and 73.2◦
west longitude, the direct component of the solar irradiation flux on a
vertical wall facing west is calculated to be 0 W/m2 , and the diffuse sky
radiation is calculated to be about 89 W/m2 . The reason that the direct
component is 0 is that the outer surface of this particular wall is pointed
away from the sun at 7:00 a.m.
At 4:00 p.m. on the same day, the direct component of the solar irradi-
ation flux on the wall is calculated to be about 610 W/m2 because the
wall is now facing the sun. Combined with the calculated diffuse sky
radiation of 532 W/m2 , the total short-wave irradiance on the wall is
about 1142 W/m2 .
The two primary methods for modeling diffusers with simplified bound-
ary conditions [5] are the momentum method and the box method. These
two methods are described below.
Momentum Method
The momentum method assumes that the airflow from a particular dif-
fuser can be predicted using the isothermal axisymmetric jet formula
√
um A0
= K1 (12.3-1)
u0 x
u2m x2
u0 = (12.3-2)
K12 Q
where Q = u0 A0 .
The initial jet velocity, u0 , may be larger than the velocity, u, that is
calculated by simply using the volumetric flow rate and the geometric
area that the diffuser occupies (Ageom ):
Q
u= (12.3-3)
Ageom
Box Method
Although the momentum method works well for most types of diffusers,
entrainment effects of discrete air jets from nozzle, linear slot, or valve
diffusers are more accurately modeled using the box method.
The box method does not explicitly model the jet behavior in the imme-
diate vicinity of the air inlet diffuser; instead, it specifies flow boundary
conditions on the sides of a rectangular region adjacent to the air inlet
diffuser. For best accuracy with the box method, velocity profiles from
the inlet diffuser manufacturer or from measured data should be used.
The box method in Airpak uses flat velocity profiles to account for en-
trainment effects, but you can improve the accuracy by supplying mea-
sured velocity profiles when you are editing the objects created by the
diffuser macro.
• Grille
• Ceiling
• Displacement
• Slot
• Nozzle
• Valve
• Vortex
Section 12.3.3 describes the steps for defining a diffuser in Airpak. See
Figure 12.3.1 for general information about inputs for each type of dif-
fuser. Details about the inputs for each type of diffuser are provided in
Sections 12.3.4–12.3.9.
2. Specify the airflow performance data. See Section 12.3.4 for details.
3. Specify the geometry, position, and size of the diffuser. See Sec-
tion 12.3.5 for details.
Supply Conditions Supply Conditions Supply Conditions Supply Conditions Supply Conditions Supply Conditions Supply Conditions
• Flow Rate • Flow Rate • Flow Rate • Flow Rate • Flow Rate • Flow Rate • Flow Rate
• Direction • Temperature • Direction • Direction • Direction • Jet Cone Angle • Temperature
• Temperature • Species • Temperature • Temperature • Temperature • Temperature • Species
• Species • Turbulence • Species • Species • Species • Species • Turbulence
• Turbulence • Free Area • Turbulence • Turbulence • Turbulence • Turbulence • Swirl Angle
• Free Area Ratio/Dir. • Free Area
Ratio (perforated only) Ratio
Room Conditions Room Conditions Room Conditions Room Conditions Room Conditions Room Conditions Room Conditions
• Temperature • Temperature • Temperature • Temperature • Temperature • Temperature • Temperature
Momentum Method Momentum Method Momentum Method Momentum Method
• Vel. Decay const. • Vel. Decay Const. • Vel. Decay Const. • Vel. Decay Const.
5. Specify any additional inputs that may be required for the diffuser.
See Section 12.3.7 for details.
7. Select the method of modeling the diffuser, and specify the related
parameters. See Section 12.3.9 for details.
10. Click Accept to accept the parameters entered into the Diffuser
panel and create the diffuser.
After the diffuser has been created and positioned in your Airpak model,
it cannot be modified using the Diffuser panel. There are two ways to
modify an existing diffuser:
• If you selected the Create internal part option in the Diffuser panel,
you can edit the diffuser in the same way that you edit a part (see
Section 7.8.4).
• If you did not select the Create internal part option in the Diffuser
panel, you must select and modify the object or objects that make
up the diffuser.
There are two ways you can specify performance data for the diffuser:
! For displacement and valve diffusers, only the first method is available.
• Throw distance of the air jet from the diffuser (x in Equation 12.3-2)
at which the air jet centerline velocity equals the specified terminal
velocity
Note that, for displacement and valve diffusers, only the volumetric flow
rate is specified.
9. In the Performance data panel, specify the Volumetric flow rate for
the diffuser.
10. Click Compute throw to compute the throw distance value for the
diffuser based on the performance curve. In the Diffuser panel,
a set of Performance data will be updated (Volumetric flow rate,
Terminal velocity, and Throw). The Message window will also print
this information.
Saving a Curve
To save a profile, click on Save. This will open the Save curve dialog box,
in which you can specify the filename and directory to which the profile
data are to be saved.
The geometry types that are available will depend on which type of dif-
fuser you are using. See Figures 12.3.2–12.3.8 and below for details. The
inputs for the standard Airpak geometries are described in Section 7.4.4.
See Section 7.3.6 for details on resizing an object and Section 7.3.7 for
details on repositioning an object.
For the diffuser macro, there are two additional geometry types that you
can specify for a specific type of diffuser: square geometry and perfo-
rated panel geometry. The inputs for both square and perforated panel
geometry are similar to those of standard rectangular geometry. See
page 12-40 for details.
Information about the availability of each geometry type and how Airpak
uses the information you provide for it is provided below.
Rectangular Geometry
Momentum Method
If you select the momentum method, Airpak will create a 3D source object
(four-sided top and bottom) with a rectangular fan object on the supply
side. The height of the source object is determined by the effective area
of the diffuser (A0 in Equation 12.3-1), which is defined as
2
K1 Q
A0 = (12.3-4)
um x
Box Method
If you select the box method (nozzle diffusers only), Airpak will create
a hollow prism block object with rectangular openings on five sides of
the block. The opening on the supply side will be the intake, and the
four openings perpendicular to the supply side will be the exhaust. See
Section 12.3.1 for more information about the box method, and Sec-
tion 12.3.9 for information about inputs for it.
Circular Geometry
Momentum Method
If you select the momentum method, Airpak will create different objects
depending on the type of diffuser you selected:
See Section 12.3.1 for more information about the momentum method,
and Section 12.3.9 for information about inputs for it.
Box Method
If you select the box method (nozzle or valve diffusers only), Airpak
will create a cylindrical block object, a cylindrical fan object, and a
circular opening object. The fan object will occupy the same space as
the block object, with the block object acting as the support structure.
The opening object will be on the supply side of the block object. See
Section 12.3.1 for more information about the box method, and Sec-
tion 12.3.9 for information about inputs for it.
Inclined Geometry
Cylinder Geometry
If you specify the maximum of four active corners, Airpak will create a
3D fan object with a 16-sided top and bottom. If you have specified
an effective area ratio of less than 1, Airpak will also create a 3D source
object (four-sided top and bottom) on each of the 16 equatorial sides of
the fan. The height of the source objects is determined by the effective
area of the diffuser (A0 in Equation 12.3-1).
If you specify one, two, or three active corners, Airpak will create objects
to represent one, two, or three quarters of a cylinder. For each corner
selected, Airpak will create a 3D “pie piece” block object with four in-
clined rectangular fan objects on the four outer sides of the block. If
you have specified an effective area ratio of less than 1, Airpak will also
create a 3D source object (four-sided top and bottom) on the four outer
sides of the block. The height of the source objects is determined by the
effective area of the diffuser (A0 in Equation 12.3-1).
Prism Geometry
Polygon Geometry
effective area ratio of less than 1, Airpak will also create a 3D source
object (four-sided top and bottom) on each equatorial side of the fan.
The height of the source objects is determined by the effective area of the
diffuser (A0 in Equation 12.3-1). See Section 12.3.1 for more information
about the momentum method, and Section 12.3.9 for information about
inputs for it.
Perforated panel geometry is available for ceiling diffusers, for which you
must use the momentum method. Specifying perforated panel geometry
will instruct Airpak to create a 3D source object (four-sided top and
bottom) with a rectangular fan object on the supply side. The height of
the prism source object is determined by the effective area of the diffuser
(A0 in Equation 12.3-1). See Section 12.3.1 for more information about
the momentum method, and Section 12.3.9 for information about inputs
for it.
Square Geometry
Square geometry is available for ceiling diffusers, for which you must
use the momentum method. Depending on the number of active sides
you specify for the diffuser, specifying square geometry will instruct Air-
pak to create different objects to represent your diffuser in the model.
See Section 12.3.7 for information about specifying active sides. See
Section 12.3.1 for more information about the momentum method, and
Section 12.3.9 for information about inputs for it.
If you specify the maximum of four active sides, Airpak will create a 3D
polygon fan object. The height of the polygon fan object is determined
by the effective area of the diffuser (A0 in Equation 12.3-1).
If you specify one, two, or three active sides, Airpak will create a prism
block object with rectangular intake fan objects on the specified active
sides of the block object. The fan objects will be perpendicular to the
supply side of the block.
Linear Geometry
If you select the momentum method and specify the maximum of four
active sides, Airpak will create a 3D polygon fan object. The height of
the polygon fan object is determined by the effective area of the diffuser
(A0 in Equation 12.3-1).
If you select the momentum method and specify one, two, or three active
sides, Airpak will create a prism block object with rectangular intake fan
objects on the specified active sides of the block object. The fan objects
will be perpendicular to the supply side of the block.
Box Method
If you select the box method, Airpak will create a hollow prism block
object with rectangular openings on up to five sides of the block. The
number of openings will depend on the number of active sides that you
specify. The opening on the supply side will be the exhaust, and the
other openings perpendicular to the supply side will be the intake. See
Section 12.3.1 for more information about the box method, and Sec-
tion 12.3.9 for information about inputs for it.
Vertical Geometry
Momentum Method
If you select the momentum method, Airpak will create a 3D source object
(four-sided top and bottom) with a rectangular fan object on the supply
side. The height of the source object is determined by the effective area
of the diffuser, A0 , which is defined in Equation 12.3-4. The air flow will
be delivered normal or at a specified angle to the surface on which the
diffuser is located. See Section 12.3.1 for more information about the
momentum method, and Section 12.3.9 for information about inputs for
it.
Box Method
If you select the box method, Airpak will create a hollow prism block
object with rectangular openings on five sides of the block. The opening
on the supply side will be the intake, and the four openings perpendicular
to the supply side will be the exhaust. See Section 12.3.1 for more
information about the box method, and Section 12.3.9 for information
about inputs for it.
For all diffuser types, you will need to specify the direction of the Ex-
trusion. For 3D diffusers, the height, or extrusion, is usually calculated
using the effective area (A0 in Equation 12.3-1). The extrusion direction
is the direction in which the Airpak objects are extended. Depending
on the location of the diffuser in the room, you need to make sure that
the diffuser is extruded into the room volume and not out of the room
volume.
Max specifies that the extrusion points in the direction of increasing co-
ordinate value. For example, if you have positioned a grille diffuser
on a surface on the x-y plane with the positive z direction pointing
into the room, you should select Max.
Min specifies that the extrusion points in the direction of decreasing co-
ordinate value. For example, if you have positioned a grille diffuser
on a surface on the x-z plane with the negative y direction pointing
into the room, you should select Min.
Note that you will not specify the extrusion direction in this way for a
cylindrical displacement diffuser. See Section 12.3.7 for details.
If you are modeling grille, slot, nozzle, or certain types of ceiling (perfo-
rated panel geometry) or displacement (rectangular, circular, or inclined
geometry) diffusers, you will need to specify the Flow direction. There
are two options:
• If the air flows into the room normal to the diffuser, select Normal.
• To specify the flow angle of the fluid entering the room through
the diffuser, select Given. There are two specification methods:
Direction allows you to specify the direction vector (x, y, z) for the
flow. Only the direction of the vector is used by Airpak; the
magnitude is ignored.
Angles allows you to specify the direction of the flow entering the
room in terms of angles relative to the inward-pointing nor-
mal direction. You can specify two angles, A (α) and T (θ),
to account for incoming flow not aligned with the normal di-
rection. If the normal inward vector points in the positive
direction, then α and θ must have values in the range −90◦
< angle < 90◦ , with α=θ=0◦ representing flow in the positive
normal direction. If the normal inward vector points in the
negative direction, then α and θ must have values in the range
90◦ < angle < 270◦ , with α=θ=180◦ representing flow in the
negative normal direction. Since the diffuser may be oriented
in any one of three planes (x-y, y-z, or x-z), the roles of α
and θ will vary depending on the orientation of the plane of
the diffuser.
For specific types of diffusers, there are additional inputs that are re-
quired in the Diffuser panel. These special inputs are described below.
For example, if you have specified an x-z plane, the + + option represents
the quadrant on the positive x and positive z side of the center of the
cylinder. When viewed from the Positive Y orientation, the + + option
represents the upper right quadrant of the diffuser. The − +, − −,
and + − options represent the remaining three quadrants in a counter-
clockwise direction (upper left, lower left, lower right), respectively.
If you have selected square geometry for a ceiling diffuser or linear geom-
etry for a slot diffuser, you must specify the Active sides of the diffuser.
You must specify a minimum of one active side and may specify up to
four. Depending on the plane you selected for the diffuser, four different
sides of the diffuser (Xmin, Xmax, Ymin, Ymax, Zmin, or Zmax) will be
available for you to define as active sides. Xmax, Ymax, and Zmax refer
to the sides of the diffuser facing in the positive coordinate directions.
Xmin, Ymin, and Zmin refer to the sides of the diffuser facing in the
negative coordinate directions.
For example, if you have specified an x-z plane, the Ymin and Ymax
options will not be relevant, and you must choose from one to four sides
from Xmin, Xmax, Zmin, and Zmax.
If you have selected a valve diffuser, you will need to specify the Jet cone
angle instead of the flow direction.
If you have selected a vortex diffuser, you will need to specify the Swirl
angle instead of the flow direction.
For all diffuser types, Airpak calculates a local Archimedes number (Ar)
to give an indication of the relative importance of buoyant forces. For
Airpak to calculate the local value of Ar, you will need to estimate the
temperatures of both the supply air and the room air. Specify the tem-
perature of the supply air in the Temperature field under Supply, and the
temperature of the room air in the Temperature field under Room.
If you have enabled the Species option in the Problem setup panel, you
can specify species parameters for the diffuser supply air using the Supply
species concentration panel (Figure 12.3.10). To open the Supply species
concentration panel, select the Species option in the Diffuser panel and
click Edit.
If you selected the two-equation or RNG k- model in the Problem setup
panel, you can specify turbulence parameters for the diffuser supply air
using the Turbulence equation parameters panel (Figure 12.3.11). To open
the Turbulence equation parameters panel, select Turbulence in the Diffuser
panel and click Edit.
For all diffuser types, you will need to select the method of modeling the
diffuser. See Section 12.3.1 for more information about diffuser modeling
methods.
There are two methods of modeling diffusers in Airpak.
Box method specifies the box method for modeling the diffuser. This
option is available and recommended for slot, nozzle, and valve
diffusers. See Section 12.3.5 for details about the types of Airpak
objects that are created when you choose the box method for spe-
cific diffusers. See below for information about input options for
the box method.
The default approach in the momentum method is to use jet theory and
published correlations to determine the effective area. You can modify
this approach in several ways:
• Specify parameters that are used in the correlations for some dif-
fusers
Attached jet correction specifies a correction factor for the default value
of K1 . This option is available for grille diffusers and accounts for
jets from high side-wall diffusers attached to the ceiling.
Effective area ratio directly specifies the ratio of the effective area (A0 in
Equation 12.3-1) to the total area of the diffuser. This option is
available for grille, displacement, slot, nozzle, and valve diffusers.
Specifying the effective area ratio, which can be supplied by the
diffuser manufacturer or obtained from your own diffuser perfor-
mance measurements, allows you to bypass calculating the effective
area based on jet theory and correlations.
Free area ratio directly specifies the free area ratio, which is a parameter
in correlations for the velocity decay constant K1 for grille and
perforated-panel ceiling diffusers.
The Compute button instructs Airpak to calculate values for various pa-
rameters and display them in the Message window. These parameters
include the discharge velocity, effective area, Archimedes number, and
others that depend on the momentum method options you have selected.
You can specify parameters for the box method using the Box method
parameters panel (Figure 12.3.12). To open the Box method parameters
panel for a slot, nozzle, or valve diffuser, select the Box method option
in the Diffuser panel and click Edit.
The procedure for specifying box method parameters for your diffuser is
as follows:
1. For rectangular diffusers, enter values for the lengths of the sides
(xL, yL, zL) of the box under Box geometry type. For circular dif-
fusers, enter values for the Height and Radius of the “box”.
2. Click the Check box button to check whether the box dimensions
are large enough to adequately model the diffuser.
! The Archimedes number (Ar) cannot be 0 if you are using the box
method. If you get an Error dialog box, click OK and adjust either
the room temperature or the supply air temperature so that they
are different values. See Section 12.3.8 for details.
The Message window will inform you if your box dimensions are too
small or too large. Once you have specified adequate box dimen-
sions, click Check box and the Message window will display Check
OK.
4. If you have enabled the Species option in the Problem setup panel,
you can specify species parameters for the diffuser exhaust air using
the Exhaust species concentration panel (Figure 12.3.13). To open
the Exhaust species concentration panel, select Species in the Box
method parameters panel and click Edit.
5. Click the Compute Tbox & Cbox button to compute the temper-
ature and, if required, the mass fraction of species that exit the
box. This accounts for mixing between the supply air and the en-
trained room air. The Message window will display values for Tbox
(temperature) and Cbox (mass fraction).