Click or drag to resize

MeshFile Class

Class for handling mesh files (reading, writing, editing)
Inheritance Hierarchy
SystemObject
  DHI.Generic.MikeZero.DFS.meshMeshFile

Namespace:  DHI.Generic.MikeZero.DFS.mesh
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class MeshFile

The MeshFile type exposes the following members.

Constructors
  NameDescription
Public methodMeshFile
Initializes a new instance of the MeshFile class
Top
Properties
  NameDescription
Public propertyCode
Node boundary code.

You can modify each value individually directly in the list, or provide a new array of values, which must have the same length as the original one.

Public propertyElementIds
Element Id's

You can modify each value individually directly in the list, or provide a new array of values, which must have the same length as the original one.

Be aware that changing this to anything but the default values (1,2,3,...) can make some tools stop working.

Public propertyElementTable
The ElementTable defines for each element which nodes that defines the element.

The numbers in the ElementTable are node numbers, not indices! Each value in the table must be between 1 and number-of-nodes.

You can modify each value individually directly in the list, or provide a new array of values, which must have the same length as the original one.

Public propertyElementType
Array of element types. See documentation for each type.
Public propertyEumQuantity
Quantity of the data stored in the mesh file. This is the quantity of the Z variable.
Public propertyNodeIds
Node Id's

You can modify each value individually directly in the list, or provide a new array of values, which must have the same length as the original one.

Be aware that changing this to anything but the default values (1,2,3,...) can make some tools stop working.

Public propertyNumberOfElements
Number of elements in the mesh
Public propertyNumberOfNodes
Number of nodes in the mesh.
Public propertyProjectionString
The projection string

IDfsProjection for details on its format.

Public propertyX
Node X coordinates.

You can modify each coordinate individually directly in the list, or provide a new array of coordinates, which must have the same length as the original one.

Public propertyY
Node Y coordinates.

You can modify each coordinate individually directly in the list, or provide a new array of coordinates, which must have the same length as the original one.

Public propertyZ
Node Z coordinates.

You can modify each coordinate individually directly in the list, or provide a new array of coordinates, which must have the same length as the original one.

Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRead
Read .mesh file and load all data.

If an element specifies a node number of zero, that node number is ignored, and does not become a part of the mesh data structure. That is the case for e.g. mixed triangular/quadrilateral meshes, where all elements specify 4 nodes, and triangular elements specifies the last node as zero.

Public methodStatic memberReadMesh
Read the mesh from the provided mesh file
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite
Write MeshFile to filename
Top
See Also