gridap / GridapGmsh.jl

Gmsh generated meshes for Gridap
MIT License
43 stars 19 forks source link

load geo file #80

Open rveltz opened 3 months ago

rveltz commented 3 months ago

Hi,

Is it possible to load a geometry file and refine it?

I noticed that your test folder contains .geo and .msh files but I assume that you do not need .geo in GridapGmsh. However, it would be convenient to just have the lightweight geo file loaded and let GridapGmsh mesh it into a big .msh file.

JordiManyer commented 1 month ago

Hi @rveltz. I don't think we have this on the pipeline for now, and I don't think we will until someone needs it for their own research. We are always happy to accept contributions.

On another note: This seems like a Gmsh API-related feature, so isn't this something that should be in a fully Gmsh-related package? If it's just .geo / .msh manipulation, I fail so see how this is in any way dependent on Gridap.jl.

Maybe you should have a look at how to do this with gmsh_jll through their API, in the same way we now create .geo files in GridapGmsh. See this test.

Another possibility that is now available is to create a basic mesh with gmsh, then load it into Gridap and refine it using our (relatively) new Adaptivity module. The capabilities are still somewhat limited, but it might suit your needs.