Click or drag to resize

HDPipeDesignData Class

Data class for pipe design data
Inheritance Hierarchy

Namespace:  DHI.Mike1D.Mike1DDataAccess
Assembly:  DHI.Mike1D.Mike1DDataAccess (in DHI.Mike1D.Mike1DDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class HDPipeDesignData : AbstractDataAccess

The HDPipeDesignData type exposes the following members.

Constructors
  NameDescription
Public methodHDPipeDesignData
Initializes a new instance of the HDPipeDesignData class
Top
Properties
  NameDescription
Public propertyCommercialPipeDiameters
List of commercial pipe diameters. These are used for suggesting new pipe diameters after a simulation done. The smallest diameter larger than the computed diameter is used as suggestion.
Public propertyConnection
Holder of read/write information
(Inherited from AbstractDataAccess.)
Public propertyCustomTypes
List of custom types stored in the data object and that must be serialized.

A custom type is e.g. a user implemented structure or catchment model. In order to store information on the custom type in the .m1dx file, the system needs to know which custom types are being used, and they must be added to this list.

(Inherited from AbstractDataAccess.)
Public propertyDesignOptimizationItems
A list of items in the Pipe Design simulation. Each item contains a list of reaches that will be modified.
Public propertyExtensionData
Holds data from an extended DataContract
(Inherited from AbstractDataAccess.)
Public propertyInputOutputUnits
Unit of input and output files
Public propertyMEXFile
Name and path of mex file
Public propertyPIDDerivationPeriod
PID derivation period in seconds. Default value 0.8 seconds.
Public propertyPIDIntegrationPeriod
PID integration period in seconds. Default value 300 seconds.
Public propertyPIDProportionalityFactor
PID proportionality factors. Default value -1
Public propertyPIDWeightTimeStep1
PID weight of time step n to use when modifying the Manning number of reaches. Default value 1.
Public propertyPIDWeightTimeStep2
PID weight of time step n-1 to use when modifying the Manning number of reaches. Default value 1.
Public propertyPIDWeightTimeStep3
PID weight of time step n-2 to use when modifying the Manning number of reaches. Default value 1.
Public propertyResultFile
File path of the Pipe Design result file
Top
Methods
  NameDescription
Public methodActiveReaches
Return a list of active HDPipeDesignOptimizationReach'es.
Public methodConvertFeetToMeterConditionally
Convert length to SI units if necessary
Public methodConvertMeterToFeetConditionally
Conversion from meters to feet, if InputOutputUnits is US
Public methodDeletePreviousResults
Delete result file (if possible) and delete all previously calculated diameters.
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 methodStatic memberFindEngineReachFromId
Find the EngineReach that has reachId == EngineReach.LocationSpan.ID. If multiple reaches exist that have the same ID in locations, then an exception is generated. Use this function from Prepare if the
Public methodFindPipeDesignItemFromId
Find a Pipe Design item from an id. This is used from the control module when all the reaches in an item are controlled as a group (then the control module operates on the item instead of on the individual reaches)
Public methodFindPipeDesignReachFromId
Loop through all reaches that are part of Pipe Design and return the one with the specified id.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Initialize
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrepare
Create controls necessary to modify pipe Manning numbers and set pipe diameters from pipe design restul file
Public methodReadResultFile
Read result file into active flag, init factor and previous results for each reach
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Check PipeDesignData for errors and inconsistencies
Public methodWriteMEXFile
Write mex file, matching that of MOUSE
Public methodWriteResultFile
Write a Pipe Design result file. The result file is a PFS file that contains the pipe diameters from a Pipe Design simulation.
Top
Fields
  NameDescription
Protected field_connection
Protected holder of read/write info
(Inherited from AbstractDataAccess.)
Top
See Also