[Dune] Parallel grid partitioning

Eike Mueller E.Mueller at bath.ac.uk
Wed Nov 16 19:34:40 CET 2011


Hi Joe,

thanks a lot, this works exactly as you suggested (including [1]). I 
managed to convert a python-generated .msh file, .msh -> .alu -> .vtk 
(of course, 
dune-grid/src/dune-grid/src/alu-to-vtk/alusimplex-3d-volume.cc needs to 
be modified in exactly the same way). So far I have only done this on 
one node, though.

As a slightly related question, does ALUgrid allow non-zero overlap at 
all or can I only use the non-overlapping parallel solvers with it?

Thanks,

Eike


Jö Fahlke wrote:
> Am Wed, 16. Nov 2011, 14:15:48 +0000 schrieb Eike Mueller:
>> I finally got back to looking at this again. I now built dune-grid
>> from the trunk, which contains the gmsh-to-alu utility you mention,
>> when I configure with the --enable-extra-utils option it creates an
>> executable called dune-gmsh-to-alusimplex-3d, am I right in assuming
>> that this will only work for 3d tetrahedral grids (mine is a 3d
>> hexahedral grid)? Or can I configure it to create a corresponding
>> executable for other grids?
> 
> Have a look at the file dune-grid/src/gmsh-to-alu/alusimplex-3d.cc.  It
> containes the two lines
> 
>   const std::string programName = "dune-gmsh-to-alusimplex-3d";
>   typedef Dune::ALUSimplexGrid<3, 3> Grid;
> 
> All you have to do is to replace simplex by cube there[1].  I haven't tried
> it, of course, so it may not work.  But if it does, please let us know, then
> we can enable it by default.
> 
>> Also, is the alu grid format documented anywhere and how difficult
>> would it be to generate the partitioned grid by hand and write it to
>> the corresponding .alu grid files for each node? As eventually we
>> will need to work with really big grid (10^10 vertices), creating
>> the entire grid on a shared memory machine might not be an option.
> 
> I don't think there is documentation, but I may be wrong.  Martin?  Robert?
> 
> In any case, a tool to directly convert .msh to a set of .alu files would be
> much apreciated.
> 
> Bye,
> Jö.
> 
> [1] Of course, you can copy the file to alucube-3d.cc first and register the
>     new file in the Makefile.am, if you want to be thourough and avoid
>     confusion.
> 





More information about the Dune mailing list