Pipe Class

Represents a pipe segment unit operation that models single- or multi-phase fluid flow through one or more pipe sections with specified geometry, elevation, and thermal boundary conditions. Pressure drop, temperature, and phase-equilibrium profiles are calculated using a selectable two-phase flow correlation.

Definition

Namespace: DWSIM.UnitOperations.UnitOperations
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
[SerializableAttribute]
public class Pipe : UnitOpBaseClass
Inheritance
Object    BaseClass    UnitOpBaseClass    Pipe

Constructors

PipeInitializes a new default instance of the Pipe class.
Pipe(String, String) Initializes a new instance of the Pipe class with a name and description.

Properties

AccumulationStreamsGets or sets the list of accumulation streams used in dynamic mode (one per section).
AdjustVarType If an Adjust object is attached to this object, returns a variable describing how this object is used by it (manipulated, controlled or reference).
(Inherited from BaseClass)
Annotation
(Inherited from BaseClass)
AttachedAdjustId If an Adjust object is attached to this object, returns its ID.
(Inherited from BaseClass)
AttachedInfoCarrierId
(Inherited from BaseClass)
AttachedSpecId If an Specification object is attached to this object, returns its ID.
(Inherited from BaseClass)
AttachedUtilities
(Inherited from BaseClass)
Bottom
(Inherited from BaseClass)
Calculated
(Inherited from BaseClass)
CalculateEquilibriumGets or sets whether phase-equilibrium flashes are performed at each pipe section.
CalculateEquilibriumIntervalInStepsGets or sets the interval (in calculation steps) between equilibrium flash evaluations.
CalculateHeatBalanceGets or sets whether a rigorous wall heat-balance is calculated for each section.
CanUsePreviousResults
(Inherited from BaseClass)
ComponentDescription Gets or sets the CAPE-OPEN component description for this unit operation.
(Inherited from UnitOpBaseClass)
ComponentName Gets or sets the CAPE-OPEN component name for this unit operation.
(Inherited from UnitOpBaseClass)
CreateChartAction
(Inherited from BaseClass)
DebugMode
(Inherited from BaseClass)
DebugText
(Inherited from BaseClass)
DeltaPGets or sets the total calculated pressure drop across all pipe sections (Pa).
DeltaQGets or sets the total calculated heat duty exchanged across all pipe sections (kW).
DeltaTGets or sets the total calculated temperature change across all pipe sections (K).
DetailedDebugReport
(Inherited from BaseClass)
Dimensions Gets or sets the list of physical dimensions (e.g. vessel diameter, length) associated with this unit operation.
(Inherited from UnitOpBaseClass)
DynamicsOnly
(Inherited from BaseClass)
DynamicsSpec
(Inherited from BaseClass)
EnergyFlow Energy Flow property. Only implemented for Energy Streams.
(Inherited from BaseClass)
EquipmentTypes Gets the list of available equipment type names supported by this unit operation.
(Inherited from UnitOpBaseClass)
ErrorMessage Gets or sets the error message regarding the last calculation attempt.
(Inherited from BaseClass)
ExternalSolverConfigData Gets or sets serialized configuration data for the external solver associated with this unit operation.
(Inherited from UnitOpBaseClass)
ExternalSolverID Gets or sets the unique identifier of an external solver to be used for this unit operation.
(Inherited from UnitOpBaseClass)
ExtraProperties
(Inherited from BaseClass)
ExtraPropertiesDescriptions
(Inherited from BaseClass)
ExtraPropertiesTypes
(Inherited from BaseClass)
ExtraPropertiesUnitTypes
(Inherited from BaseClass)
FlowSheet Gets the current flowsheet where this object is located.
(Inherited from BaseClass)
GHGEmissionData
(Inherited from BaseClass)
GraphicObject Gets or sets the graphic object representation of this object in the flowsheet.
(Inherited from BaseClass)
HasPropertiesForDynamicModeGets a value indicating whether this unit operation exposes dedicated dynamic-mode properties.
(Overrides BaseClassHasPropertiesForDynamicMode)
Height
(Inherited from BaseClass)
IncludeEmulsionGets or sets whether oil-water emulsion viscosity is included in the pressure-drop calculation.
InfoCarrierVarType
(Inherited from BaseClass)
IsAdjustAttached Checks if an Adjust operation is attached to this object.
(Inherited from BaseClass)
IsDirty
(Inherited from BaseClass)
IsFunctional
(Inherited from BaseClass)
IsInfoCarrierAttached
(Inherited from BaseClass)
IsSink
(Inherited from BaseClass)
IsSource
(Inherited from BaseClass)
IsSpecAttached Checks if an Specification operation is attached to this object.
(Inherited from BaseClass)
LastSolutionInputSnapshot
(Inherited from BaseClass)
LastUpdated
(Inherited from BaseClass)
Left
(Inherited from BaseClass)
MaxPressureIterationsGets or sets the maximum number of pressure iteration loops per section.
MaxTemperatureIterationsGets or sets the maximum number of temperature iteration loops per section.
MobileCompatibleGets a value indicating whether this unit operation is compatible with mobile interfaces.
(Overrides BaseClassMobileCompatible)
Name Object's Unique ID (Name)
(Inherited from BaseClass)
ObjectClassGets or sets the simulation object class category (PressureChangers).
(Overrides BaseClassObjectClass)
OutletPressureGets or sets the target outlet pressure (Pa) when Specification is OutletPressure.
OutletTemperatureGets or sets the target outlet temperature (K) when Specification is OutletTemperature.
OverrideCalculationRoutine
(Inherited from BaseClass)
ParticleSizeDistributions Gets or sets the dictionary of particle size distribution data, keyed by compound or stream name.
(Inherited from UnitOpBaseClass)
Phases Phase collection, only implemented for Material Streams.
(Inherited from BaseClass)
PreferredFlashAlgorithmTag
(Inherited from BaseClass)
PressureDrop_FrictionGets or sets the calculated friction component of total pressure drop (Pa).
PressureDrop_StaticGets or sets the calculated static (elevation) component of total pressure drop (Pa).
ProductAssembly
(Inherited from BaseClass)
ProductAuthor
(Inherited from BaseClass)
ProductContactInfo
(Inherited from BaseClass)
ProductDescription
(Inherited from BaseClass)
ProductName
(Inherited from BaseClass)
ProductPage
(Inherited from BaseClass)
ProductVersion
(Inherited from BaseClass)
ProfileGets or sets the geometric profile (sections, diameters, lengths, elevations) of this pipe.
PropertyPackage Gets or sets the property package associated with this object.
(Inherited from UnitOpBaseClass)
Right
(Inherited from BaseClass)
SelectedEquipmentType Gets or sets the name of the equipment type currently selected for this unit operation.
(Inherited from UnitOpBaseClass)
SelectedFlowPackageGets or sets the two-phase flow correlation used for pressure-drop calculations.
SlurryViscosityModeGets or sets the slurry viscosity model index (0 = default).
SpecificationGets or sets the active specification mode for this pipe.
SpecVarType If an Specification object is attached to this object, returns a variable describing how this object is used by it (target or source).
(Inherited from BaseClass)
StoreDetailedDebugReport
(Inherited from BaseClass)
SupportsDynamicModeGets a value indicating whether this unit operation supports dynamic simulation mode.
(Overrides BaseClassSupportsDynamicMode)
SupportsParticleSizeDistributions Gets a value indicating whether this unit operation supports particle size distribution calculations.
(Inherited from UnitOpBaseClass)
SupportsRestoreStateAfterError Gets a value indicating whether this unit operation supports restoring its state after a solver error.
(Inherited from UnitOpBaseClass)
ThermalProfileGets or sets the thermal boundary-condition definitions for this pipe.
TolPGets or sets the pressure convergence tolerance (Pa).
TolTGets or sets the temperature convergence tolerance (K).
Top
(Inherited from BaseClass)
UseGlobalWeatherGets or sets whether the pipe uses the flowsheet-level weather (ambient temperature) settings.
UserDefinedChartNames
(Inherited from BaseClass)
Visible
(Inherited from BaseClass)
Width
(Inherited from BaseClass)

Methods

AddButtonsToDynEditor 
AddDynamicProperty
(Inherited from BaseClass)
AddExtraProperty
(Inherited from BaseClass)
AppendDebugLine
(Inherited from BaseClass)
CalcOverallHeatTransferCoefficient 
CalculateCalculates pressure drop, heat transfer, and phase behaviour along the pipe.
(Overrides BaseClassCalculate(Object))
CheckDirtyStatus Checks whether the unit operation's input data has changed since the last successful solve, and updates the dirty flag accordingly.
(Inherited from UnitOpBaseClass)
CheckSpec Checks if a value is valid.
(Inherited from BaseClass)
ClearExtraProperties
(Inherited from BaseClass)
ClearPropertyPackageInstance Removes the externally set property package instance from this unit operation, reverting to the flowsheet-level property package lookup.
(Inherited from UnitOpBaseClass)
Clone Clones the current object, returning a new one with identical properties.
(Inherited from BaseClass)
CloneJSONCreates a deep copy of this pipe via JSON serialization.
(Overrides BaseClassCloneJSON)
CloneXMLCreates a deep copy of this pipe via XML serialization.
(Overrides BaseClassCloneXML)
CloseDynamicsEditForm
(Inherited from BaseClass)
CloseEditFormCloses and disposes the editing form.
(Overrides BaseClassCloseEditForm)
cond_isol 
ConnectEnergyStream
(Inherited from BaseClass)
ConnectFeedEnergyStream
(Inherited from BaseClass)
ConnectFeedMaterialStream
(Inherited from BaseClass)
ConnectProductEnergyStream
(Inherited from BaseClass)
ConnectProductMaterialStream
(Inherited from BaseClass)
CopyDataToClipboard Copies the object properties to the Clipboard.
(Inherited from BaseClass)
CreateDimensionsList Initializes the list of equipment dimensions for this unit operation. Override to populate the Dimensions collection with dimension entries.
(Inherited from UnitOpBaseClass)
CreateDynamicPropertiesCreates the additional properties required for dynamic simulation mode.
(Overrides BaseClassCreateDynamicProperties)
CreateNew
(Inherited from BaseClass)
DeCalculateClears all calculated results.
(Overrides UnitOpBaseClassDeCalculate)
DeCalculate(Object)
(Inherited from BaseClass)
DisplayDynamicsEditFormOpens the dynamics-specific editing form.
(Overrides BaseClassDisplayDynamicsEditForm)
DisplayEditFormOpens or activates the editing form.
(Overrides BaseClassDisplayEditForm)
DisplayExtraPropertiesEditForm
(Inherited from BaseClass)
Dispose
(Inherited from BaseClass)
Dispose(Boolean)
(Inherited from BaseClass)
EmulsionViscosity Calculates the effective oil-water emulsion viscosity (Pa·s) for the given material stream based on the oil volume fraction and the Brinkman equation.
FT Formats a property string, adding its units in parenthesis.
(Inherited from BaseClass)
FT2 
GetAsObject
(Inherited from BaseClass)
GetBytesFromResource
(Inherited from BaseClass)
GetCalculationModes Returns the list of available calculation mode names for this unit operation.
(Inherited from UnitOpBaseClass)
GetChartModelReturns the chart model object for the specified chart name.
(Overrides BaseClassGetChartModel(String))
GetChartModelNamesReturns the names of available chart models for this unit operation.
(Overrides BaseClassGetChartModelNames)
GetConnectionPortsInfo
(Inherited from BaseClass)
GetConnectionPortsList
(Inherited from BaseClass)
GetDebugReport Runs the unit operation in debug mode and returns a formatted text report containing intermediate calculation steps and any error information.
(Inherited from UnitOpBaseClass)
GetDebugWriter
(Inherited from BaseClass)
GetDefaultPropertiesReturns the default set of properties shown in the flowsheet inspector.
(Overrides BaseClassGetDefaultProperties)
GetDisplayDescriptionReturns the localised display description.
(Overrides BaseClassGetDisplayDescription)
GetDisplayNameReturns the localised display name.
(Overrides BaseClassGetDisplayName)
GetDynamicContents Returns the current mass held in the accumulation stream of this unit operation.
(Inherited from UnitOpBaseClass)
GetDynamicProperty
(Inherited from BaseClass)
GetDynamicPropertyUnitType
(Inherited from BaseClass)
GetDynamicResidenceTime Returns the dynamic residence time of this unit operation, computed as volume divided by the total volumetric inlet flow rate.
(Inherited from UnitOpBaseClass)
GetDynamicVolume Returns the dynamic volume of this unit operation from its dynamic property store.
(Inherited from UnitOpBaseClass)
GetEditingForm
(Inherited from BaseClass)
GetEnergyBalanceResidual
(Inherited from BaseClass)
GetEnergyConsumption Returns the total energy consumed by this unit operation by summing the energy flows from all connected energy streams and the energy connector.
(Inherited from UnitOpBaseClass)
GetExtraPropertyValue
(Inherited from BaseClass)
GetFlowsheet
(Inherited from BaseClass)
GetIconBitmapReturns the icon bitmap resource.
(Overrides BaseClassGetIconBitmap)
GetIconBitmapBytesReturns the icon bitmap as a byte array.
(Overrides BaseClassGetIconBitmapBytes)
GetKeyPropertyNames Returns the names of the key output properties reported by this unit operation.
(Inherited from UnitOpBaseClass)
GetKeyPropertyUnits Returns the display unit string for a named key property.
(Inherited from UnitOpBaseClass)
GetKeyPropertyValue Returns the current numeric value of a named key property in SI units.
(Inherited from UnitOpBaseClass)
GetMassBalanceResidual
(Inherited from BaseClass)
GetPowerGeneratedOrConsumed
(Inherited from BaseClass)
GetPreferredGraphicObjectHeight
(Inherited from BaseClass)
GetPreferredGraphicObjectWidth
(Inherited from BaseClass)
GetPropertiesReturns an array of property identifiers for the specified property type.
(Overrides BaseClassGetProperties(PropertyType))
GetProperties2
(Inherited from BaseClass)
GetPropertyDescriptionReturns a human-readable description of the specified property.
(Overrides BaseClassGetPropertyDescription(String))
GetPropertyUnitReturns the unit string for the specified property.
(Overrides BaseClassGetPropertyUnit(String, IUnitsOfMeasure))
GetPropertyUnits2
(Inherited from BaseClass)
GetPropertyValueReturns the value of the specified property.
(Overrides UnitOpBaseClassGetPropertyValue(String, IUnitsOfMeasure))
GetPropertyValue2
(Inherited from BaseClass)
GetReportGenerates a plain-text report of the pipe segment results.
(Overrides BaseClassGetReport(IUnitsOfMeasure, CultureInfo, String))
GetRugosityReturns the pipe-wall rugosity (m) for the given material name and section.
GetStandardPipeSizes Loads standard commercial pipe sizes from the embedded resource file and returns them grouped by nominal diameter.
GetStructuredReport
(Inherited from BaseClass)
GetVersion
(Inherited from BaseClass)
hext_holman 
hint_petukhov 
IsDynamicProperty
(Inherited from BaseClass)
k_parede 
k_terreno 
Kfit 
LoadDataRestores the pipe state, including dynamic accumulation streams, from a list of XML elements.
(Overrides UnitOpBaseClassLoadData(ListXElement))
NPr 
NRe 
ObjectCopy
(Inherited from BaseClass)
PerformPostCalcValidation
(Inherited from BaseClass)
PopulateData 
PropsAGUA 
PropsAR 
RemoveDynamicProperty
(Inherited from BaseClass)
RemoveExtraProperty
(Inherited from BaseClass)
RunDynamicModelPerforms the dynamic-mode calculation for the pipe segment.
(Overrides BaseClassRunDynamicModel)
SaveDataSerializes the pipe state, including dynamic accumulation streams, into a list of XML elements.
(Overrides UnitOpBaseClassSaveData)
SetCalculationMode Sets the active calculation mode for this unit operation by numeric identifier.
(Inherited from UnitOpBaseClass)
SetCanUsePreviousResults
(Inherited from BaseClass)
SetDirtyStatus
(Inherited from BaseClass)
SetDynamicProperty
(Inherited from BaseClass)
SetExtraPropertyValue
(Inherited from BaseClass)
SetFlowsheet Sets the Flowsheet to which this object belongs to.
(Inherited from BaseClass)
SetKeyPropertyValue Sets the value of a named key property, converting from the supplied units to SI internally.
(Inherited from UnitOpBaseClass)
SetPropertyPackageInstance Assigns an externally supplied property package instance to this unit operation, bypassing the flowsheet-level property package lookup.
(Inherited from UnitOpBaseClass)
SetPropertyValueSets the value of the specified property.
(Overrides BaseClassSetPropertyValue(String, Object, IUnitsOfMeasure))
SetPropertyValue2
(Inherited from BaseClass)
Solve Solves the unit operation, optionally saving and restoring state on error when the flowsheet option RestoreUnitOperationStateAfterError is enabled.
(Inherited from UnitOpBaseClass)
StoreDebugReport
(Inherited from BaseClass)
ToString
(Inherited from BaseClass)
TransferAdditionalSolidData
(Inherited from BaseClass)
Unsolve Decalculates the object.
(Inherited from UnitOpBaseClass)
UpdateDimensionsList Updates the equipment dimensions list after a successful calculation. Override to refresh computed dimension values.
(Inherited from UnitOpBaseClass)
UpdateDynamicsEditForm
(Inherited from BaseClass)
UpdateEditFormRefreshes the editing form with updated data.
(Overrides BaseClassUpdateEditForm)
UpdateExtraPropertiesEditForm
(Inherited from BaseClass)
Validate Validates the object, checking its connections and other parameters.
(Inherited from BaseClass)

Fields

_CanUsePreviousResults
(Inherited from BaseClass)
_capeopenmode
(Inherited from UnitOpBaseClass)
_IsDirty
(Inherited from BaseClass)
_pp
(Inherited from UnitOpBaseClass)
_ppid
(Inherited from UnitOpBaseClass)
AccumulationStream
(Inherited from UnitOpBaseClass)
CalculationRoutineOverride
(Inherited from BaseClass)
disposedValue
(Inherited from BaseClass)
ExtraPropertiesEditor
(Inherited from BaseClass)
f 
fd
(Inherited from BaseClass)
LaunchExternalPropertyEditor
(Inherited from BaseClass)
m_flowsheet
(Inherited from BaseClass)
m_iapws97 

Extension Methods

See Also