Documentation
This article provides a step-by-step tutorial for the full thermal comfort assessment inside a car using CFD simulation, including models for convective heat transfer and radiation heat transfer.
This tutorial teaches you how to:
The typical SimScale workflow will be followed:
First of all, click the button below. It will copy the tutorial project containing the geometry into your own Workbench.
Figure 1 demonstrates what should be visible after importing the tutorial project.
Please notice how the Car_Internal_Volume geometry consists only of one flow region.
The original CAD model, SimScale_Car, included the car, passengers, and a rear mirror. Therefore an Internal flow volume operation was performed in CAD mode. This created the geometry for the volume of air. The volume of air represents the negative of the car cabin and everything inside. Also, note that SimScale_Car was highly defeatured before the import. As an example, all the buttons of the center console have been removed.
CAD mode operations
If you would like to see the internal flow volume operation settings in CAD mode, make sure to select the Car_Internal_Volume geometry and press the ‘Edit in CAD mode’ button
Important
From now on, make sure you are working on the geometry with the flow volume extraction operation, Car_Internal_Volume, and not the SimScale_Car one presented for reference.
In the beginning, we want to finish the geometry preparation by setting up the last missing saved selection. Saved Selections are groups of faces, created after the geometry import by the user, to be used in assignments for boundary conditions and other concepts, during the simulation setup. They can be found at the right-hand side panel:
A number of saved selections are already provided in the project, but the saved selection for the windows is still missing. Figure 3 below shows how to add one:
In the pop-up dialog that appears, name the set ‘windows’ and click ‘Create new set‘.
Now we can start with the simulation setup. We will create a new simulation with the ’Conjugate Heat Transfer v.2’ analysis type. This analysis type supports convective and radiational heat transfer and gives us faster solver time compared to the Convective Heat Transfer.
Follow the steps presented in Figure 4 to create a new simulation:
The simulation library window appears:
Here you can select the analysis type you need.
Now, you will see the default global settings dialog box opens. Here we can select general settings for the simulation such as the turbulence model or activate certain behaviors of the simulation.
Perform the following changes:
Do not forget to click the checkmark at the top to save the changes
In order to have an overview, the following is a description of the simulation model and conditions. These will later be used to define the boundary conditions of the simulation:
Select the Model tree element to specify the gravitational acceleration.
Next, we have to define the fluid inside our car, which will be air. We will use the standard air material from the SimScale library. To define and assign a material, please click on ‘+’ next to Materials. Doing so, the SimScale material library will pop up:
As there is only one flow region, it is automatically assigned. Accept the selection with the checkmark.
Since we do not simulate any heat transfer through solid materials the Solid material element will be left empty.
Now we will use the boundary conditions presented in Figure 8 to set these up according to the faces. Here we will also use the saved selections from the beginning of the tutorial for a faster setup.
At first, the boundary condition for the right inlet is created. After that, you can create the boundary conditions for the other inlets accordingly. These boundary conditions define from where air can enter the inside of the car. The setup is chosen in a way that we could switch between different vent settings like a closed vent on the right side. But for this case, we will assume that all vents are opened.
A flow velocity inlet boundary condition is created according to Figure 11 for the right inlet:
After hitting the ‘+’ button next to Boundary conditions, a drop-down menu will pop up where different types of boundary conditions can be chosen from. Select ‘Velocity inlet’ from the list.
Now the setup for the velocity inlet boundary condition will pop up.
Please modify the following:
You can find the Inlet_Right under the predefined saved selection on the right side of the Workbench.
In order to complete the inlet definitions repeat this process for the left, center, and top inlet with the volumetric flow rates given in table 1:
Boundary | Volumetric Flow rate \([m³/s]\) |
Left | 0.00616 |
Center | 0.00616 |
Top | 0.021 |
Now your Simulation tree should look like this, with all inlets defined and saved selections assigned:
For the flow outlet boundary condition, follow the same procedure, but select ‘Pressure outlet’. Leave all values as default and assign the Outlet saved selection, as shown in the image. This will allow the air to exit the car freely through the face at the back of the car.
For the windows, we will have to define the radiative heat emitted. Therefore a wall boundary condition is used with a layer wall thermal model, convection to the exterior temperature, and an external radiation source to model sunlight.
Create a ‘Wall’ boundary condition and assign the Windows saved selection. Set up the parameters as shown in Figure 15:
For the occupants, a wall boundary condition is also used, this time with a heat flux power source to model the metabolic heat generation rate. Create a ‘Wall’ boundary condition and assign the Passenger_1 and Passenger_2 saved selection. Continue with the setup with the parameters as shown in Figure 16:
For the Chassis, a wall boundary condition is used, with adiabatic thermal behavior, since we assume that the car is perfectly insulated. Create a ‘Wall’ boundary condition and assign the Chassis set. Set up the parameters as shown in Figure 17:
Since the mesh will contain around 5. Mio Cells we have to adjust the maximum runtime of the simulation. For that, we adjust the maximum runtime and give it a value of 30000 \(s\).
Result control items are used to retrieve specific computations from the numerical solver. By using them, we can have a look at specific variables at specific regions by querying the computation and output of our quantities of interest. We will use this to determine how much the air heats up when passing through the car, by measuring the temperature at the outlet of the car.
In order to measure the average outlet temperature a result control item is used. It’s created as shown in Figure 18:
Assign the Outlet set and check that the setup coincides with Figure 19:
To analyze the thermal comfort of the passengers a thermal comfort result control is defined.
Did you now?
Standards for thermal comfort parameters are defined by ASHRAE-55 and ISO 7730 and are directly implemented into SimScale. Find out more information about the thermal comfort parameters below:
Thermal comfort parameters are also queried in the result control items, under Field calculations. Create the thermal comfort result control as shown in Figure 20 :
A description of the computed quantities and resulting fields can be found on this SimScale documentation page.
For this tutorial, we will use standard meshing. Since we have already set up all the boundary conditions and assigned all faces of the Car_Internal_Volume geometry, we can use the automatic boundary layer, and the physics-based meshing feature. With that, we just have to change the Fineness to ‘6’.
Don’t generate the mesh yet. The solver automatically performs it as we start the simulation.
Now that the simulation setup is complete, a new ‘Simulation Run’ can be created to perform the computation. In Figure 23, the whole tree setup is shown, and the item to create the simulation run is highlighted:
In the pop-up window, press ‘Start’ to immediately begin the simulation run. If the software predicts a higher duration of simulation and exceeds maximum runtime you can choose to ignore it or go back to simulation control settings and increase the maximum runtime value.
The computation takes around five hours to complete. If you can’t wait to see the results, at the end of the article there is a link to the completed version of the project.
We will use the integrated post-processor to visualize the temperature and flow inside the Car Cabin and evaluate the thermal comfort by visualizing the Percentage Mean Vote (PMV).
Before starting to post-process the results, make sure that there are no predefined filters. You can delete existing filters at any time by clicking on the dustbin icon next to them. Furthermore, please ensure that you are at the last timestep of your simulation by sliding the Iterations selector all the way to the right. Lastly, hide the Flow region in the MESH dialog by clicking on the ‘eye’ icon.
There are several methods to analyze the temperature within the car cabin, we will use both analytic and optical approaches.
Before visualizing the temperature and analyzing it optically we can have a look at the average outlet temperature. For this, we go to the Area averages section > Area average 1, which is our outlet. Now we can select the temperature \([T]\) and see what the exit air temperature is.
We see that the temperature has flattened out at 299 \(K\) ( ~27 \(°C\)). This means that the temperature has increased from the inlet to the outlet by 8 \(K\) in comparison to the inlet temperature, which we set to 19 \(°C\)
Next, we will visualize the temperature on the surfaces of the car. For that select ‘Temperature’ as the coloring for the parts. Change the units of temperature to Celsius by clicking the units in the legend and selecting ‘\(°C\)’ and changing the maximum temperature visualized to ’40’ \(°C\) and minimum to ’19’ \(°C\).
To have better look inside the car hide the roof and windows by selecting the faces and right-clicking on your mouse to select ‘Hide selection’.
The temperature distribution inside the car can be seen in Figure 25:
We can see how the windows are heated up by the radiation of the sun and the ambient temperature and how the passengers emit heat. Notice how the front windows are cooled by the cold airflow through the vent at the right, directing the hot air from the surface of the window to the back of the car.
Next, we will have a look at the predicted mean vote for the passengers. For this, we will use the existing cutting plane. Change the y coordinate of the plane to ‘0.95’ \(m\) and the normal orientation to ‘Y’, so that we can analyze the thermal comfort at chest height.
To display the predicted mean vote change the coloring of the plane to ‘Predicted Mean Vote’. For a better visibility, we change the opacity of the plane to ‘0.7 ‘ and the Parts Color Coloring to a solid white color.
To clearly see the range of interests change the minimum scalar to ‘-2’ and the maximum to ‘2’. With that, we can clearly see the range in which the thermal comfort parameters are within the limits. The results are as follows:
We see that in general, the predicted mean vote values are within the limits for this height. You can adjust the Y value for the position of the plane to see different areas like ‘1.1’ \(m\) for the head of the passengers.
At last, we want to visualize the flow through the car cabin. For that, we will use Particle traces since this gives us a three-dimensional visualization of the flow through the car. Create a new particle trace by clicking on the ‘Particle trace’ icon.
Hide the cutting plane by using the toggle switch and then set the values according to the image below. For the position pick the center of the right inlet face. With that, we can follow the flow from the inlet to the outlet. If you are interested in other sections of the car you can always set the point to a different position.
Repeat the steps for the left inlet and one of the center inlets. You now have three-particle trace sets set up and the result should look like this.
We recognize that with the current setup most of the air from the ducts just passes the passengers. This cools down the air within the car without having the passengers sit in the flow stream directly.
To create an animation of the particle traces change the particle representation to ‘Comets‘ and create a new animation filter by selecting the animation Icon. We select ‘Comets‘ for this step to not fill the car with the lines of the particle traces and be able to better follow a single particle through the car.
In the animation control panel, change the Animation type to ‘Particle Trace ‘ and start/stop the animation with the ‘play/pause button.
The results of the animation should look like this and we can follow a set of particles on its way through the car and for example analyze the turbulent flow behind the driver’s seat.
Analyze and explore your results with the SimScale post-processor. Have a look at our post-processing guide to learn how to use the post-processor.
Congratulations! You finished the tutorial!
Last updated: October 22nd, 2024
We appreciate and value your feedback.
Sign up for SimScale
and start simulating now