This tool is to reorder nodes of a given mesh. Mostly it is applied to reorder the nodes of a mesh from an older OGS version to have a mesh compatible with the current OGS version. There are four different methods available, which define the reordering process:

  • Method 0: Reversing order of nodes for all elements.
  • Method 1: Reversing order of nodes unless it’s perceived correct by OGS-6 standards. This is the default selection.
  • Method 2: Fixing node ordering issues between VTK and OGS-6 (only applies to prism-elements).
  • Method 3: Re-ordering of mesh node vector such that all base nodes are sorted before all nonlinear.nodes.


   NodeReordering  -i <filename> -o <filename> [-m <0|1|2|3>] [--]
                       [--version] [-h]

   -i <filename>,  --input_mesh <filename>
     (required)  the name of the input mesh file

   -o <filename>,  --output_mesh <filename>
     (required)  the name of the output mesh file

   -m <0|1|2|3>,  --method <0|1|2|3>
     reordering method selection

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.


The following command is used to reorder a mesh according to the second method.

NodeReordering -i input.vtu -o output.vtu -m 2

This article was written by Julian Heinze. If you are missing something or you find an error please let us know.
Generated with Hugo 0.117.0 in CI job 362666 | Last revision: July 12, 2023
Commit: [PL/SSD] Rename x_dot to x_prev 04a8fec8  | Edit this page on