GridPoint Class

Base class for all gridpoints

Definition

Namespace: DHI.Mike1D.Engine
Assembly: DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public abstract class GridPoint : IComparable, 
	IGridPoint, INetworkGridPoint
Inheritance
Object    GridPoint
Derived
Implements
IGridPoint, INetworkGridPoint, IComparable

Constructors

Properties

D2x distance from previous point to next point. For the first grid point in the reach it is the distance to the grid point after this point. For the last grid point in the reach it is the distance to the gridpiont before this point.
Dx Distance to prev point. For the first grid point in a reach it is zero.
Location Location of grid point
PointIndex Index in list of gridpoints
Ratio Ratio used when interpolating between values in the up and down stream reach direction v = (1-ratio)*v_{j-1} + ratio*v_{j+1}

Ratio is Dx/D2x

ZLocation Location of grid point

Methods

CompareTo Compares the current instance with another object of the same type.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetGridPointSpan Get the ILocationSpan around this gridpoint where the values are valid, usually the span from the previous gridpoint to the next gridpoint in the reach.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

_d2x distance from previous point to next point. For the first grid point in the reach it is the distance to the grid point after this point. For the last grid point in the reach it is the distance to the gridpiont before this point.
_dx Distance to prev point for the first grid point in a reach it is zero.
_location Location in network.

See Also