# Floating Point error in meshing

**URL:** <https://www.simscale.com/forum/t/floating-point-error-in-meshing/92650>\
**Category:** Project Support\
**Created:** [May 4, 2021, 11:33am UTC](https://www.simscale.com/forum/t/floating-point-error-in-meshing/92650 "2021-05-04T11:33:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheDound26](https://www.simscale.com/forum/letter_avatar/thedound26/32/6_22734026db12803ebb3e059622ac3534.png) [@TheDound26](https://www.simscale.com/forum/u/TheDound26)\
**Post date:** [May 4, 2021, 11:33am UTC](https://www.simscale.com/forum/t/floating-point-error-in-meshing/92650/1 "2021-05-04T11:33:16Z")

</div>

Hello,

I am trying to simulate our front wing but I am getting an error message while meshing as:

“The meshing algorithm failed with a floating-point exception”

I have read posts regarding this but mostly all of them refer to this error faced during simulation whilst I am facing this error in meshing. My initial conditions are fine with pressure being 0 and k and w being non-zero quantities.

Hope you guys can help with this.

Link to my project: [https://www.simscale.com/workbench/?pid=8645360142475812145&mi=spec%3A2877e037-f2ca-45e6-ab8f-4a3c35fa0987%2Cservice%3AMESHING%2Cstrategy%3A42&sh=39](https://www.simscale.com/workbench/?pid=8645360142475812145&mi=spec%3A2877e037-f2ca-45e6-ab8f-4a3c35fa0987%2Cservice%3AMESHING%2Cstrategy%3A42&sh=39)

Cheers!!

---

<div class="post-metadata">

**Author:** ![tsite](https://www.simscale.com/forum/user_avatar/www.simscale.com/tsite/32/47909_2.png) [@tsite](https://www.simscale.com/forum/u/tsite)\
**Post date:** [May 4, 2021, 12:59pm UTC](https://www.simscale.com/forum/t/floating-point-error-in-meshing/92650/2 "2021-05-04T12:59:23Z")

</div>

Hi there, have you checked the following page regarding this issue?

> [@Most Popular Errors of Simulation](https://www.simscale.com/forum/t/most-popular-errors-of-simulation/92/3):
>
> Hi @Igarizza this is a very interesting question and I have been affected by this many times myself. I decided to write down some of my personal experience with floating point exceptions in CFD, hoping that it will be helpful to others as well. “Floating point exception” means that the solver detects an arithmetic operation which it cannot compute, for example, division by zero, or if the numbers exceed the bounds for the numerical data types used in the code. Mathematically speaking, we are d…

Best regards,  
Fillia

---

<div class="post-metadata">

**Author:** ![TheDound26](https://www.simscale.com/forum/letter_avatar/thedound26/32/6_22734026db12803ebb3e059622ac3534.png) [@TheDound26](https://www.simscale.com/forum/u/TheDound26)\
**Post date:** [May 4, 2021, 1:08pm UTC](https://www.simscale.com/forum/t/floating-point-error-in-meshing/92650/3 "2021-05-04T13:08:59Z")

</div>

Hi @tsite ,

As mentioned earlier, I have read this post and double-checked my initial conditions also. The post suggests changes that I guess would affect the simulation and not meshing. I am getting the problem in meshing.

Hope you can help with this…

Cheers!!

---

<div class="post-metadata">

**Author:** ![RicardoParis](https://www.simscale.com/forum/user_avatar/www.simscale.com/ricardoparis/32/30222_2.png) [@RicardoParis](https://www.simscale.com/forum/u/RicardoParis)\
**Post date:** [May 4, 2021, 2:27pm UTC](https://www.simscale.com/forum/t/floating-point-error-in-meshing/92650/4 "2021-05-04T14:27:23Z")

</div>

Hi,

If you have a look at the meshing log of the operation, you will notice a huge number of cells in error.

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

It is definitely not normal for a mesh to have this huge quantity of poor cells, which indicates issues somewhere else in the setup. One common issue that I see is when the bounding box resolution is poorly set.

In short, the issue here is with these values, that seem to have been copied from a different mesh (which had a different orientation).

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

Make sure to use a bounding box resolution that will yield [cubic cells](https://www.simscale.com/docs/simulation-setup/meshing/hex-dominant/main-settings-for-hex-dominant-parametric/#main-properties) (or close to cubic cells, at least 🙂 )

---

<div class="post-metadata">

**Author:** ![TheDound26](https://www.simscale.com/forum/letter_avatar/thedound26/32/6_22734026db12803ebb3e059622ac3534.png) [@TheDound26](https://www.simscale.com/forum/u/TheDound26)\
**Post date:** [May 4, 2021, 3:17pm UTC](https://www.simscale.com/forum/t/floating-point-error-in-meshing/92650/5 "2021-05-04T15:17:01Z")

</div>

Hello @RicardoParis ,

Thanks for showing this mistake. It was obviously an error from my side. I have corrected the settings and started the meshing again. Will let you know if this happens again,

Thanks again!
