Back to index

salome-med  6.5.0
MEDMEM tools


On top of the MEDMEM library, MEDMEM comes with a few executables that are based on the MEDMEM library and that help the user to perform common operations on MED files :


The purpose of MEDSPLITTER is to split MED files into a series of other MED files forming a partition of the original MED files. It can either work with serial meshes (1 to n) or distributed meshes (p to n). For serial meshes, it accepts MED files from the 2.1 version onwards. For distributed MED files, it accepts MED files from the 2.3 version onwards.

There exists a parallel version of MEDSPLITTER, which accepts distributed MED files only. In contrast to the ordinary MEDSPLITTER the parallel one distributes several usual MED files composing the whole model among available processors. After the partitioning, each processor writes only it's own part of the distributed MED file. The parallel MEDSPLITTER processes meshes only, not fields.

It can be used either as an executable, medsplitter (or medsplitter_para) or as a library. The partitioning is made thanks to one of the following library :

The arguments to the medsplitter tool can be retrieved by calling :

medsplitter --help


For Salome V4.1.0, one gets the following arguments (some of them are unavailable in parallel version):

Available options:
        --help                 : produces this help message
        --mesh-only            : do not create the fields contained in the original file(s)
        --distributed          : specifies that the input file is distributed
        --input-file=<string>  : name of the input MED file
        --output-file=<string> : name of the resulting file
        --meshname=<string>    : name of the input mesh (not used with --distributed option)
        --ndomains=<number>    : number of subdomains in the output file, default is 1
        --plain-master         : creates a plain masterfile instead of an XML file
        --creates-boundary-faces: creates the necessary faces so that faces joints are created in the output files
        --family-splitting     : preserves the family names instead of focusing on the groups


The purpose of RENUMBER is to renumber the cell of a mesh in order to make numerical computation easier. This tool works with meshes which contain only one cell type and can renumber it according to two different methods:

It can be used in this way :

renumber MEDFile_in MeshName Method[BOOST/METIS] MEDFile_out

sauv2med tool

The sauv2med tool enable conversion from a Cast3m sauv file into a MED file. It is a python script that encapsulates the read/write drivers provided by the MEDMEM library.


sauv2med myfile.sauv

generates a med file named

med2sauv tool

med2sauv operator is the operator that is inverse of sauv2med. Its behaviour is symmetrical.



generates a sauv file named