# GridapGmsh on gmsh.jl object

**URL:** <https://discourse.julialang.org/t/gridapgmsh-on-gmsh-jl-object/82681>\
**Category:** General Usage\
**Tags:** fem, gridap, gmsh\
**Created:** [June 13, 2022, 1:51pm UTC](https://discourse.julialang.org/t/gridapgmsh-on-gmsh-jl-object/82681 "2022-06-13T13:51:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chupin](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@chupin](https://discourse.julialang.org/u/chupin)\
**Post date:** [June 13, 2022, 1:51pm UTC](https://discourse.julialang.org/t/gridapgmsh-on-gmsh-jl-object/82681/1 "2022-06-13T13:51:06Z")

</div>

I would like to generate a mesh from a set of points defining a contour computed by a Julia program and then to solve a PDE on the generated mesh.

I found the package Gmsh.jl to use gmsh program to build a msh file.  
Then I can read the msh file with GridapGmsh. Ok.  
Is that possible to avoid creating a temporary file and directly call `GmshDiscreteModel` on something from `gmsh.model.mesh.generate` without writing the msh file ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![chupin](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@chupin](https://discourse.julialang.org/u/chupin)\
**Post date:** [June 22, 2022, 9:29am UTC](https://discourse.julialang.org/t/gridapgmsh-on-gmsh-jl-object/82681/2 "2022-06-22T09:29:10Z")

</div>

No idea ?

---

<div class="post-metadata">

**Author:** ![mikeliux](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikeliux/32/35170_2.png) [@mikeliux](https://discourse.julialang.org/u/mikeliux)\
**Post date:** [January 25, 2025, 9:17pm UTC](https://discourse.julialang.org/t/gridapgmsh-on-gmsh-jl-object/82681/3 "2025-01-25T21:17:53Z")

</div>

I don’t know if you can avoid saving the temporary \*.msh file.

In case you find it useful, I posted a question related to Gmsh and Gridap including some code that shows how you could combine both (it should work with a mesh of order one in Gmsh).

[[Order for finite elements when using Gridap and Gmsh](https://discourse.julialang.org/t/order-for-finite-elements-when-using-gridap-and-gmsh/125094)]([https://Related](https://Related) question about Gridap and Gmsh with sample code)
