English
Log in
Log in Simulate Now
English
Log in Simulate Now

What you need to know to get started with Thermo-Fluid Simulation

By Cyprien Rusu 22 December 2022

If you have ever wondered why the temperature of your shower is so cold at the beginning and takes 1 min to get to body temperature, you know already what a Thermo-fluid problem is!

Said simple, thermo-fluid simulation is the simulation of the changes of temperature with a fluid.

It’s a coupling of 2 types of Physics: Fluid Simulation and Thermal Simulation

Fluid physics (also called CFD like Computational Fluid Dynamics) simulates the velocity and pressure of a chosen fluid and thermal physics simulates the heating and cooling of the fluid and its changes of temperature.

When do you use Thermo-Fluid Simulation?

Imagine a system in which uses a fluid as a medium to transport heat and you want to understand exactly how the heat is getting spread into the system.

A good example of that is a heat exchanger.

A heat exchanger is a system used to transfer heat between a source and a working fluid. Heat exchangers are used in both cooling and heating processes. They are widely used in space heating, refrigeration, air conditioning, power stations, chemical plants, petrochemical plants, petroleum refineries, natural-gas processing, and sewage treatment.

This is exactly the type of system that can be modelled with thermo-fluid simulation, but this is only one example of what can be solved using Thermo-Fluid Simulation.

Some examples of Thermo-Fluid Simulation

There are MANY systems which would justify the usage of thermo-fluid simulation.

In Electronic Cooling for example, engineers are trying to understand how fast a board with electronic components can be cooled down using fans and adding heat sinks for example.

In a Heating, Ventilation, and Air Conditioning (HVAC) simulation, engineers want to see the flow of air within a building or a room and understand where the the room is heated up the most and how to cool it down more efficiently.

Thermo-Fluid VS Thermo-Structural simulation

When you are interested into understanding the movement of heat, you might want to know either the temperature inside a mechanical system and its impact on the system (because temperature causes thermal stress and deforms the system), this is called Thermo-Structural simulation.

In this case, temperature around the system is generally steady and constant and the real point of interest is the mechanical system itself and the impact of temperature on it.

You might also want to know how temperature around a system behaves and how the temperature is provided to the system. That’s when you use Thermo-Fluid simulation.

There is a 3rd type of simulation called Conjugate Heat Transfer (CHT) which is needed when you want to simulate thermo-fluid, but you also want to see the distribution of temperature within the structural system. This is a capability that will soon be available in OnScale Solve as well.

Transient and Steady State Simulation

All type of simulations (not only thermo-fluid) can be either transient or steady-state.

In simple words, transient means time-dependent and steady-state is the state of the system at equilibrium (after a very long time has passed).

You, as an engineer, might be interested in either the transient phase of a simulation to understand how the temperature exactly spreads into the system and at which speed or you might be interested mostly about how the temperature will be if you leave the system as-is for a very long time.

Of course, you have also some systems which are only transient because the temperature or the heat applied to it is always changing and depending on time.

OnScale Solve uses a transient CFD simulation solver based on the LBM (Lattice Boltzmann) Method which makes the simulation of both transient and steady state possible. It’s up to you to understand how long you want to simulate your thermo-fluid system and go forward with the simulation!

Let’s simulate Electronic cooling

To demonstrate all the principles that I have talked about in this article, we will simulate together an electronic cooling problem.

The full tutorial is available here, so we will make it a bit simpler in this blog post.

First you need to have the CAD model that represents the fluid around your system. This can easily be obtained with a CAD software and a few Boolean operations (Create a fluid parallelepiped, place your system within it and remove that volume from the initial fluid parallelepiped.)

Once you have done that, import it into OnScale Solve and choose your fluid material. Make sure your fluid material coefficients are correctly setup as this is crucial to get a correct distribution of heat! Double check also the units, this is an important step.

Coefficient

Explanation

Mass Density (kg/m3)

Density is the mass per unit volume of the fluid

Specific Heat (J/(kg*K)

Specific Heat is a physical property of matter, defined as the amount of heat to be supplied to an object to produce a unit change in its temperature divided by its mass

Thermal Conductivity (W/(m*K))

The thermal conductivity of a material is a measure of its ability to conduct heat

Thermal Expansion (1/K)

Thermal expansion is the tendency of matter to change its shape, area, volume, and density in response to a change in temperature (Used only for thermal-stress simulation)

Dynamic Viscosity (Pa*S)

The viscosity of a fluid is a measure of its resistance to deformation at a given rate. For liquids, it corresponds to the informal concept of “thickness”: for example, syrup has a higher viscosity than water.

Next step is to set-up the boundary conditions. In other words, how velocity, pressure, temperature and heat flux are applied to your model in real life.

After the boundary conditions, you have a few parameters that are extremely important for the success of your simulation which are “hidden“ in the Fluid and Thermal Environments… make sure you review and change those appropriately!

  • The duration represents the total simulation time. If you want to reach the steady state, you need to calculate long enough to get to it. To get an idea of this parameter, think about the distance the fluid takes to reach the end of the system (You can get an approximation using the formula time = distance/velocity)

  • The characteristic length is a length that you choose and that represents a certain recognizable length of your model such as the diameter if the model is a pipe for example. It is a parameter that is used to calculate the mesh size of the model, thus it should be chosen with care. By default 30 elements are taken across that length.

  • The contraction area ratio is a parameter that is defined as 1 by default and has to be increased when the velocity increases over the inlet velocity value (Such as in a geometric area with a contraction of the geometry). For example, if the velocity doubles at some point of the model, the contraction area ratio should be chosen as 2. In practice, this contraction area ratio parameters plays on the size of the time step used to calculate the solution and thus increasing it will increase the accuracy and stability of the solution, but this will also increase the time the calculation takes.

  • The maximum velocity is a parameter used when no inlet velocity is supplied to the model (In the case of a pure pressure flow or a flow caused by natural heat convection for example). The solver then uses this parameter to calculate the size of the time step increment to be used for calculation. It is thus an important parameter to consider.

Once all of this is setup, have a quick look at the mesh size to be sure it is coarse enough for a quick first simulation, but small enough to still represent well enough small details in your system. I always recommend to choose a coarse mesh first to obtain the results quickly and evaluate roughly the accuracy of those. After that, you can refine the mesh to get better and more accurate results (Click on Advanced Mesh Settings to display Mesh Size)

Now, launch your simulation on the cloud, accelerate it if needed and wait to get the results.

Review your results and iterate your simulation design until you get something which is reasonable and provides to you the insights you need.

Improve your design and get to the next level with OnScale Solve!

Cyprien Rusu
Cyprien Rusu

Cyprien Rusu is our Director of Engineering for Asia at OnScale. He has a extensive background in FEM, Technical Marketing, Sales and Support. Cyprien recieved his MS in Civil Engineering from Tsinghua University. At OnScale he is a trusted advisor for our client base in Asia, while creating and providing OnScale training.

Discover how customers like you found success by
leaving traditional engineering simulation behind

Try OnScale following
our simulation guides

Simulate Now

Discuss your engineering
applications with us

Request a Demo