WhResultFile Class

Class for reading Water Hammer result files created with EPA Net engine.

Definition

Namespace: DHI.Mike1D.ResultDataAccess.Epanet
Assembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class WhResultFile
Inheritance
Object    WhResultFile

Constructors

WhResultFile Construct Water Hammer result file from path namme

Properties

FilePath Path of result file
FlowUnitsOption Unit options for flow (m^3/s)
LinkEndNodes 
LinksDef List of link definitions
NodeItems List of node items
NoOfGridPoints Number of grid points in setup
NoOfLinks Number of links in setup
NoOfNodes Number nodes in setup
NoOfTimeSteps Number of time steps in simulation
PressureUnitsOption Unit options for pressure (0 = psi, 1 = kPa, 2 = meters)
ResultFileWarning Return potential warnings created while trying to read water hammer result file
SimulationDuration Simulation length (s)
TimeStep Time step size (s)
WhGridPoints List of grid point definitions

Methods

CloseFile Close result file
EpanetErrorToString Create a string based on the error
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)
GetNextTimestepValues Get Water Hammer result item values
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetWhFilePath Return path of Water Hammer result file, return empty string if file does not exist.
IsOpen Check if file is currently open
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OpenFile Open existing Water Hammer result file
ReadFileHeader Read Water Hammer result file header
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also