Flowsheet2 Class

Definition

Namespace: DWSIM.Automation
Assembly: DWSIM.Automation (in DWSIM.Automation.dll) Version: 10.0.0.0
[GuidAttribute("474a8e52-0b3e-48cb-a3bb-aae60f843578")]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[ComVisibleAttribute(true)]
public class Flowsheet2 : FlowsheetBase
Inheritance
Object    FlowsheetBase    Flowsheet2

Constructors

Properties

AvailableCompounds
(Inherited from FlowsheetBase)
AvailableExternalUnitOperations
(Inherited from FlowsheetBase)
AvailablePropertyPackagesGets or sets the dictionary of property packages available for selection in this flowsheet instance.
(Inherited from FlowsheetBase)
AvailableSimulationObjects
(Inherited from FlowsheetBase)
AvailableSystemsOfUnitsGets or sets the list of unit-of-measure systems available for this flowsheet.
(Inherited from FlowsheetBase)
CalculationQueueGets or sets the FIFO queue of pending calculation requests consumed by the flowsheet solver.
(Inherited from FlowsheetBase)
Charts
(Inherited from FlowsheetBase)
DynamicModeGets or sets a value indicating whether the flowsheet is operating in dynamic simulation mode.
(Inherited from FlowsheetBase)
DynamicsManagerGets or sets the dynamics manager responsible for dynamic simulation scheduling and event handling.
(Inherited from FlowsheetBase)
ErrorMessage
(Inherited from FlowsheetBase)
ErrorMessagesGets or sets the list of exceptions raised during the last calculation pass.
(Inherited from FlowsheetBase)
ExternalSolvers
(Inherited from FlowsheetBase)
ExternalUnitOperationsGets or sets the dictionary of external (plugin-defined) unit operations registered with this flowsheet.
(Inherited from FlowsheetBase)
ExtraPropertiesGets or sets a dynamic property bag for attaching arbitrary extra data to the flowsheet at runtime.
(Inherited from FlowsheetBase)
FileDatabaseProvider
(Inherited from FlowsheetBase)
FilePathGets or sets the full file path of the simulation file on disk.
(Inherited from FlowsheetBase)
FlowsheetOptionsGets the flowsheet configuration options (units, compounds, property packages, solver settings).
(Inherited from FlowsheetBase)
GHGEmissionCompositionsGets or sets the dictionary of GHG emission compositions associated with streams in this flowsheet.
(Inherited from FlowsheetBase)
GraphicObjectsGets or sets the dictionary of all graphic objects currently placed on the flowsheet surface, keyed by unique ID.
(Inherited from FlowsheetBase)
InternalUnitOperationsGets or sets the dictionary of internal unit operations registered with this flowsheet.
(Inherited from FlowsheetBase)
LastSuccessfulSolutionState
(Inherited from FlowsheetBase)
MasterFlowsheet
(Inherited from FlowsheetBase)
MasterUnitOp
(Inherited from FlowsheetBase)
Message
(Inherited from FlowsheetBase)
MessagesLogGets or sets the list of informational and diagnostic messages generated during simulation.
(Inherited from FlowsheetBase)
MobileCompatibilityMode
(Inherited from FlowsheetBase)
Options
(Inherited from FlowsheetBase)
ParticleSizeDistributions
(Inherited from FlowsheetBase)
PropertyPackagesGets or sets the dictionary of property packages attached to this flowsheet, keyed by unique ID.
(Inherited from FlowsheetBase)
PythonPreprocessor
(Inherited from FlowsheetBase)
ReactionsGets or sets the dictionary of reactions defined for this flowsheet, keyed by unique ID.
(Inherited from FlowsheetBase)
ReactionSetsGets or sets the dictionary of reaction sets (groups of reactions) defined for this flowsheet, keyed by name.
(Inherited from FlowsheetBase)
RedirectMessagesGets or sets a value indicating whether flowsheet messages should be redirected to an external listener instead of the UI log.
(Inherited from FlowsheetBase)
Results
(Inherited from FlowsheetBase)
ScriptKeywordsFGets or sets custom script keyword definitions for flowsheet-level scripts.
(Inherited from FlowsheetBase)
ScriptKeywordsUGets or sets custom script keyword definitions for user-defined unit operation scripts.
(Inherited from FlowsheetBase)
Scripts
(Inherited from FlowsheetBase)
SelectedCompoundsGets or sets the ordered dictionary of compounds currently selected for this flowsheet, sorted according to the configured ordering mode.
(Inherited from FlowsheetBase)
SimulationObjectsGets or sets the dictionary of all simulation objects in this flowsheet, keyed by unique ID.
(Inherited from FlowsheetBase)
Solved
(Inherited from FlowsheetBase)
StoredSolutions
(Inherited from FlowsheetBase)
SupressDataLoadingGets or sets a value indicating whether data loading is suppressed during deserialization.
(Inherited from FlowsheetBase)
SupressMessages
(Overrides FlowsheetBaseSupressMessages)
UtilityPlugins
(Inherited from FlowsheetBase)
WatchItems
(Inherited from FlowsheetBase)
WeatherProviderGets or sets the weather data provider used for ambient condition lookups.
(Inherited from FlowsheetBase)

Methods

AddCompound
(Inherited from FlowsheetBase)
AddCompoundsToMaterialStream Adds all compounds currently selected in the flowsheet to all phases of the given material stream, then equalises the overall composition and recalculates mass fractions.
(Inherited from FlowsheetBase)
AddConnectedObjects Automatically creates and connects material/energy streams around the specified object according to the given scheme.
(Inherited from FlowsheetBase)
AddDefaultProperties
(Inherited from FlowsheetBase)
AddExternalUOs
(Inherited from FlowsheetBase)
AddFlowsheetObjectCreates a simulation object by type name at the default position (50, 50) and assigns the given object name.
(Inherited from FlowsheetBase)
AddGraphicObjectAdds a graphic object to both the drawing surface and the GraphicObjects dictionary.
(Inherited from FlowsheetBase)
AddGraphicObjects
(Inherited from FlowsheetBase)
AddObject(ObjectType, Int32, Int32, String)Creates a simulation object of the specified type, places its graphic on the surface, and returns the new object.
(Inherited from FlowsheetBase)
AddObject(ObjectType, Int32, Int32, String, String)Creates a simulation object with an explicit ID, places its graphic on the surface, and returns the new object.
(Inherited from FlowsheetBase)
AddObject(String, Int32, Int32, String, String, Boolean) Creates a simulation object identified by its human-readable type name and places it on the flowsheet surface.
(Inherited from FlowsheetBase)
AddObjectToSurface Low-level method that instantiates the graphic and simulation objects for a given ObjectType, adds them to the drawing surface and the SimulationObjects dictionary, and returns the new object's ID.
(Inherited from FlowsheetBase)
AddPropertyPackageRegisters a property package with the flowsheet, assigning a unique ID and tag if not already set.
(Inherited from FlowsheetBase)
AddReaction
(Inherited from FlowsheetBase)
AddReactionSet
(Inherited from FlowsheetBase)
AddReactionToSet
(Inherited from FlowsheetBase)
AddSimulationObjectAdds a simulation object directly to the SimulationObjects dictionary without creating a graphic counterpart.
(Inherited from FlowsheetBase)
AddSimulationObjects
(Inherited from FlowsheetBase)
AddTables
(Inherited from FlowsheetBase)
AddUndoRedoAction
(Inherited from FlowsheetBase)
AutoLayout
(Inherited from FlowsheetBase)
ChangeCalculationOrder
(Inherited from FlowsheetBase)
CheckStatusChecks whether the flowsheet solver should pause or abort the current calculation, e.g. on user request.
(Inherited from FlowsheetBase)
CheckTag
(Inherited from FlowsheetBase)
ClearLog
(Inherited from FlowsheetBase)
Clone
(Overrides FlowsheetBaseClone)
CloseOpenEditForms
(Overrides FlowsheetBaseCloseOpenEditForms)
Connect Connects two simulation objects. If both are unit operations, an intermediate material stream is created automatically and positioned between them.
(Inherited from FlowsheetBase)
ConnectObject
(Inherited from FlowsheetBase)
ConnectObjectsConnects two graphic objects via their connector ports and registers an undo snapshot.
(Inherited from FlowsheetBase)
CopyObjects
(Inherited from FlowsheetBase)
CreateAndAddPropertyPackage
(Inherited from FlowsheetBase)
CreateConversionReaction Creates a conversion reaction
(Inherited from FlowsheetBase)
CreateEquilibriumReaction Creates an equilibrium reaction
(Inherited from FlowsheetBase)
CreateHetCatReaction creates a heterogeneous catalytic reaction
(Inherited from FlowsheetBase)
CreateKineticReaction creates a kinetic reaction
(Inherited from FlowsheetBase)
CreatePropertyPackage
(Inherited from FlowsheetBase)
CreateReactionSet
(Inherited from FlowsheetBase)
CutObjects
(Inherited from FlowsheetBase)
DeleteObject
(Inherited from FlowsheetBase)
DeleteSelectedObject Removes a graphic object and its associated simulation object from the flowsheet, automatically disconnecting all attached connectors and cleaning up spec/adjust references.
(Inherited from FlowsheetBase)
DisconnectDisconnects two previously connected simulation objects via their graphic representations.
(Inherited from FlowsheetBase)
DisconnectObjectsDisconnects two previously connected graphic objects and registers an undo snapshot.
(Inherited from FlowsheetBase)
DisplayBrowserWindow
(Inherited from FlowsheetBase)
DisplayDockableBrowserWindow
(Inherited from FlowsheetBase)
DisplayForm
(Overrides FlowsheetBaseDisplayForm(Object))
GenerateReport 
GetApplicationObject
(Overrides FlowsheetBaseGetApplicationObject)
GetAvailableFlowsheetObjectTypeNamesReturns a sorted array of all built-in flowsheet object type names that can be passed to AddObject(String, Int32, Int32, String, String, Boolean).
(Inherited from FlowsheetBase)
GetAvailablePropertyPackages
(Inherited from FlowsheetBase)
GetCompound
(Inherited from FlowsheetBase)
GetDockPanel
(Inherited from FlowsheetBase)
GetFlowsheetBag
(Inherited from FlowsheetBase)
GetFlowsheetGraphicObjectReturns the graphic object whose user-visible tag matches the specified value.
(Inherited from FlowsheetBase)
GetFlowsheetSimulationObjectReturns the simulation object whose user-visible tag matches the specified value.
(Inherited from FlowsheetBase)
GetFlowsheetSurfaceHeight
(Inherited from FlowsheetBase)
GetFlowsheetSurfaceWidth
(Inherited from FlowsheetBase)
GetNewInstance
(Overrides FlowsheetBaseGetNewInstance)
GetObject
(Inherited from FlowsheetBase)
GetProcessData
(Inherited from FlowsheetBase)
GetPropertyPackage
(Inherited from FlowsheetBase)
GetPropertyPackages
(Inherited from FlowsheetBase)
GetReaction
(Inherited from FlowsheetBase)
GetReactionSet
(Inherited from FlowsheetBase)
GetResultIDs
(Inherited from FlowsheetBase)
GetResultUnits
(Inherited from FlowsheetBase)
GetResultValue
(Inherited from FlowsheetBase)
GetScriptText
(Inherited from FlowsheetBase)
GetSelectedFlowsheetSimulationObject Returns the currently selected simulation object, or searches by tag if one is provided.
(Inherited from FlowsheetBase)
GetSimulationFileDirectory
(Inherited from FlowsheetBase)
GetSimulationFilePath
(Inherited from FlowsheetBase)
GetSnapshot
(Inherited from FlowsheetBase)
GetSpreadsheetData
(Inherited from FlowsheetBase)
GetSpreadsheetDataFromRange 
GetSpreadsheetFormat
(Inherited from FlowsheetBase)
GetSpreadsheetFormatFromRange 
GetSpreadsheetObject
(Inherited from FlowsheetBase)
GetSurfaceReturns the underlying GraphicsSurface used for drawing and hit-testing flowsheet objects.
(Inherited from FlowsheetBase)
GetSurfaceControlReturns the UI control that hosts the drawing surface, or Nothing in non-UI contexts.
(Inherited from FlowsheetBase)
GetTempFileName 
GetTranslatedString(String) Looks up a localised string by key, searching flowsheet string resources first, then property name resources. Falls back to the original key if no translation is found.
(Inherited from FlowsheetBase)
GetTranslatedString(String, String)Overload that ignores locale and delegates to GetTranslatedString(String).
(Inherited from FlowsheetBase)
GetUtility
(Inherited from FlowsheetBase)
Init 
Initialize
(Inherited from FlowsheetBase)
LoadExtenders
(Inherited from FlowsheetBase)
LoadFromMXML
(Inherited from FlowsheetBase)
LoadFromXML
(Inherited from FlowsheetBase)
LoadProcessData
(Inherited from FlowsheetBase)
LoadZippedXML
(Inherited from FlowsheetBase)
NaturalLayout
(Inherited from FlowsheetBase)
PasteObjects
(Inherited from FlowsheetBase)
ProcessRedo
(Inherited from FlowsheetBase)
ProcessScripts
(Inherited from FlowsheetBase)
ProcessUndo
(Inherited from FlowsheetBase)
RefreshInterface
(Inherited from FlowsheetBase)
RegisterSnapshot
(Inherited from FlowsheetBase)
ReleaseResources
(Inherited from FlowsheetBase)
RequestCalculation Requests a flowsheet calculation, optionally scoped to a single changed object. When sender is provided the object is queued and the solver runs asynchronously.
(Inherited from FlowsheetBase)
RequestCalculation2Requests a full flowsheet calculation, optionally blocking the calling thread until it completes.
(Inherited from FlowsheetBase)
RequestCalculation3Requests a calculation scoped to a single object, or a full solve when Obj is Nothing.
(Inherited from FlowsheetBase)
RequestCalculationAndWaitRuns a full flowsheet calculation synchronously and returns any exceptions raised during the solve.
(Inherited from FlowsheetBase)
RequestSave
(Inherited from FlowsheetBase)
RequestSaveWithDirectory
(Inherited from FlowsheetBase)
RequestSaveWithPath
(Inherited from FlowsheetBase)
Reset
(Inherited from FlowsheetBase)
ResetCalculationStatusMarks all simulation objects as dirty and uncalculated, forcing a full recalculation on the next solve request.
(Inherited from FlowsheetBase)
RestoreLastSuccessfulSolutionState
(Inherited from FlowsheetBase)
RestoreSnapshot
(Inherited from FlowsheetBase)
RunCodeOnUIThread
(Overrides FlowsheetBaseRunCodeOnUIThread(Action))
RunCodeOnUIThread2
(Inherited from FlowsheetBase)
RunScript
(Inherited from FlowsheetBase)
RunScriptAsync
(Inherited from FlowsheetBase)
SaveCurrentStateAsLastSuccessfulSolution
(Inherited from FlowsheetBase)
SavePFDScreenshotToPNG
(Inherited from FlowsheetBase)
SaveSimulation 
SaveToMXML
(Inherited from FlowsheetBase)
SaveToXML
(Inherited from FlowsheetBase)
SetCustomSpreadsheetFunctions 
SetDirtyStatus
(Inherited from FlowsheetBase)
SetMessageListener
(Overrides FlowsheetBaseSetMessageListener(ActionString, IFlowsheetMessageType))
SetPropertyResourcesManagerSets the resource manager used for resolving localised property names in this flowsheet.
(Inherited from FlowsheetBase)
SetResourcesManagerSets the resource manager used for resolving localised strings in this flowsheet.
(Inherited from FlowsheetBase)
SetTranslateTextExternalFunction
(Inherited from FlowsheetBase)
ShowDebugInfo
(Overrides FlowsheetBaseShowDebugInfo(String, Int32))
ShowMessage
(Overrides FlowsheetBaseShowMessage(String, IFlowsheetMessageType, String))
SolveRequests a full flowsheet calculation using the configured solver mode.
(Inherited from FlowsheetBase)
SolveFlowsheet 
SolveFlowsheet2 
ToggleFlowsheetAnimation
(Inherited from FlowsheetBase)
TriggerNewDataLoadedEvent Raises the new-data-loaded event. Override in derived classes to update the UI after data changes.
(Inherited from FlowsheetBase)
UnloadExtenders
(Inherited from FlowsheetBase)
UpdateInformation
(Overrides FlowsheetBaseUpdateInformation)
UpdateInterface
(Overrides FlowsheetBaseUpdateInterface)
UpdateMassAndEnergyBalance
(Inherited from FlowsheetBase)
UpdateOpenEditForms
(Overrides FlowsheetBaseUpdateOpenEditForms)
UpdateSpreadsheet
(Inherited from FlowsheetBase)
WriteMessage 
WriteSpreadsheetVariables
(Inherited from FlowsheetBase)

Events

FlowsheetLoadedFromXMLRaised after the flowsheet state has been successfully deserialized from XML.
(Inherited from FlowsheetBase)
FlowsheetLoadingFromXMLRaised just before the flowsheet state is deserialized from XML.
(Inherited from FlowsheetBase)
FlowsheetSavedToXMLRaised after the flowsheet state has been successfully serialized to XML.
(Inherited from FlowsheetBase)
FlowsheetSavingToXMLRaised just before the flowsheet state is serialized to XML.
(Inherited from FlowsheetBase)

Fields

_translatefunctionOptional translation function used to localize strings returned by GetTranslatedString(String).
(Inherited from FlowsheetBase)
GetSpreadsheetObjectFuncFunction that returns the active spreadsheet object for scripting access.
(Inherited from FlowsheetBase)
listeningaction 
LoadSpreadsheetDataDelegate invoked to load spreadsheet data from the simulation XML document.
(Inherited from FlowsheetBase)
OptimizationCollectionCollection of optimization cases defined for this flowsheet.
(Inherited from FlowsheetBase)
RedoStackStack of serialized snapshots used to support redo operations.
(Inherited from FlowsheetBase)
RetrieveSpreadsheetDataFunction that retrieves cell values from the spreadsheet by range address.
(Inherited from FlowsheetBase)
RetrieveSpreadsheetFormatFunction that retrieves cell formatting information from the spreadsheet by range address.
(Inherited from FlowsheetBase)
SaveSpreadsheetDataDelegate invoked to load spreadsheet data from the simulation XML document.
(Inherited from FlowsheetBase)
SensAnalysisCollectionCollection of sensitivity analysis cases defined for this flowsheet.
(Inherited from FlowsheetBase)
Spreadsheet 
UndoStackStack of serialized snapshots used to support undo operations.
(Inherited from FlowsheetBase)
updateUIaction 

Extension Methods

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

See Also