SMS:MIKE 21 *.mesh: Difference between revisions
From XMS Wiki
Jump to navigationJump to search
Line 10: | Line 10: | ||
A MIKE 21 mesh file uses the following format: | 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. | *'''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 | *'''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 in the format as follows: | ||
** The node point Id | ** The node point Id | ||
** The x coordinate (Easting or Longitude) | ** The x coordinate (Easting or Longitude) | ||
Line 20: | Line 20: | ||
** The maximum number of nodes per element | ** The maximum number of nodes per element | ||
** Internal code for mesh type (21 for purely triangular elements, 25 if quadrangular elements exists) | ** 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 | *'''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 in the format as follows: | ||
** The element Id | ** The element Id | ||
** Id for node_1 | ** Id for node_1 |
Revision as of 15:44, 18 February 2013
Loading a MIKE 21 *.mesh file into SMS
To load the file:
- File | Open... or File | Open As...
- In the Open file dialog change the Files of type to "Mike 21 files (*.mesh)"
- Select the file and press Open
MIKE 21 File Format
A MIKE 21 mesh file is a text/plain file and has the *.mesh extension. The text file defines a simple unstructured grid and is similar to a *.2dm file. 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 in the format as follows:
- 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 in the format as follows:
- 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 then the remaining node Id value is 0.
For additional information, see the DHI User Guide [1].
Related Topics
SMS – Surface-water Modeling System | ||
---|---|---|
Modules: | 1D Grid • Cartesian Grid • Curvilinear Grid • GIS • Map • Mesh • Particle • Quadtree • Raster • Scatter • UGrid | |
General Models: | 3D Structure • FVCOM • Generic • PTM | |
Coastal Models: | ADCIRC • BOUSS-2D • CGWAVE • CMS-Flow • CMS-Wave • GenCade • STWAVE • WAM | |
Riverine/Estuarine Models: | AdH • HEC-RAS • HYDRO AS-2D • RMA2 • RMA4 • SRH-2D • TUFLOW • TUFLOW FV | |
Aquaveo • SMS Tutorials • SMS Workflows |