EngineExtensions Class

Class with extensions methods for the engine classes

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 static class EngineExtensions
Inheritance
Object    EngineExtensions

Methods

AddTimer Add timer to simulation
AverageSlope Calculate the average slope over the reach. Returns MinValue if not possible to calculate slope.
Digipoints(EngineReach) Get the digipoints of the reach
Digipoints(EngineReach, Int32) Get the ith digipoint of the reach
DirectionUnitVector Calculates the direction vector of the reach at the given gridpoint, as the average from the last to the next gridpoint.
FindReachWithStructure For a given structure, find the reach where it is located. Or null if it is not found.
FlowIntoNode Evalueate whether flow is into or out of the node.

When discharge is very small, water level slope is also taken into account.

GetPorosity Get surface area of geometry at provided level, by interpolation
GetProxy(IModule) 
GetProxy(IModule, EngineNode) 
GetProxy(IModule, EngineReach) 
GetProxy(IModule, EngineReach, Int32) 
GetProxyReachGeneric 
GetSurfaceArea Get surface area of geometry at provided level, by interpolation
GetSurfaceAreaCone Get surface area of geometry at provided level, by interpolation of cone/pyramid geometry
GetValueOrDefaultT Get engine data for the specified node, or returns null if node has no data
GetVolume Get volume of geometry at provided level
GetVolumeCone Get volume of geometry at provided level, by interpolation of cone/pyramid geometry
GetWettedAreaBox Calculates the wetted area for the node assuming it is either a box or a cylinger shape.
HasClosedCrossSection Check if the reach has at least one closed cross sections
HasOpenCrossSection Check if the reach has at least one open cross sections
IsAutoCreated If node is automatically created. This happens when reach start/end connections are based on locations.
IsHDNode(EngineNet, EngineNode) Returns true if the engine node is an HD node
IsHDNode(EngineNet, Int32) Returns true if the engine node at index i is an HD node
IsHdReach Returns true if the engine reach is a HD reach
IsPressureNode Returns true if the engine node is in a pressurized section
IsRoutingReach Returns true if the engine reach is a routing reach
IsSpillingNode If node is spilling node, i.e. is a volume node, and has a cover that supports spilling
IsStructureOutlet Returns true if the engine node is a structure outlet
ToTimeIntegrationType From DerivedQuantityType to TimeIntegratedItem in case derivedType is one of the integrating types.

If derivedType is not an integrating type, an exception is thrown.

See Also