Click or drag to resize

HDVelocityCalculator Class

Pull version of calculating velocity on grid points Data is calculated when GetValues are called
Inheritance Hierarchy

Namespace:  DHI.Mike1D.Engine.AddOns
Assembly:  DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public class HDVelocityCalculator : AbstractEngineDataReach

The HDVelocityCalculator type exposes the following members.

Constructors
  NameDescription
Public methodHDVelocityCalculator
Initializes a new instance of the HDVelocityCalculator class
Top
Properties
  NameDescription
Public propertyElementCount
Number of element values
(Inherited from AbstractEngineDataReach.)
Public propertyElementValues
element values
(Inherited from AbstractEngineDataReach.)
Public propertyGridPointIndices
Indices of gridpoints that data belongs to
(Inherited from AbstractEngineDataReach.)
Public propertyItem
Element value by index
(Inherited from AbstractEngineDataReach.)
Top
Methods
  NameDescription
Protected methodBuildIndexListForEndPoints
Build the indexlist for the specified gridpoints
(Inherited from AbstractEngineDataReach.)
Protected methodBuildIndexListForGridPoints(Boolean, Boolean)
Build the indexlist for the specified gridpoints using the _hdreach list.
Protected methodBuildIndexListForGridPoints(EngineReach, Boolean, Boolean)
Build the indexlist for the specified gridpoints
(Inherited from AbstractEngineDataReach.)
Public methodStatic memberCreateDataItemForEndPoints
Factory method for creating a dataitem that calculates velocities for HDModule for the first and/or last gridpoint.
Public methodStatic memberCreateDataItemForGridPoints
Factory method for creating a dataitem that calculates velocities for HDModule for the gridpoints specified
Public methodStatic memberCreateForEndPoints
Factory class for creating velocity data structures on reach end points
Public methodStatic memberCreateForGridPoints(EngineNet, Int32, ListInt32)
Factory class for creating velocity data structures on h- and/or q-points
Public methodStatic memberCreateForGridPoints(EngineNet, Int32, Boolean, Boolean)
Factory class for creating velocity data structures on h- and/or q-points
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Get the current values.
(Overrides AbstractEngineDataReachGetValue(Int32).)
Public methodGetValues
Get the current values of the velocities. A new array will be returned every time called.
(Overrides AbstractEngineDataReachGetValues.)
Public methodGetValues(Double)
Get the current values of the velocities.
(Overrides AbstractEngineDataReachGetValues(Double).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrepare
Prepare for new simulation. For pull versions, this is the empty function.
(Inherited from AbstractEngineDataReach.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_indexList
List of indexes into points in a reach
(Inherited from AbstractEngineDataReach.)
Top
Remarks
To build the index list, use the engineReach, since the hdReach does not have gridpoints before prepare is called, and we need to insert this before prepare (otherwise ResultData will not find it).
See Also