SMS:MIKE 21 *.mesh: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
Line 28: Line 28:


==Related Topics==
==Related Topics==
* [[SMS:Importing Non-Native SMS Files|Importing Non-Native SMS Files]]
* [[SMS:Importing Non-native SMS Files|Importing Non-native SMS Files]]




{{Navbox SMS}}
{{Navbox SMS}}

Revision as of 22:54, 13 February 2013

Loading a MIKE 21 *.mesh file into SMS

MIKE 21 File Format

A MIKE 21 mesh file is a text/plain file and has the *.mesh extension. It lists the node and a simplified element table in text format using spaces as separators.

A MIKE 21 mesh file uses the following format:

  • Header line – The first line. This line contains two integers expressing the type and unit of the bathymetry data. This followed by the number of nodes then by a string defining the projection.
  • Node lines – Every line after the header line for as many lines as stated in the header line. Each line contains information for one node on the form:
    • The node point Id
    • The x coordinate (Easting or Longitude)
    • The y coordinate (Northing or Latitude)
    • The z value (bathymetry)
    • The node type (0 for water, 1 for land and above 1 for all other boundaries)
  • Element header line – One line containing 3 numbers:
    • The number of elements
    • The maximum number of nodes per element
    • Internal code for mesh type (21 for purely triangular elements, 25 if quadrangular elements exists)
  • Element lines – Every line after the element header line for as many lines as stated in the element header line. Each line contains information for one element on the form:
    • The element Id
    • Id for node_1
    • Id for node_2
    • Id for node_3
    • (Id for node_4 )
Each line contains at most as many nodes as stated in the element header line. If an element has fewer nodes than the maximum number of nodes per element stated in the element header line, the remaining node Id value is 0.

For additional information, see the DHI User Guide [1].


Related Topics