NodeDischargeAvailable Class

Helper class calculating discharge available in node.

this is not intended for parallel pumps - if there are more than one pump connected to a node, this will not do as intended, reporting total available volume to both/all pumps.

This is used in the parallel part of the code, in the loop over reaches, and this may access data in other reaches (which other threads can be working on), so it is important that this class only accesses properties of the reach that does not change - especially calling hdh-gridpoint cross section functionality is not allowed (race condition on the cross section buffer values / hdReachConnection.ReachNodeFlowType)

Definition

Namespace: DHI.Mike1D.Engine.ModuleHD
Assembly: DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class NodeDischargeAvailable
Inheritance
Object    NodeDischargeAvailable

Constructors

Methods

DischargeAvailableForPumping Return the maximum discharge that can be pumped out of this node before it runs dry.
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)
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)
PrepareDischargeAvailable 
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also