Arcane offers two tools for converting or partitioning a mesh.
The arcane_partition_mesh tool allows you to partition an existing mesh and generate a mesh file per partition. It is a parallel tool that uses ParMetis by default to perform the partitioning. This tool is installed in the bin directory of the Arcane installation.
Usage is as follows:
Possible values for writer_service_name are services that implement IMeshWriter. For example:
The input mesh file (mesh_file_name) can be in MSH format (extension .msh), VTK history format (extension .vtk), or a format supported by Lima (extension .mli2, .mli, .unf). When the input mesh is in MSH format, it is not possible to know beforehand if the mesh is non-manifold. By default, Arcane assumes it is a manifold mesh. If this is not the case, you must specify the --manifold- option in the command line.
The partitioner will run on nb_proc processes (via MPI) and will generate nb_part partitions. The number of partitions must be a multiple of the number of processes used. In the output, there will be one file per partition. The output files will be in the form CPU00000, CPU00001, ... with the extension corresponding to the mesh format (for example, .msh for the MSH format).
The -Wp option allows you to provide arguments for the parallel launcher (mpiexec or srun in general). For example, the value -Wp,-c,4 allows adding -c 4 to the parallel launcher.
If the input and output format is MSH, each file will contain the same $Entities as the original format, as well as the periodicity information ($Periodics) for the partition concerned. The following limitations currently exist:
TODO
The following example uses 2 processors to cut the onesphere.msh mesh into 4 partitions. The output file will be in VTK format.
The following example uses 4 processors to cut the mesh_with_loose_items.msh mesh into 12 partitions. The output file will be in MSH format. Since the input mesh is non-manifold, the --manifold- option is used to specify this.
The arcane_convert_mesh tool allows you to convert a mesh file from one format to another.