# OpenFoam blockMesh output as Trixi input

**URL:** <https://discourse.julialang.org/t/openfoam-blockmesh-output-as-trixi-input/116875>\
**Category:** Specific Domains\
**Tags:** question\
**Created:** [July 10, 2024, 3:34pm UTC](https://discourse.julialang.org/t/openfoam-blockmesh-output-as-trixi-input/116875 "2024-07-10T15:34:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Domenico\_Lahaye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/domenico_lahaye/32/203728_2.png) [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Post date:** [July 10, 2024, 3:34pm UTC](https://discourse.julialang.org/t/openfoam-blockmesh-output-as-trixi-input/116875/1 "2024-07-10T15:34:47Z")

</div>

What is require for Trixi to read the meshes that blockMesh in OpenFoam generates?

Congrats for a wonderful talk at JuliaCon!

---

<div class="post-metadata">

**Author:** ![DanDoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dandoe/32/52717_2.png) [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Post date:** [July 12, 2024, 9:48am UTC](https://discourse.julialang.org/t/openfoam-blockmesh-output-as-trixi-input/116875/2 "2024-07-12T09:48:40Z")

</div>

Thank you for your feedback on the talk!

I think the easiest way would be finding an existing tool that offers conversion of this `blockMesh` format to e.g. `.msh` or `.inp` format.

---

<div class="post-metadata">

**Author:** ![Domenico\_Lahaye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/domenico_lahaye/32/203728_2.png) [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Post date:** [July 12, 2024, 10:04am UTC](https://discourse.julialang.org/t/openfoam-blockmesh-output-as-trixi-input/116875/3 "2024-07-12T10:04:37Z")

</div>

Hmm. I rather go from OpenFoam ldu-mesh format directly to whatever Trixi requires. This might not be the easiest, but possibly the most productive on longer term. I have worked on mesh conversion from OpenFoam in the past. Talk more off-line?

---

<div class="post-metadata">

**Author:** ![DanDoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dandoe/32/52717_2.png) [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Post date:** [July 12, 2024, 10:19am UTC](https://discourse.julialang.org/t/openfoam-blockmesh-output-as-trixi-input/116875/4 "2024-07-12T10:19:06Z")

</div>

So Trixi.jl requires the mesh in `.inp` format with boundary information supplied as [`Nodesets`](https://trixi-framework.github.io/Trixi.jl/stable/meshes/p4est_mesh/#Standard-Abaqus-format-boundary-information).

We provide one [tutorial](https://trixi-framework.github.io/Trixi.jl/stable/tutorials/p4est_from_gmsh/) which goes the full way of explaining how a user can use `Gmsh` to create a Trixi.jl - conforming mesh.

Furthermore, we present also some [more information](https://trixi-framework.github.io/Trixi.jl/stable/meshes/p4est_mesh/#Construction-of-a-P4estMesh-from-an-Abaqus-file) on how to use an existing mesh and tweak it such that Trixi.jl can digest the boundary conditions.
