SimScale CAE Forum

Workshop 2 Session 1 Homework: Optimization of a wing - Part I Meshing

Hello @Dieginho and any other participants who have the mesh issue,

I just got some information from our Product Engineer. It seems to be a bug between OpenFOAM and one of the 3rd party libraries, which happens during parallel computing. The issue is still not solved since the reason is non-deterministic at the moment. But we have a workaround for now - if it is necessary to run the mesh at 32 cores please tweak the settings a little bit (say change the bounding box dimension by a very small value or the number of cells along any direction by a very small number, say 1) and re-run the case.

A better solution would be to run it in reduced cores, say 16. This should help for the time being. Meanwhile we are working on it to eliminate this problem completely.


The problem is in the Topological Entity Sets, that is empty so I can’t select faces sets in the mesh refinement. I do not really know how to do it. I already completed the simulation in the case of the normal wing. I need to solve it in order to submit the homework before Thursday midday.

Hi @Dieginho,

It looks like you did a split operation on the geometry - which will delete all the pre-set topological entity sets (when you are doing mesh refinements, you use topological entity sets associated with the geometry)

I just did split for the winglet wing, the normal wing already had split. That’s why I did it.

@Dieginho, I see. You can re-add these sets manually

To do this:

  1. select the correct faces (components) for the set
  2. click on create set in the top menu bar
  3. add a name for the set and click create

Here is the list for each set

  • edges-wing (Component3, Component9)
  • edges-winglet (Component10)
  • Wing (Component1, Component2, Component4, Component5, Component6, Component7, Component8, Component12, Component14, Component25)
  • Winglet (Component11, Component13, Component15, Component16, Component19, Component20, Component21, Component22, Component23, Component27)
  • winglet-tip (Component24)
1 Like

Hi guys,

I got this issue in the second mesh:

Should I start again or redo this mesh? Just in case, please, find attached my project link:

Thanks for your time.

Hey @Alexor,

It’s the same issue as above. Please tweak the settings or use lesser cores to get a successful mesh.


Hello Everyone,

Important: Regarding Meshing Error

To avoid Meshing errors due to a Bug in OpenFOAM Library, Please use ‘16 compute cores’ for the meshing operation.

The above tutorial has also been updated in this regard.

Best, Ali.

Still having the problem. I used (what I assume was) the updated tutorial, so I tried the 16-core option first. I got the error 3 times in a row, so I tried some other methods (change to 32 cores, even tried 8 cores, change cell count from 30 to 31, bound size, etc) and I am still having problems, so can’t do the second wing run. I double-checked all the settings/values, couldn’t find anything wrong there…maybe send this to the engineers?

Problem only occurred with the winglet mesh. Chrome 53, Windows 7 64-bit.

Could it be a problem where the mesh for the winglet and the main wing meet perhaps? Could be that the join, while technically seamless between the 2 objects, might cause the problem where a random cell vert lands on the seam, especially with the high tesselation.

Hi @brendan_a_b,

This is not an issue with the model or SimScale platform. We run CFD simulations based on OpenFOAM code, and as mentioned above this is a bug between OpenFOAM and one of its 3rd party libraries.

Please make your submission with only the first simulation results as of now. We would be taking it into consideration as well - we value your efforts in doing this!