Click or drag to resize

ADModule Class

AD module handles component transport
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.Engine.ModuleADADModule

Namespace:  DHI.Mike1D.Engine.ModuleAD
Assembly:  DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class ADModule : IModule, IModuleNetwork, 
	IModuleNetwork<IADNode, IADReach>, IModelStateReadWrite, IProxyProvider, 
	ISourcePointProxyProvider

The ADModule type exposes the following members.

Properties
  NameDescription
Public propertyComponents
AD components, shortcut to AD Data components list
Public propertyId
Id of module
Public propertyNodes
List of AD Nodes
Public propertyOrder
Order of module. Modules are processed in order. The AD module must run after the HD module. The HD module has order 200.
Public propertyReaches
List of AD Reaches
Top
Methods
  NameDescription
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 methodFinalizeTimestep
FinalizeTimeStep allows the modules to do operations required when a time step has successfully completed
Public methodFinish
Finishes the module and releases any license
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNode
Maps an EngineNode to the corresponding AD Node
Public methodGetProxy
Get a proxy for generic/global data
Public methodGetProxy(EngineNode)
Get a proxy for the node
Public methodGetProxy(EngineReach)
Get a proxy for the reach, covering a number of gridpoints
Public methodGetProxy(EngineReach, Int32)
Get a proxy for the gridpoint in the reach
Public methodGetProxyReachGeneric
Get a proxy for the reach, generic data (not gridpoint associated)
Public methodGetReach
Maps an EngineReach to the corresponding AD Reach
Public methodGetSourcePointProxy(EngineNode)
Get a source point proxy for the node.

Usually this can only be called after the Prepare(Diagnostics) function has been called.

Public methodGetSourcePointProxy(EngineReach, Int32)
Get a source point proxy for the gridpoint in the reach.

Usually this can only be called after the Prepare(Diagnostics) function has been called.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPerformTimestep
Perform timestep and return true if solution is accepted. Can be called several times for different values of Dt.
Public methodPerformTimestep(Int32)
Perform timestep and return true if solution is accepted. Can be called several times for different values of Dt.
Public methodPreferredTimeStep
Returns the preferred time step for the current state. It is called between every time step and can increase as well as decrease the time step.

Used when AdaptiveTimeSteppingActivated is true.

Do return the maximum of the allowed time step; in case a buffer is required, this is handled by a time step controller.

Public methodPrepare
Prepare module for first time step.
Public methodPrepareForTimeStep
Prepare module for time step (set state(n+1) = state(n)).

Public methodReadState
Public methodSetInitialValues
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteState
Write current state of module
Top
Fields
  NameDescription
Public fieldSTWaterVolumeErrorConcentrationCorrection
Flag indicating how water volume errors are handled for suspended ST components. When true, the concentration is kept constant, and mass is added/removed matching the volume error. When false, the mass is kept constant, and the concentration changes with the volume error. Default is false
Public fieldWaterVolumeErrorConcentrationCorrection
Flag indicating how water volume errors are handled for AD components. When true, the concentration is kept constant, and mass is added/removed matching the volume error. When false, the mass is kept constant, and the concentration changes with the volume error. Default is true
Top
Extension Methods
See Also