Convergence issues in porous media data center simulation

Hello,

I want to model the airflow of a small server room using a “convective heat transfer” simulation.

To model the server racks, I am trying to use the “Darcy-Forchheimer medium” tool. I am aware that the official simscale demo about data center modelling (https://www.youtube.com/watch?v=HJHbX2rQVik) uses a different approach. My goal is to reduce the mesh size needed.

In the following illustration you can see exactly what I have set up in each rack of the room:

The porous media coefficients used are the following:

My first question is whether this combination of conditions (like putting a heat source and a porous media on the same geometry primitive) is incompatible by principle: is it possible to make it work?

If the answer to that is “yes”, do you see how I could fix the simulation? Do the porous media coefficients I used make any sense? Please find more info about my setup and problem below:

The exact problem is that the simulation does not converge. Here are the error messages I got:

  1. Detected divergence of the linear system solver. Consider lowering the relaxation factor for field p_rgh.

I then reduced the pressure relaxation factor from 0.9 to 0.8, then 0.7 and finally 0.5.

  1. Gauge pressure field started diverging. Please check the mesh quality near the reported location and try refining the mesh. If the problem occured near a boundary, please check the boundary conditions. In case of doubt, please ask for assistance via our support chat. Gauge pressure = -2.76927e+16 at position: (2.374 m, 1.469 m, -3.498 m).

  2. Same as 2 but with different coordinates.

  3. Same as 3 but with different coordinates.

I then refined the mesh at the different positions where the divergence occured (they weren’t near any geometry boundary and they seemed to change each time).

  1. The solution diverged, please check your simulation setup. Divergence can also be caused by bad elements in the mesh. Such elements tend to exist near walls and sharp corners. Visually inspect your mesh to locate them and re-mesh with additional refinements in their vicinity. If you are confident about the mesh-quality, please reduce relaxation factors and use more conservative numerical schemes.

In my latest run, the “overall mesh quality” parameter was 0.65.

Here is my project link:

If you open the link, please look at this floor plan of the modelled room to make it clearer for you:

  • R1 to R10 are the server racks
  • C1 to C4 are the air conditioning units (velocity inlet at the front of the machine and pressure outlet at the top)

Thank you in advance for any insight you might provide.

Pol

Hello and thanks for providing all this information.

Quickly going over your questions:

  • Yes, defining a porous media and a power source to the same geometry primitive works, so that should not be the problem.
  • Can you please double check if the flow direction is indeed in the x-direction? Judging by the geometry, I’d expect it to be in the z-direction:

  • To quickly define the blocked directions, you can define a large negative number to the coefficients (e.g. -1000). The algorithm multiplies the largest positive value by 1000 and should be good to represent a blocked direction:

  • About the divergence: at a first glance it looks like a mesh problem. Currently the max non-orthogonality is around 85, which is likely causing trouble. Make sure to go through this article (especially section 2), which shows you how to spot the bad cells using the isovolumes filter.

Cheers

1 Like