head_img

Ventilation in a Public Restroom

1. Introduction

In this tutotial, we perform a simulation of ventilation in a public restroom in a building. All the input files required for the present three cases can be downloaded below. A typical computational time of this case is approximately 10 minutes per 1000 time steps with a typical Core i7 PC with the parallelism setting, parallel = 3, in parameter setting).

Hereafter, descriptions are for "reference case" unless otherwise specified. Also, the "" next to the file names means corresponding input file is the same for all the cases.

Reference case
(closed window & door)

Window opened


 

2. Domain specification

The below figure shows a bird's-eye view of present simulation domain dimensions which are based on measurement. The items (A) - (E) are expain below, and they are related to the physical boundary conditions of the three cases, "reference case", "window opened" and "door opened" cases.

  • (A) Door (small gap at the bottom of the door for ventilation)
  • (B) Window
  • (C) Ventilation fans attached on the ceiling
  • (D) To the corridor in the building
  • (E) To outside of the building

The air in the restroom is pumped out of the restroom by the ventilation fans equipped on the ceiling (threfore negative pressure in the room). The fresh air from the outside or the corridor naturally flows in the room through the gap at the bottom of the door, opened window and/or opened door, depending on the cases.

Also, in the present simulations, we consider region outside of the building (region E in below figure) for about x=1.4 (m). This is to avoid the situation where the air flowing in through the opened window is directly from the coputational boundary (unknown information). If you can spend more computational resources, you may want to enlarge the size of the outside region.

Bird's-eye view of simulation domain scketch.
Bird's-eye view of simulation domain scketch.
Constructed boundary conditions (ceiling excluded).
Constructed boundary conditions (ceiling excluded).
Constructed boundary conditions (view in x-direction).
Constructed boundary conditions (view in x-direction).
Constructed boundary conditions (view in inverse x-direction).
Constructed boundary conditions (view in inverse x-direction).

 

3. Construction of Simulation Domain

General rule of constructing 3D boundary conditions is explained in here. In the present simulations, following colors are used for different parts of the domain.

  1. Wall, window and door (non-preset colors)
  2. Floor (preset black)
  3. Ceiling (preset green)
  4. Ventilation fans (preset blue)
  5. Initialization of the age variable (preset red)

Each of these parts specified by one of above colors is constructed using "(b) Model constructed by third angle projection".

The paint image pixel sizes can be irrelevant to actual physical domain dimensions. However, it is a good habit to use more or less similar aspect ratio between images and domain dimensions. In the present cases, 1 (m) length corresponds to 100 pixels in the paint images.

Below images are for "reference case".



bcXY0.bmp
bcXY0.bmp
Alignment of bcXY0.bmp.
Alignment of bcXY0.bmp.


bcXY1.bmp
bcXY1.bmp
Alignment of bcXY1.bmp.
Alignment of bcXY1.bmp.


bcYZ0.bmp
bcYZ0.bmp
Alignment of bcYZ0.bmp.
Alignment of bcYZ0.bmp.


bcZX0.bmp
bcZX0.bmp
Alignment of bcZX0.bmp.
Alignment of bcZX0.bmp.


bcZX1.bmp
bcZX1.bmp
Alignment of bcZX1.bmp.
Alignment of bcZX1.bmp.
Constructed boundary conditions.
Constructed boundary conditions (ceiling is excluded for visualization).
Constructed boundary conditions.
Constructed boundary conditions (coloured based on the paint colors).

 

4. Simulation Parameters

Several important parameters are explained here. More thorough information about parameters can be found here.

  1. cmode = 0
    Taken as 0 for the fluid simulation mode (constant temperature and density).
  2. ageFlag = 1
    To use the age varialbe during simulation, choose 1.
  3. lx = 7.0
    The domain length in X-direction is 7.0 m. This includes the region outside the building.
  4. ly = 2.5
    The domain length in Y-direction is 2.5 m.
  5. lz = 3.4
    The domain length in Z-direction is 3.4 m.
  6. nx = 210、ny = 150、nz 102
    The number of mesh points needs be determined based on the required spatial resolution. Here, we will use (nx, ny, nz) = (210, 150, 102). The thinnest part of the 3D model (in this case, perhaps wall) should be resolved by few mesh points at least, unless the part is on the computational boundary.
  7. presW, rhoW
    Pressure is 100,000 (Pa), and fluid density is 1.2 (kg/m^3).
  8. vinB
    The fluid velocity from the ventilation fans (preset blue) is taken as 1 m/s in y-direction.
  9. uinR、vinR、winR
    We want the age variable to start accumulating the residence time after entering the room. Thus, we need to set \(a=0\) in the outside region. To do that, red color is added right outside of the door and window with the relevant velocity parameters, uinR = vinR = winR = " - " (hyphen). This does not influence the velocity, but constrain the age variable to be zero. See #3 in the Section 2.
  10. openPresFlag = 1
    The present simulation domain has quasi-closed configuration. Therefore, the pressure condition at the open boundaries on the computational boundaries is treated by Dirichlet condition (openPresFlag = 1).

 

5. Simulation results

Below figures show the age variable field on the XY and XZ cross-sections. Velocity vectors are also superimposed on the planes.

Age variable corresponds to the local residence time of the flow. Therefore, in regions with a small age variable (blue, green colors on the color map), the air is quickly replaced by the air coming from the outside the room. Such regions are denoted by "(i) fresh air" in the figures. On the other hand, in regions with a large age variable (red color on the color map), the air stays where they are for long time and the ventilation is not so effective in such regions. Such regions are denoted by "(ii) old air" in the figures below. (*Note that in the present simulations, the outside air flowing in the room yields \(a=0\) at the red boundary)

Among the three cases considered with the same ventilation fans, the "reference case" shows poorest ventilation overall, whereas "window opened" case shows most uniform ventilation throughout the restroom.

Age variable field for the reference case.
Age variable field for the reference case.
Age variable field for the window-opened case.
Age variable field for the window-opened case.
Age variable field for the door-opened case.
Age variable field for the door-opened case.
Age variable field at different XZ planes for the window-opened case.
Age variable field at different XZ planes for the window-opened case.

 


Top