Click or drag to resize

EngineTime Class

NetworkEngine time.
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.EngineEngineTime

Namespace:  DHI.Mike1D.Engine
Assembly:  DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class EngineTime : IDoubleFractionProxy, IDoubleProxy, 
	IQuantityProxy

The EngineTime type exposes the following members.

Constructors
  NameDescription
Public methodEngineTime
Initializes a new instance of the EngineTime class
Top
Properties
  NameDescription
Public propertyAdaptiveTimeSteppingActivated
Indicates whether adaptive time stepping is activated. Used to decide whether the state should be stored before a time step.
Public propertyCheckPoints
Check point controller, handling check points in time that must be hit by the EngineTime.

This is not used when EngineTimeStep is null (constant time step)

Public propertyDDt
Time step inverse - 1/Dt Unit: [1/sec]
Public propertyDt
Time step Unit: [sec]. Rounded to nearest millisecond
Public propertyDtSpan
Time step Unit: [sec]. Rounded to nearest millisecond
Public propertyEngineTimeStep
The IEngineTimeStep does the actual calculation of the new time step.

If null, time step is decided directly by the current value of Dt/DtSpan.

Public propertyNumberOfTimeSteps
Number of time steps performed.
Public propertyNumberOfTriedTimeSteps
Total number of time steps tried, also those failing.
Public propertyNumberOfTriesForTimeStep
Counts the number of time steps tried for the current time step
Public propertyTimeN
Time at time step n
Public propertyTimeNp1
Time at time step n+1
Public propertyTimeNph
Time at time step n + ½
Top
Methods
  NameDescription
Public methodAccepts
List of data types that is accepted and can be used in SetValue
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 the default hash function.
(Inherited from Object.)
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 methodNextTimeStep
Returns the size of the next time step. In case of adaptive time stepping this is a guess of the size of the next time step, and may not equal the actual size of the time step.
Public methodOffers
List of data types that is offered and can be used in GetValue
Public methodPrepare
Public methodResetInitialTimeStep
Resets values for EngineTimeStep and sets DtSpan to initialTimeStep.
Public methodSetTime
Adjusts the current timestep by setting both DtSpan and TimeNp1 Unit: [sec]. Rounded to nearest millisecond
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryDecreaseTimeStep
Returns false if the time step should be decreased but cannot be decreased further. Throws an exception if adaptive time stepping is not enabled.
Public methodUpdate
Steps time one time steps forward
Public methodValueFractionGetter
Public methodValueGetter
Get value setter for the specified data quantity
Public methodValueSetter
Get value setter for the specified data type
Top
Fields
  NameDescription
Public fieldStatic memberACCEPTS_Time
quantityIndex of accepted time quantity
Public fieldStatic memberACCEPTS_TimeStep
quantityIndex of accepted timestep quantity
Public fieldStatic memberOFFERS_Time
quantityIndex of offered time quantity
Public fieldStatic memberOFFERS_TimeStep
quantityIndex of offered timestep quantity
Top
Extension Methods
  NameDescription
Public Extension MethodGetter

From the proxy, return an FuncTResult for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

(Defined by ProxyExtensions.)
Public Extension MethodGetters
Returns a set of FuncTResult for the quantity. We can return several quantities with the same id (usually they will differ in their description). If the quantity is not offerent, an empty list is returned.
(Defined by ProxyExtensions.)
Public Extension MethodGettersFraction
Returns a set of FuncT, TResult for the quantity. We can return several quantities with the same id (usually they will differ in their description). If the quantity is not offerent, an empty list is returned.
(Defined by ProxyExtensions.)
Public Extension MethodGetterUnboxed

From the proxy, return an FuncTResult for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

(Defined by ProxyExtensions.)
Public Extension MethodSetter

From the proxy, return an IDoubleGetSet for the specified quantity.

It returns the first quantity of that type that is accepted, and null if the quantity is not accepted.

(Defined by ProxyExtensions.)
Top
See Also