Dear Gergely, if the mesh fits into memory, you don’t need to do anything special for parallel runs since the default grid manager will call grid.loadBalance() which distributes the grid. The grid data helper also automatically distributes user data like element markers, in case you are using that feature. The gmsh grid is read on process 0 and is then distributed to the other processors using ALUGrid's default partition strategy. The default partition is usually very good for ALU. There might be also different strategies you can select. There is also the possibility to manually partition the grid using an external partitioner (more involved).
If the mesh doesn’t fit into memory, and therefore you can’t read it on process 0, there is currently no out-of-the-box helper in Dumux. You would have to use ALUGrid’s internal mesh format which allows grid to be split into separate pieces. How to convert from a distributed gmsh grid to the ALU format you would have to ask the AluGrid developers. Best wishes Timo > On 12. Jan 2022, at 15:51, Gergely Schmidt > <[email protected]> wrote: > > Dear Dumux community, > > I'd like to ask a question about mesh decomposition. I have a gmsh mesh > (.msh) for a simple conduction model that runs without problems serially > using ALUGrid. Is it possible to decompose that mesh for parallel runs or is > there a workaround with a file conversion maybe or using YASP, UG etc.? I'd > like to avoid switching to DGF though if possible. > > Many thanks! > > Best, > Gergely > > -- > *********************************************************** > Gergely Schmidt M.Sc. > Wissenschaftl. Mitarbeiter > Institut für Strömungsmechanik und Umweltphysik im Bauwesen > Leibniz Universität Hannover > Appelstr. 9 a > 30167 Hannover > tel +49 (0) 511 / 762 3709 > *********************************************************** > > _______________________________________________ > DuMux mailing list > [email protected] > https://listserv.uni-stuttgart.de/mailman/listinfo/dumux _______________________________________________ DuMux mailing list [email protected] https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
