Recycle Class

Represents a material recycle convergence block that iterates stream conditions until inlet and outlet properties match within the specified tolerances. Supports Wegstein, Dominant Eigenvalue, and successive substitution acceleration methods.

Definition

Namespace: DWSIM.UnitOperations.SpecialOps
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
[SerializableAttribute]
public class Recycle : SpecialOpBaseClass, IRecycle
Inheritance
Object    BaseClass    SpecialOpBaseClass    Recycle
Implements
IRecycle

Constructors

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

Properties

AccelerationMethodGets or sets the convergence acceleration method (None, Wegstein, or GlobalBroyden).
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)
CanUsePreviousResults
(Inherited from BaseClass)
ComponentDescription
(Inherited from BaseClass)
ComponentName
(Inherited from BaseClass)
ConvergedGets or sets whether the recycle loop has converged to within the specified tolerances.
ConvergenceHistoryGets or sets the convergence history (current and previous stream variable values and errors).
ConvergenceParametersGets or sets the convergence tolerance parameters (temperature, pressure, mass flow, etc.).
CopyOnStreamDataErrorGets or sets whether stream data should be copied even when an error occurs reading stream properties.
CreateChartAction
(Inherited from BaseClass)
DebugMode
(Inherited from BaseClass)
DebugText
(Inherited from BaseClass)
DetailedDebugReport
(Inherited from BaseClass)
DynamicsOnly
(Inherited from BaseClass)
DynamicsSpec
(Inherited from BaseClass)
EnergyFlow Energy Flow property. Only implemented for Energy Streams.
(Inherited from BaseClass)
ErrorMessage Gets or sets the error message regarding the last calculation attempt.
(Inherited from BaseClass)
ErrorsGets the dictionary of current convergence errors keyed by variable name (e.g., "Temperature", "Pressure").
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 recycle block exposes properties for dynamic mode.
(Overrides BaseClassHasPropertiesForDynamicMode)
Height
(Inherited from BaseClass)
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)
IterationCountGets or sets the current iteration counter during an active convergence run.
IterationsTakenGets or sets the total number of iterations taken during the last convergence run.
LastSolutionInputSnapshot
(Inherited from BaseClass)
LastUpdated
(Inherited from BaseClass)
Left
(Inherited from BaseClass)
LegacyModeGets or sets whether to use the legacy convergence algorithm.
MaximumIterationsGets or sets the maximum number of iterations allowed before convergence is considered failed.
MobileCompatibleGets a value indicating whether this recycle block is compatible with the DWSIM mobile interface.
(Overrides BaseClassMobileCompatible)
Name Object's Unique ID (Name)
(Inherited from BaseClass)
ObjectClass Gets or sets the simulation object class, which is always Logical for special operations.
(Inherited from SpecialOpBaseClass)
OverrideCalculationRoutine
(Inherited from BaseClass)
Phases Phase collection, only implemented for Material Streams.
(Inherited from BaseClass)
PreferredFlashAlgorithmTag
(Inherited from BaseClass)
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)
PropertyPackage
(Inherited from BaseClass)
Right
(Inherited from BaseClass)
SmoothingFactorGets or sets the damping factor applied to variable updates during convergence iterations (1.0 = no damping).
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 recycle block supports dynamic simulation mode.
(Overrides BaseClassSupportsDynamicMode)
Top
(Inherited from BaseClass)
UserDefinedChartNames
(Inherited from BaseClass)
ValuesGets the dictionary of the last calculated stream values keyed by variable name (e.g., "Temperature", "MassFlow").
Visible
(Inherited from BaseClass)
WegsteinParametersGets or sets the Wegstein acceleration parameters used during convergence.
Width
(Inherited from BaseClass)

Methods

AddDynamicProperty
(Inherited from BaseClass)
AddExtraProperty
(Inherited from BaseClass)
AppendDebugLine
(Inherited from BaseClass)
Calculate Performs one iteration of the recycle convergence check, optionally applying Wegstein or Broyden acceleration, and updates the outlet stream with the new estimated values.
(Overrides BaseClassCalculate(Object))
CheckDirtyStatus
(Inherited from BaseClass)
CheckSpec Checks if a value is valid.
(Inherited from BaseClass)
ClearExtraProperties
(Inherited from BaseClass)
ClearPropertyPackageInstance
(Inherited from BaseClass)
Clone Clones the current object, returning a new one with identical properties.
(Inherited from BaseClass)
CloneJSONCreates a deep copy of this recycle block via JSON serialization.
(Overrides BaseClassCloneJSON)
CloneXMLCreates a deep copy of this recycle block via XML serialization.
(Overrides BaseClassCloneXML)
CloseDynamicsEditForm
(Inherited from BaseClass)
CloseEditFormCloses and disposes the editing form for this recycle block if it is open.
(Overrides BaseClassCloseEditForm)
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)
CreateDynamicProperties
(Inherited from BaseClass)
CreateNew
(Inherited from BaseClass)
DeCalculateResets the iteration counter, effectively unsetting the convergence state.
DeCalculate(Object)
(Inherited from BaseClass)
DisplayDynamicsEditForm
(Inherited from BaseClass)
DisplayEditFormOpens or activates the editing form for this recycle block.
(Overrides BaseClassDisplayEditForm)
DisplayExtraPropertiesEditForm
(Inherited from BaseClass)
Dispose
(Inherited from BaseClass)
Dispose(Boolean)
(Inherited from BaseClass)
FT Formats a property string, adding its units in parenthesis.
(Inherited from BaseClass)
GetAsObject
(Inherited from BaseClass)
GetBytesFromResource
(Inherited from BaseClass)
GetChartModel
(Inherited from BaseClass)
GetChartModelNames
(Inherited from BaseClass)
GetConnectionPortsInfo
(Inherited from BaseClass)
GetConnectionPortsList
(Inherited from BaseClass)
GetDebugReport
(Inherited from BaseClass)
GetDebugWriter
(Inherited from BaseClass)
GetDefaultProperties
(Inherited from BaseClass)
GetDisplayDescriptionReturns the localized display description for the recycle block type.
(Overrides BaseClassGetDisplayDescription)
GetDisplayNameReturns the localized display name for the recycle block type.
(Overrides BaseClassGetDisplayName)
GetDynamicContents
(Inherited from BaseClass)
GetDynamicProperty
(Inherited from BaseClass)
GetDynamicPropertyUnitType
(Inherited from BaseClass)
GetDynamicResidenceTime
(Inherited from BaseClass)
GetDynamicVolume
(Inherited from BaseClass)
GetEditingForm
(Inherited from BaseClass)
GetEnergyBalanceResidual
(Inherited from BaseClass)
GetEnergyConsumption
(Inherited from BaseClass)
GetExtraPropertyValue
(Inherited from BaseClass)
GetFlowsheet
(Inherited from BaseClass)
GetIconBitmapReturns the icon bitmap resource for the recycle block.
(Overrides BaseClassGetIconBitmap)
GetIconBitmapBytesReturns the raw bytes of the recycle block icon image resource.
(Overrides BaseClassGetIconBitmapBytes)
GetMassBalanceResidual
(Inherited from BaseClass)
GetPowerGeneratedOrConsumed
(Inherited from BaseClass)
GetPreferredGraphicObjectHeight
(Inherited from BaseClass)
GetPreferredGraphicObjectWidth
(Inherited from BaseClass)
GetProperties Returns the list of property identifiers available for this recycle block filtered by property type.
(Overrides BaseClassGetProperties(PropertyType))
GetProperties2
(Inherited from BaseClass)
GetPropertyDescription
(Inherited from BaseClass)
GetPropertyUnit Returns the unit string for the specified property in the given unit system.
(Overrides BaseClassGetPropertyUnit(String, IUnitsOfMeasure))
GetPropertyUnits2
(Inherited from BaseClass)
GetPropertyValue Returns the value of the specified property converted to the given unit system.
(Overrides BaseClassGetPropertyValue(String, IUnitsOfMeasure))
GetPropertyValue2
(Inherited from BaseClass)
GetReport
(Inherited from BaseClass)
GetStructuredReport
(Inherited from BaseClass)
GetVersion
(Inherited from BaseClass)
IsDynamicProperty
(Inherited from BaseClass)
LoadData Restores the recycle block state from a list of XML elements.
(Overrides BaseClassLoadData(ListXElement))
MAX Returns the maximum value from an array-like object.
ObjectCopy
(Inherited from BaseClass)
PerformPostCalcValidation
(Inherited from BaseClass)
RemoveDynamicProperty
(Inherited from BaseClass)
RemoveExtraProperty
(Inherited from BaseClass)
RunDynamicModel Executes one dynamic-mode step by directly assigning the inlet stream properties to the outlet stream.
(Overrides BaseClassRunDynamicModel)
SaveData Serializes the recycle block state to a list of XML elements for persistence.
(Overrides BaseClassSaveData)
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)
SetOutletStreamProperties Copies the converged inlet stream properties (temperature, pressure, mass flow, enthalpy, composition) to the connected outlet stream so that the recycle loop is closed with the last iterated values.
SetPropertyPackageInstance
(Inherited from BaseClass)
SetPropertyValue Sets the value of the specified property after converting from the given unit system to SI.
(Overrides BaseClassSetPropertyValue(String, Object, IUnitsOfMeasure))
SetPropertyValue2
(Inherited from BaseClass)
Solve
(Inherited from BaseClass)
StoreDebugReport
(Inherited from BaseClass)
ToString
(Inherited from BaseClass)
TransferAdditionalSolidData
(Inherited from BaseClass)
UpdateDynamicsEditForm
(Inherited from BaseClass)
UpdateEditFormRefreshes the displayed data in the editing form if it is currently open.
(Overrides BaseClassUpdateEditForm)
UpdateExtraPropertiesEditForm
(Inherited from BaseClass)
Validate Validates the object, checking its connections and other parameters.
(Inherited from BaseClass)

Fields

Extension Methods

GetEnumNames
(Defined by General)
IsValidDouble
(Defined by General)

See Also