# Session 4: Contamination control of a Clean room

**URL:** <https://www.simscale.com/forum/t/session-4-contamination-control-of-a-clean-room/87612>\
**Category:** Air Conditioning and Ventilation Workshop\
**Created:** [February 5, 2020, 8:01pm UTC](https://www.simscale.com/forum/t/session-4-contamination-control-of-a-clean-room/87612 "2020-02-05T20:01:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardopg](https://www.simscale.com/forum/user_avatar/www.simscale.com/ricardopg/32/26909_2.png) [@Ricardopg](https://www.simscale.com/forum/u/Ricardopg)\
**Post date:** [February 5, 2020, 8:01pm UTC](https://www.simscale.com/forum/t/session-4-contamination-control-of-a-clean-room/87612/1 "2020-02-05T20:01:12Z")

</div>

## Air Conditioning and Ventilation Webinar

### Contamination control design of a Clean room

[Air Conditioning and Ventilation Workshop (Session 4 ) ― Contamination Control of a Cleanroom](https://www.youtube.com/watch?v=W8bDSx08-3k)

### Session - 4 Learning Assignment: Ventilation Exhaust Analysis

**Description:** The assignment will be to simulate a Ventilation Exhaust setup for a Clean Room with a gas leak from a container. The sketch below shows the setup with ‘Flow Inlets’ along the floor and central circular ‘Outlet’ on the ceiling. The ceiling has 6 open rectangular sections from which the flow exits the room and is exhausted out through the central outlet.

 ![](https://www.simscale.com/forum/uploads/default/original/3X/4/b/4b91dfe3f2cd33cd1e5acd6917fecc753ff90a60.png)

**Import the project** by clicking the link below (Ctrl+click to open in new tab).

**Project Link:** [SimScale Login](https://www.simscale.com/workbench?publiclink=779beef1-a2f2-4ab3-863a-40f9c174d179)

**Once the project is imported, the workbench is automatically opened. Then follow the steps below for setting up an incompressible simulation**.

## Step-by-step

Please select the **Clean room** geometry and click on **Create Simulation**.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/a/5/a548ad12b77d637985c2ab1e8d755405e2904cf7.png)

A window with different analysis types will appear. Choose **Incompressible** and proceed by clicking **Create Simulation**.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/2/5/250b36d8bd93df8b5ad9c1b08b185edc23cfd5a2.png)

On the left-hand side of your screen, the simulation tree will appear. Each one of the tabs marked in red needs to be filled in order to run the simulation.  
First, let’s start by changing the settings of our **Incompressible** simulation. Please change **Turbulence model** to **Laminar**. Also change **Passive species** to **1**. This passive species will be the contaminant.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/8/d/8de27988c96c909732cb21f3f971d2654c281365.png)

The passive scalar will spread through the flow region by means of convection and diffusion. In **Model** , we can assign a **Diffusion coefficient**. This coefficient is usually given for a binary of materials (e.g. air and CO). The coefficient for some binary gas mixtures can be found [here](https://www.engineeringtoolbox.com/air-diffusion-coefficient-gas-mixture-temperature-d_2010.html).  
In our case, we will assign it a value of 0.00002 {m² \over s}:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/b/f/bf55644cc1b5b0e554c8bfbf8f94e2530be35bbb.png)

### Meshing

In the simulation tree, click on **Mesh**. Change the mesh **Algorithm** to **Hex-dominant parametric (Only CFD)**:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/3/4/3422e1a3618df230ce016eedf3cdcab7c3c1ca71.png)

Now in the simulation tree, just under **Mesh** , there’s an entry for **Geometry primitives**. Please expand it by clicking in the **+** sign next to it. There will be 2 automatically created primitives: **Background Mesh Box** and **Material Point**.  
**Material Point** lets the meshing algorithm know what region you want to be meshed. Give a click on it and adjust the coordinates as shown below:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/e/8/e8dcb5d8e075aa072f9a33693c44d0beb1bca15c.png)

Surface refinements are up next. To add a refinement, click on the **+** icon next **Refinements** and select the desired type of refinement.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/0/9/09e9ab54104982a596c454dac74a745c153709ca.png)

For the first **Surface refinement** , we will assign 4 volumes (just click on the volumes in the right-hand side panel in your screen to select the volumes). By assigning a volume to a surface refinement, all faces within that volume will be refined as requested.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/c/f/cfed5cd47a92c6ccf5339304e5e84c41af626e4d.png)

We will create another **Surface refinement** for **Part 5** now:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/9/6/962d9d485809a589f3b1b59250d5f1ee5f52708f.png)

The mesh is now ready to be generated. In the simulation tree, click on **Mesh** and then on **Generate** (towards the bottom of the screen). The number of processors that will be used is automatically optimized by the algorithm.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/8/a/8ab4fa2631fbb6adac8ed6659cba5c2459775cda.png)

It takes about 14 minutes for the mesh to be generated. When it’s ready, make sure to click on **Use Mesh as Domain**.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/1/f/1fb9928c6122badded319022297718ef24c829bd.png)

### Topological Entity Sets

Topological entity sets are used to make groups of faces. They’re useful to, later on, set up boundary conditions and result controls. A new **Topological Entity Set** is assigned as follows:

1. Left click on the face or faces that will constitute a topological entity set;
2. On the right-hand side panel, next to **Topological entity set** , click on the **+** button;
3. Name your entity set as you deem suitable and click on **Create new set**.

Please create a topological entity set named **Inlet-PosX** as shown below:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/8/6/86682c61396ba5e03c3367265c7260e63754286e.jpeg)  
 ![image](https://www.simscale.com/forum/uploads/default/original/3X/1/7/179bc46366b53cabb8e76d8ea21e769a231d6637.jpeg)

Please create a topological entity set named **Inlet-NegX** as shown below:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/0/5/054b3f9fb1f68ab0ef6736a0a72ad3762eb862fc.jpeg)

Select the top circular face and create the **Outlet** topological entity set:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/0/1/0168806bc5257f6d4de04b12492c5b445c51f50e.jpeg)

Now we are going to select one of the internal faces to create the **Smoke Inlet** topological entity set. In order to visualize this internal face, we have to hide one of the external walls:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/8/e/8e79fe7468e39b6b9aadf540ee7239ef2c8b7d6d.png)

.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/6/8/68144bde38af5215873c0460d2879203d05795b8.jpeg)

.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/2/c/2c6c24edbb5ef72376f00e69a52485140fbe3be4.jpeg)

We will now proceed to making a **Walls** topological entity set. Follow the steps below:  
First, please right click in the viewer and select **Show all** to show all faces.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/9/f/9f2a58dcfd2273420def55aa46fdb958ff02c30c.png)

Then select all 4 topological entity sets that were created previously:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/6/e/6efd43975a868ccda5436e2122d77b74e272415f.png)

Now right click in the viewer again and select **Invert selection**.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/c/2/c2f07e8b85662a32a9f2f0dbc6476f987f1f18c3.png)

As a result, conviniently, all previously unselected faces will now be selected. You can proceed to creating the **Walls** topological entity set:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/0/4/0476de761b3b3dc1e96fbff7748ef8e60ad78065.png)

Proceeding to **Materials** in the simulation tree. Select **Air** from the materials library and hit **Apply** :

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/3/5/355ad45ff92b4a2643723c2bc98b8534697cd6a1.png)

Air will then be automatically assigned to the **BoundingVolume**.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/0/1/013afb920de30cdf1afec5ef70d384e365b600eb.png)

### Boundary conditions

A boundary condition is created by clicking on the **+** icon next to **Boundary conditions** and selecting the appropriate type. In order to create the **Inlet-PosX** boundary condition, select **Velocity inlet** :

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/0/a/0a0a0675227cf2d7f987b8acfe95ec6559a49805.png)

Please input a +0.1 {m \over s} velocity in the X direction and assign the **Inlet-PosX** topological entity set that was previously created.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/1/7/17fc10fb745eca3b82a3627ee0280713c217f6b9.png)

Following the same logic, now create a similar boundary condition for the **Inlet-NegX** , this time with a -0.1 {m \over s} velocity in the X direction:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/0/e/0ecd399c3f8d3e2ba8da00e67c6eb7533e086981.png)

A pressure **Outlet** condition can be created as shown:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/6/b/6b496de3095952f76300bb9c27b5d23b918c3eeb.png)

Proceeding to the **Smoke Inlet** , it will be a velocity inlet type with +0.2 {m \over s} in the Y direction. **Passive scalars** will have a value of 1 in this boundary condition:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/d/c/dc7febb1077facf8cd666b249f407bf8fcdda02c.png)

Finally, **Walls** is going to be a **No-slip** for velocity:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/9/f/9f0e718ab589a5738cc7aa75148eff237f8412de.png)

In the simulation tree, please navigate to **Numerics** and make sure the **Relaxation type** is **Automatic** :

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/a/5/a5a2c55ce0e7fbe3132bdf62f594ae5364c9c1a5.png)

To help us assess convergence, let’s set a **Result control**. It will be an **Area average** at the **Outlet** :

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/c/e/ce0dd5d642d84e0af03da991949d857c6852fce1.png)

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/f/d/fd4371a6f012a4f54248ce977932b4ca70c82902.png)

In **Simulation control** , please toggle **Potential foam initialization** on.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/4/1/410b8e6a6831c1df8907d7f26175889b4ef7a088.png)

Now we’re ready to run the simulation.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/e/2/e2d2829845e323485d5bfed50c018d3dd0b783b5.png)

### Post-processing

When the simulation finishes running, please head over to the post-processing environment by clicking on **Solution fields**.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/a/9/a9d08e1256a6cf4047c136140e771dbf49d8ea78.png)

Now, in the post-processing environment, let’s slice our geometry by using a **Cutting Plane**. Select the **X** direction to make it normal to the X axis.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/9/b/9b58a1991391581acc7a648d65d79c9ad5e60427.png)

We want to analyze the passive scalar concentration **T1**. The 0 to 1 scale range isn’t very representative of our domain. So let’s adjust it to 0 - 0.15 by clicking on the scale and changing its configurations:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/5/5/55f55fea59a8c24a2f048d61ecde0dcdb967720c.png)

Let’s take a look at the smoke inlet. Back to **Cutting Plane 1** , adjust the sliding bar next to **Point** to show the inlet. Alternatively, you can click on the three dots and input the following coordinates:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/6/4/64ad023d64260d0806178b949671bfd98fa670eb.png)

By default, only the cutting plane will be colored. We can change it by setting T1 as fringes:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/a/b/aba060fc8444f9d67fdbc556b2919067784c6577.png)

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/3/e/3ecab6c217c9fdadd4ed86eac1250b2b50dc85c7.png)

Stream lines are particularly useful to see how particles are flowing in the domain. You can assign stream lines by clicking on **Particle Traces** :

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/3/4/34d6a2596ab23aca76e19001e1a4f9c078966615.png)

Towards the top right corner of the post-processing environment, you can find options for the surface representation. Please click on the **Transparent Surface** icon as shown below:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/9/3/939fe7b57380222c2e677a1d361866f70a22d4fa.png)

To set up the particle traces, click on **SEEDS** and then on **PICK**. Now click on a surface of your interest to generate stream lines. Usually the surfaces of interest are going to be inlets or outlets. In the picture below, one of the inlets was selected.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/3/6/36d7b6dbb533a21ba1438030c5835c46936f74da.png)

It’s possible to create multiple traces and assign them for different surfaces. 3 of the inlets are being analyzed in the picture below. The map color is based on the velocity of the particles:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/0/6/06e587e61e6886063c27cd81de81a0d5c87a8c51.png)

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [March 20, 2020, 7:01pm UTC](https://www.simscale.com/forum/t/session-4-contamination-control-of-a-clean-room/87612/2 "2020-03-20T19:01:39Z")

</div>


