# Unstructured mesh conversion

**URL:** <https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276>\
**Category:** Geometry and Materials\
**Created:** [1 April 2026 12:49 UTC](https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276 "2026-04-01T12:49:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahdi](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mahdi](https://fluka-forum.web.cern.ch/u/mahdi)\
**Post date:** [1 April 2026 12:49 UTC](https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276/1 "2026-04-01T12:49:22Z")

</div>

Dear FLUKA experts,

I am using the FLUKA\_mesh\_fix.py to convert a CAD drawing (a vacuum chamber) to an unstructured mesh, and I encounter the following error during 3D meshing:

```auto
Found two exactly self-intersecting facets (dihedral angle 0.00000E+00)
1st: [30191, 30225, 30189]
2nd: [30191, 30225, 30192]
Error: Invalid boundary mesh (overlapping facets)

```

 ![error](https://fluka-forum.web.cern.ch/uploads/default/original/2X/b/b45bda2bcdd618691e5ac707a84de85157a0f03e.png)

So it seems two coplanar triangles overlap (sharing an edge).

I have already tried:

- using the script’s healing options (`--fix` , `--adapt` )

But the error persists and I am not very familiar with 3D software, such as AutoCAD inventor to easily modify the drawing!

I have attached my ._step_ file and the error I got on the terminal.

I would be grateful for any comments to solve this issue.

[test.zip](https://fluka-forum.web.cern.ch/uploads/short-url/ftatasMeIvW3YtV7HLEuWcHgo8Q.zip) (4.1 MB)

Thanks in advance,  
Mahdi

---

<div class="post-metadata">

**Author:** ![vorodin](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/v/848f3c/32.png) [@vorodin](https://fluka-forum.web.cern.ch/u/vorodin)\
**Post date:** [1 April 2026 20:32 UTC](https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276/3 "2026-04-01T20:32:28Z")

</div>

Dear Mahdi,

Your geometry doesn’t contain any overlaps itself, which is already good, but it is quite complex and must be simplified.

For such cases, I recommend using the `.3mf` format as the most robust.  
Also, trying to mesh the large part shown below as a single piece is always troublesome for meshing tools; it should be split into smaller parts. Otherwise, the mesh size for each surface must be specified separately using more advanced tools such as Ansys/Cubit:  
Single part in your geometry:

 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/f/fc2ce809e3af9ceec5b0e625765c6e43f5e6bc3f.png)  
Example slicing from me:  
 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/8/8569f871537adbcf9fc6055236647f71757536fb.jpeg)  
Loaded in Flair after meshing:  
 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/8/8db3455046bae3ec47c94a3180649129e3600d2a.png)

Best regards,  
Volodymyr

---

<div class="post-metadata">

**Author:** ![mahdi](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mahdi](https://fluka-forum.web.cern.ch/u/mahdi)\
**Post date:** [2 April 2026 06:01 UTC](https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276/4 "2026-04-02T06:01:11Z")

</div>

Dear [Volodymyr](https://fluka-forum.web.cern.ch/u/vorodin),

Thank you for your helpful suggestion.

I converted my `.step` file to `.3mf` , and the meshing process now works and generates the mesh file.

However, I am facing another issue:

The original geometry consists of two materials:

- an aluminium vacuum chamber
- a copper photon absorber

 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/6/62b748b0b3d927510a4d57ee793be6f220e9901d.jpeg)

After meshing, the whole geometry is converted into a single mesh (region) so that I cannot define the materials individually in FLUKA:

 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/d/d38aaaf79430f47d11e2090a8d577af84fb29481.jpeg)

If I instead convert the chamber and absorber separately and import them as two UMESH geometries, I encounter **overlapping geometry (double definition) errors** in FLUKA.

What is the recommended way to preserve multiple regions (materials) when converting such geometries for use with the FLUKA meshing workflow?

Any advice would be greatly appreciated.

Thanks.  
Mahdi

---

<div class="post-metadata">

**Author:** ![vorodin](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/v/848f3c/32.png) [@vorodin](https://fluka-forum.web.cern.ch/u/vorodin)\
**Post date:** [2 April 2026 14:00 UTC](https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276/5 "2026-04-02T14:00:11Z")

</div>

Dear @mahdi,

The problem is due to the CAD software or export settings that were used for conversion to `.3mf`. The issue was mentioned before: [Regions for Umesh meshing](https://fluka-forum.web.cern.ch/t/regions-for-umesh-meshing/7386)

For example, FreeCAD exports it as a single solid and Autodesk Fusion or SolidWorks can export in multibody format.

Currently, it’s not possible to combine multiple overlapping UMESHes, unless you free the space for the second one with a Boolean operation, as was shown in an [example](https://indico.cern.ch/event/1562786/contributions/6701479/attachments/3178499/5653246/Ex_Unstructured_mesh_geometries_2025_Advanced_ALBA_Hands_on.pdf) from the Advanced course.

Alternatively, you can check my [latest version](https://fluka-forum.web.cern.ch/uploads/short-url/pFyMojmeFvdYIRo2Co0hB2Pknvx.py) (27.2 KB) of the script (requires the last MeshLib version),  
It allows for the production of meshes that can be merged via the` --comb` argument.

```python

# First model

python FLUKA_mesh_fix.py vessel.step --reg steel

# mesh_log.txt prints: Number of nodes, elements and regions(volumes): [12450,40210,3]

```

Second model, prepared to be appended after the first one

Use the next free node, element and volume IDs, i.e. add +1 to each value above

```python
python FLUKA_mesh_fix.py coolant.step --reg water --comb [12451,40211,4]

```

In this case, the first export will contain parts such as `steel_1`, `steel_2`, `steel_3`, while the second export will start from the next volume index and produce parts such as `water_4`, `water_5`, … . This is useful when you want to concatenate multiple generated `.abaq` files into one larger model.

Best regards,  
Volodymyr

---

<div class="post-metadata">

**Author:** ![mahdi](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mahdi](https://fluka-forum.web.cern.ch/u/mahdi)\
**Post date:** [5 April 2026 11:56 UTC](https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276/6 "2026-04-05T11:56:28Z")

</div>

Dear [Volodymyr](https://fluka-forum.web.cern.ch/u/vorodin),

Thank you so much for your useful comment.  
Concatinating multiple generated `.abaq` files was the thing I was looking for!

I could concatinate two parts succesfully and I could defnine defferent materials in FLUKA.

 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/f/f0e0840e645d7b2ceed890939e169a64b8884d59.png)

Just what I was not able to do was changing the slicing as you did (Shown below).  
I think I would face the `Error: Invalid boundary mesh (overlapping facets)` in my future conversion in compex geometries.

> [@vorodin](#):
>
> Example slicing from me
> 
> ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/8/8569f871537adbcf9fc6055236647f71757536fb.jpeg)

May ask the instruction and software that you used for slicing?

Thank you.  
Mahdi

---

<div class="post-metadata">

**Author:** ![vorodin](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/v/848f3c/32.png) [@vorodin](https://fluka-forum.web.cern.ch/u/vorodin)\
**Post date:** [5 April 2026 13:32 UTC](https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276/7 "2026-04-05T13:32:01Z")

</div>

Dear @mahdi ,

Glad to see that it worked for you!

I made slicing using [Autodesk Fusion](https://www.autodesk.com/products/fusion-360/overview) with an Educational license.

At the end, if you are satisfied with your current setup, it’s preferable.

[Slicing (Splitting)](https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-trim-a-body-in-Fusion-360.html) is needed only for meshing process and increases number of regions. So use it only when strictly necessary.

Cheers,  
Volodymyr

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [20 April 2026 07:16 UTC](https://fluka-forum.web.cern.ch/t/unstructured-mesh-conversion/8276/8 "2026-04-20T07:16:32Z")

</div>

Closed on 20 April 2026 07:16 UTC


