Click or drag to resize
DfsuUtil Class
Utility and extension methods for DfsuFile
Inheritance Hierarchy
SystemObject
  DHI.Generic.MikeZero.DFS.dfsuDfsuUtil

Namespace: DHI.Generic.MikeZero.DFS.dfsu
Assembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
public static class DfsuUtil

The DfsuUtil type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCalculateElementCenterCoordinates
For each element, calculates the element center coordinate as the average of all node coordinates of the nodes in each element.
Public methodStatic memberFindTopLayerElements(Int32)
Find element indices (zero based9 of the elements being the upper-most element in its column.

Each column is identified by matching node id numbers. For 3D elements the last half of the node numbers of the bottom element must match the first half of the node numbers in the top element. For 2D vertical elements the order of the node numbers in the bottom element (last half number of nodes) are reversed compared to those in the top element (first half number of nodes).

Public methodStatic memberFindTopLayerElements(IDfsuFile)
Find element indices (zero-based) of the elements being the upper-most element in its column.

Each column is identified by matching node id numbers. For 3D elements the last half of the node numbers of the bottom element must match the first half of the node numbers in the top element. For 2D vertical elements the order of the node numbers in the bottom element (last half number of nodes) are reversed compared to those in the top element (first half number of nodes).

Public methodStatic memberFindTopLayerElements(Int32, Double, Double)
Find element indices (zero based) of the elements being the upper-most element in its column.

This method uses the element center (x,y) coordinate, and identifies each column by having the same element center (x,y) coordinate.

Public methodStatic memberGetDateTimes
Return an array of DateTimes which are the times for each timestep
Top
See Also