Form Flowsheet Class
The main MDI child window for a DWSIM simulation. Acts as the WinForms UI host for a complete
flowsheet: it owns the drawing surface, log panel, spreadsheet, dynamics manager, scripts, charts,
and all docked tool windows. It also implements the CAPE-OPEN PME/COSE interfaces so that
external CAPE-OPEN unit operations can interact with the running simulation.
Definition
Namespace: DWSIM
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
C#
[SerializableAttribute]
[ClassInterfaceAttribute(ClassInterfaceType.AutoDual)]
[GuidAttribute("0294AA84-9269-46CE-A854-BEF64539287B")]
public class FormFlowsheet : Form,
ICapeCOSEUtilities, ICapeMaterialTemplateSystem, ICapeDiagnostic, ICapeFlowsheetMonitoring, ICapeSimulationContext,
ICapeIdentification, IFlowsheet, IFlowsheetBag, IFlowsheetGUI, IFlowsheetCalculationQueueVB
<SerializableAttribute>
<ClassInterfaceAttribute(ClassInterfaceType.AutoDual)>
<GuidAttribute("0294AA84-9269-46CE-A854-BEF64539287B")>
Public Class FormFlowsheet
Inherits Form
Implements ICapeCOSEUtilities, ICapeMaterialTemplateSystem, ICapeDiagnostic, ICapeFlowsheetMonitoring,
ICapeSimulationContext, ICapeIdentification, IFlowsheet, IFlowsheetBag, IFlowsheetGUI,
IFlowsheetCalculationQueue- Inheritance
- Object MarshalByRefObject Component Control ScrollableControl ContainerControl Form FormFlowsheet
Constructors
Properties
| AiLabel1 | |
| AnaliseDeSensibilidadeToolStripMenuItem | |
| AvailableCompounds | Gets or sets the master dictionary of all compounds registered in the host application, keyed by name. |
| AvailableExternalUnitOperations | Gets or sets the dictionary of external (plug-in) unit operation types available in the host application. |
| AvailablePropertyPackages | Gets or sets the dictionary of property packages registered in the host application, keyed by display name. |
| AvailableSimulationObjects | Gets or sets the dictionary of all built-in simulation object prototypes available in the host application. |
| AvailableSystemsOfUnits | Gets or sets the list of unit systems available to the host application. |
| bgCalc | |
| BGLoadComp | |
| BidirectionalSolver | Gets or sets an optional bidirectional (simultaneous forward/backward) flowsheet solver. |
| CalculationQueue | Gets or sets the FIFO queue of pending calculation requests consumed by the flowsheet solver. |
| CAPEOPENWarningTimer | |
| CaracterizacaoDePetroleosCurvasDeDestilacaoToolStripMenuItem | |
| CaracterizacaoDePetroleosFracoesC7ToolStripMenuItem | |
| Charts | Gets or sets the dictionary of chart definitions embedded in this flowsheet, backed by ChartCollection. |
| CloseToolStripMenuItem | |
| ComponentDescription | |
| ComponentName | |
| CompoundCreatorWizardTSMI | |
| CompoundsArray | Gets or sets a snapshot array of the selected compounds in the flowsheet bag. |
| DataGridView1 | |
| dckPanel | |
| DoNotOpenSimulationWizard | Gets or sets a value indicating whether the new-simulation wizard should be suppressed on first show. |
| DynamicMode | Gets or sets a value indicating whether the flowsheet is operating in dynamic simulation mode. |
| DynamicsManager | Gets or sets the dynamics manager responsible for dynamic simulation scheduling and scenario management. |
| ErrorMessage | Gets or sets the error message from the last failed solve pass. |
| ErrorMessages | Gets or sets the list of exceptions raised during the last calculation pass. |
| ExternalFlowsheetSolver | Gets or sets an optional external flowsheet solver that overrides the default DWSIM solver. |
| ExternalSolvers | Gets or sets the collection of external solver plug-ins registered with this flowsheet, keyed by unique ID. |
| ExtraProperties | Gets or sets a dynamic property bag for attaching arbitrary extra data to the flowsheet at runtime. |
| FileDatabaseProvider | Gets or sets the file-based database provider for binary asset storage (e.g. embedded images). |
| FilePath | Gets or sets the full file path of the simulation file saved to or loaded from disk. |
| FileTSMI | |
| FileVersion | Gets or sets the file format version number read from or written to the simulation file. |
| FlowsheetOptions | Returns the flowsheet configuration options (compounds, property packages, units, solver settings, etc.). |
| GerarRelatorioToolStripMenuItem | |
| GHGEmissionCompositions | Gets or sets the dictionary of GHG emission composition profiles used for flowsheet-level emissions accounting. |
| GraphicObjects | Gets the dictionary of all graphic objects on the flowsheet drawing surface, keyed by unique name. |
| GraphicObjectsArray | Gets or sets a snapshot array of all graphic objects in the flowsheet bag. |
| LastSuccessfulSolutionState | Gets or sets a serialised string representing the last successfully converged solution state, used for warm-starting. |
| LoaderExceptions | Accumulates exceptions raised while loading a simulation file, for display after load completes. |
| MasterFlowsheet | Gets or sets the parent flowsheet when this simulation is embedded as a sub-flowsheet unit operation. |
| MasterUnitOp | Gets or sets the unit operation object in the parent flowsheet that owns this sub-flowsheet. |
| MaterialTemplates | |
| MenuStrip1 | |
| Message | Gets or sets the most recent message text written to the log panel. |
| MessagePumpTimer | |
| MessagesLog | Gets or sets the list of informational and diagnostic messages generated during simulation. |
| MobileCompatibilityMode | Gets or sets a value indicating whether the flowsheet operates in mobile compatibility mode (simplified rendering). |
| MultivariateOptimizerToolStripMenuItem | |
| NamedValueList | |
| OptimizationTSMI | |
| Options | |
| ParticleSizeDistributions | Gets or sets the list of solid particle-size distribution profiles defined for this flowsheet. |
| PluginsTSMI | |
| PropertyPackages | Gets or sets the dictionary of property packages assigned to this flowsheet, keyed by unique ID. |
| PropertyPackagesArray | Gets or sets a snapshot array of the property packages in the flowsheet bag. |
| PythonPreprocessor | Gets or sets an optional action invoked to pre-process Python script text before execution. |
| Reactions | Gets the dictionary of chemical reactions defined for this flowsheet, keyed by unique ID. |
| ReactionsArray | Gets or sets a snapshot array of the reactions in the flowsheet bag. |
| ReactionSets | Gets the dictionary of reaction sets grouping individual reactions for use in reactor unit operations, keyed by unique ID. |
| ReactionSetsArray | Gets or sets a snapshot array of the reaction sets in the flowsheet bag. |
| RedirectMessages | Gets or sets a value indicating whether outgoing log messages are redirected to an external listener. |
| Results | Gets or sets the aggregate results (mass/energy balance, GHG emissions, CAPEX/OPEX) for the last solved flowsheet. |
| ResultsTSMI | |
| S365FileId | Gets or sets the Simulate 365 cloud file identifier for this simulation. |
| Scripts | Gets or sets the collection of scripts attached to this flowsheet, backed by ScriptCollection. |
| SelectedCompounds | Gets or sets the dictionary of compounds selected for this simulation, ordered according to CompoundOrderingMode. |
| ShowTSMI | |
| SimulationObjects | Gets the dictionary of all simulation objects (unit operations, streams, etc.) in the flowsheet, keyed by unique name. |
| SimulationObjectsArray | Gets or sets a snapshot array of all simulation objects in the flowsheet bag. |
| SolutionStatus | |
| Solved | Gets or sets a value indicating whether the last solve pass completed without errors. |
| StoredSolutions | Gets or sets stored solution snapshots keyed by user-defined name, used for solution restore/compare. |
| SupressMessages | Gets or sets a value indicating whether new log messages should be silently discarded. |
| ToolStrip1 | |
| ToolStripMenuItem1 | |
| ToolStripMenuItem2 | |
| ToolStripMenuItem3 | |
| ToolsTSMI | |
| tsbAtivar | |
| tsmiConfigSimulation | |
| TSTable | |
| UtilityPlugins | Gets the dictionary of utility plug-ins registered with the host application, keyed by unique ID. |
| ValStatus | |
| WatchItems | Gets or sets the collection of watch items monitored in the Watch Panel. |
| WeatherProvider | Gets or sets the weather data provider used for ambient condition lookups. |
Methods
| AddComponentsRows | Populates all phases of the given material stream with the compounds currently selected in the flowsheet, then equalises the overall composition and recalculates mass fractions. |
| AddCompound | Adds the named compound to the flowsheet's selected-compound list and returns it; returns the existing entry if already present. |
| AddFlowsheetObject | Adds a simulation object of the named type to the flowsheet at the default position (50, 50) and returns it. |
| AddGraphicObject | Adds a graphic object to both the drawing surface and the graphic object collection. |
| AddObject(ObjectType, Int32, Int32, String) | Adds a new simulation object of the specified type at the given surface coordinates and returns the created object. |
| AddObject(ObjectType, Int32, Int32, String, String) | Adds a new simulation object with an explicit unique ID at the given surface coordinates and returns the created object. |
| AddPropertyPackage | Registers a property package with this flowsheet. |
| AddReaction | Registers an existing reaction with this flowsheet's reaction dictionary. |
| AddReactionSet | Registers an existing reaction set with this flowsheet's reaction-set dictionary. |
| AddReactionToSet | Adds a reaction reference to an existing reaction set. |
| AddSimulationObject | Adds a simulation object to the flowsheet object collection. |
| AddUndoRedoAction | Captures a full snapshot of the current flowsheet state and pushes it onto the undo stack; clears the redo stack. |
| AddUnitSystem | Registers a custom unit system with the application and adds it to the units selection list. Shows an error if a system with the same name already exists. |
| AdicionarUtilitárioToolStripMenuItem_Click | |
| AnaliseDeSensibilidadeToolStripMenuItem_Click | |
| AssistenteDeCriacaoDeSubstanciasToolStripMenuItem_Click | |
| AutoLayout | Applies the default automatic layout algorithm to all graphic objects on the flowsheet surface. |
| BlocoDeSimulacaoToolStripMenuItem_Click | |
| BotaoToolStripMenuItem_Click | |
| btnAIInsightsShowDetails_Click | |
| btnDismissPanelCOWarning_Click | |
| btnRestoreLastSolution_Click | |
| btnTroubleshoot_Click | |
| Button1_Click | |
| Button1_Click_1 | |
| Button2_Click | |
| Button2_Click_1 | |
| CalcReactionStoichiometry | |
| CAPEOPENFlowsheetMonitoringObjectsMOsToolStripMenuItem_MouseHover | |
| CAPEOPENWarningTimer_Tick | |
| CaracterizacaoDePetroleosCurvasDeDestilacaoToolStripMenuItem_Click | |
| CaracterizacaoDePetroleosFracoesC7ToolStripMenuItem_Click | |
| ChangeCalculationOrder | Opens the custom calculation order editor and returns the user-defined object sequence. |
| ChangeEditMenuStatus | Enables or disables all cut, copy, paste, clone, remove, recalculate, and export edit actions simultaneously. |
| CheckCollections | Ensures that all collections in Collections are initialised, creating empty instances for any that are Nothing. |
| CheckStatus | Refreshes the flowsheet UI and requests a solver status check from FlowsheetSolver. |
| ClearLog | Clears the message pump queue, all log grid rows, and the last-message label. |
| ClearVariables | |
| Clone | Creates a deep copy of this flowsheet by serialising it to a temporary file and reloading it as a new FormFlowsheet instance. |
| CloseOpenEditForms | Closes all open object editor and dynamics editor forms for every simulation object in the flowsheet. |
| COMOClick | |
| Connect | Connects two simulation objects. If both are unit operations (or recycle blocks) a new material stream is automatically inserted between them; otherwise the objects are connected directly. |
| ConnectObject | Draws a connector line between two graphic objects on the flowsheet surface, optionally specifying the connector slot indices. |
| ConnectObjects | Connects two graphic objects and refreshes all open editor forms. |
| ConsoleOutputTSMI_Click | |
| ControlesDoIntegradorToolStripMenuItem_Click | |
| ConvergenceHelperSettingsToolStripMenuItem_Click | |
| CopyObjects | |
| CreateAndAddPropertyPackage | Creates a clone of the named property package prototype, registers it with the flowsheet, and returns it. |
| CreateCOMOList | |
| CreateConversionReaction | Creates and returns a new conversion reaction with the specified parameters but does not add it to the flowsheet. |
| CreateEquilibriumReaction | Creates and returns a new equilibrium reaction with the specified thermodynamic parameters but does not add it to the flowsheet. |
| CreateHetCatReaction | Creates and returns a new heterogeneous-catalytic (Langmuir-Hinshelwood type) reaction but does not add it to the flowsheet. |
| CreateKineticReaction | Creates and returns a new kinetic (rate-based) reaction with Arrhenius or user-defined rate expressions but does not add it to the flowsheet. |
| CreateMaterialTemplate | |
| CreatePluginsList | |
| CreatePropertyPackage | Creates a clone of the named property package prototype and sets its tag; does not register it with the flowsheet. |
| CreateReactionSet | Creates and returns a new reaction set with the specified name and description but does not add it to the flowsheet. |
| CriadorDeComponentesSolidosToolStripMenuItem_Click | |
| CriarPseudocomponentesEmBateladaToolStripMenuItem_Click | |
| CutObjects | |
| DeleteObject | Finds the flowsheet graphic object with the given tag and delegates to DeleteSelectedObject(Object, EventArgs, GraphicObject, Boolean, Boolean). |
| DeleteSelectedObject | Removes the specified graphic object and its corresponding simulation object from the flowsheet. Disconnects all attached connectors, updates Adjust/Spec/PID cross-references, and optionally prompts the user for confirmation. |
| DeleteSelectedObject1 | Interface adapter that delegates to DeleteSelectedObject(Object, EventArgs, GraphicObject, Boolean, Boolean) for DeleteSelectedObject(Object, EventArgs, IGraphicObject, Boolean, Boolean). |
| DisableUndoRedo | |
| Disconnect | Disconnects two simulation objects by removing the connector between their graphic representations. |
| DisconnectObject | Removes the connector line that links gObjFrom to gObjTo (including the energy connector) and updates the associated connection points. |
| DisconnectObjects | Disconnects the connection between two graphic objects and refreshes all open editor forms. |
| DisplayBrowserWindow | Opens a floating browser window and navigates it to the specified URL. |
| DisplayDockableBrowserWindow | Opens a dockable browser panel and navigates it to the specified URL. |
| DisplayForm | Shows a form as a dock panel content or a regular child window, adjusting panel dimensions based on the requested dock state. |
| DisplayHTML | Displays an HTML content panel inside the flowsheet dock area. |
| Dispose | (Overrides FormDispose(Boolean)) |
| EnableUndoRedo | |
| ExcelReportsToolStripMenuItem_Click | |
| ExibirRelatoriosDosObjetosCAPEOPENToolStripMenuItem_Click | |
| FecharSimulacaoAtualToolStripMenuItem_Click | |
| FerramentaParaSintoniaDeControladoresPIDToolStripMenuItem_Click | |
| FiguraToolStripMenuItem_Click | Handles the Insert → Image menu click by opening a file picker and embedding the selected bitmap on the flowsheet surface. |
| FixOpenEditFormsReferences | Resets simulation-object references in all open ObjectEditorForm dock panels, e.g. after a snapshot restore. |
| FormChild_Activated | |
| FormChild_Load | |
| FormChild_Shown | |
| FormChild2_FormClosed | |
| FormChild2_FormClosing | |
| FormFlowsheet_HelpRequested | |
| FT | Formats a property display string as "prop (unit)". |
| GerarRelatorioToolStripMenuItem_Click | |
| GerenciadorDeAmostrasDePetroleoToolStripMenuItem_Click | |
| GerenciadorDoModoDinâmicoToolStripMenuItem_Click | |
| GetApplicationObject | Returns the host application object (the VB My.Application instance). |
| GetAvailableFlowsheetObjectTypeNames | Returns a sorted array of all built-in simulation object type display names that can be added to a flowsheet. |
| GetAvailablePropertyPackages | Returns a list of display names for all property packages registered in the host application. |
| GetCompound | Returns the compound constant-properties record with the specified name from the global compound database. |
| GetDockPanel | Returns the DockPanel that manages all docked child panels within this flowsheet window. |
| GetFlowsheetBag | Returns a lightweight IFlowsheetBag snapshot of the current simulation object and compound collections. |
| GetFlowsheetGraphicObject | Returns the graphic object on the flowsheet surface whose tag matches the specified value (case-insensitive), excluding connector lines. |
| GetFlowsheetSimulationObject | Returns the simulation object whose graphic tag matches the specified value. |
| GetFlowsheetSimulationObject1 | Interface adapter that delegates to GetFlowsheetSimulationObject(String) for GetFlowsheetSimulationObject(String). |
| GetFlowsheetSurfaceHeight | Returns the pixel height of the drawing surface panel. |
| GetFlowsheetSurfaceWidth | Returns the pixel width of the drawing surface panel. |
| GetNewInstance | Creates a blank FormFlowsheet instance sharing the same visible-properties map, ready to host a new simulation. |
| GetObject | Returns the simulation object with the specified tag, or Nothing if not found. |
| GetProcessData | Returns a list of XElement objects, one per simulation object, containing that object's serialised data. |
| GetPropertyPackage | Returns the property package whose tag matches the specified name, or Nothing. |
| GetReaction | Returns the reaction whose name matches the specified value, or Nothing. |
| GetReactionSet | Returns the reaction set whose name matches the specified value, or Nothing. |
| GetResultIDs | Returns the list of result property identifiers available on this flowsheet (mass/energy balance, GHG totals, CAPEX/OPEX, and any custom extras). |
| GetResultUnits | Returns the unit string for the specified result property ID in the current unit system. |
| GetResultValue | Returns the numeric value (converted to the current unit system) for the specified result property ID. |
| GetScriptText | Returns the script text of the script whose title matches the specified name. |
| GetSelectedFlowsheetSimulationObject | Returns the simulation object that is currently selected on the surface, optionally filtered by tag. |
| GetSimulationFileDirectory | Returns the directory portion of the simulation file path. |
| GetSimulationFilePath | Returns the full file path of the simulation file. |
| GetSnapshot | Serialises the requested portion of the flowsheet state to an XDocument suitable for undo/redo or cloning. |
| GetSnapshotObjectID | |
| GetSpreadsheetData | Returns the raw cell values from the specified spreadsheet range (e.g. "A1:C10") as a row-major list of string arrays. |
| GetSpreadsheetFormat | Returns the format codes (e.g. "N2", "P3") of cells in the specified spreadsheet range. |
| GetSpreadsheetObject | Returns the underlying ReoGrid spreadsheet control object for direct programmatic access. |
| GetStreamCollection | |
| GetSurface | Returns the GraphicsSurface that hosts all flowsheet graphic objects. |
| GetSurfaceControl | Returns the FlowsheetSurface_SkiaSharp WinForms control that hosts the drawing surface. |
| GetTranslatedString | Returns the translation of text for the specified locale, falling back to the original string if no translation is found. |
| GetTranslatedString1 | Looks up text sequentially in the localised strings, property names, and tip strings tables, returning the first match or the original text. |
| GetTranslatedString2 | Looks up text in the localised strings and property names tables for the specified locale, returning the first match or the original text. |
| GetUnitOperationCollection | |
| GetUtility | Returns a new IAttachedUtility wrapper for the specified built-in flowsheet utility type. |
| GraficoToolStripMenuItem_Click | |
| Initialize | Initialisation entry point; currently a no-op placeholder for interface compliance. |
| InitializeComponent | |
| InspetorDeSolucoesToolStripMenuItem_Click | |
| InvertSelectionToolStripMenuItem_Click | |
| lblTotalMessages_LinkClicked | |
| LinkLabel1_LinkClicked | |
| LoadExtenders | Iterates over all registered extender collections and adds their menu items, toolbar buttons, or runs their initialisation scripts within this flowsheet window. |
| LoadFromXML | Not supported; use LoadXML(IVirtualFile, ActionInt32, String, Boolean) instead. |
| LoadProcessData | Restores simulation object data from a list of XElements previously produced by GetProcessData. |
| LogMessage | |
| MessagePumpTimer_Tick | |
| ModoDinamicoAtivoToolStripMenuItem_CheckedChanged | |
| ModoDinamicoAtivoToolStripMenuItem_Click | |
| MultivariateOptimizerToolStripMenuItem_Click | |
| NamedValue | |
| NaturalLayout | Applies the solver-order-based natural layout algorithm, spacing objects according to the calculation sequence. |
| PainelDeVariaveisToolStripMenuItem_CheckedChanged | |
| PasteObjects | |
| PluginClick | |
| PopUpMessage | |
| ProcessFlowsheetDiagramToolStripMenuItem_Click | |
| ProcessRedo | Pops the most recent entry from the redo stack, applies it, and pushes the current state onto the undo stack. |
| ProcessScripts | Runs all scripts in ScriptCollection whose event type, object type, and object name match the specified parameters. |
| ProcessTransition | |
| ProcessUndo | Pops the most recent entry from the undo stack, applies it, and pushes the current state onto the redo stack. |
| PropriedadesDasSubstanciasToolStripMenuItem_Click | |
| RectangleToolStripMenuItem_Click | Handles the Insert → Rectangle menu click by adding a new rectangle graphic object to the flowsheet surface. |
| RefreshInterface | Forces a full refresh of the flowsheet surface control on the UI thread and pumps pending Windows messages. |
| RegisterSnapshot | Captures the current flowsheet state as a snapshot of the given scope and pushes it onto the undo stack, then clears the redo stack. |
| ReleaseResources | Disposes all docked child forms, clears simulation object collections, removes event handlers, and releases COM references. Called automatically when the form closes. |
| RequestCalculation | Requests an asynchronous full flowsheet calculation, optionally scoped to a single object, and waits for it to complete. |
| RequestCalculation2 | Requests a full flowsheet calculation, optionally blocking until it completes. |
| RequestCalculation3 | Requests a calculation scoped to a specific simulation object, optionally blocking until it completes. |
| RequestCalculationAndWait | Synchronously solves the flowsheet and returns any exceptions encountered during calculation. |
| RequestFlowsheetCalculation | |
| RequestSave | Requests a save of the current simulation file via the main window's save routine. |
| RequestSaveWithDirectory | Sets the file path to a new location inside the specified directory and saves the simulation. |
| RequestSaveWithPath | Sets the file path to the specified full path and saves the simulation. |
| Reset | Clears all graphic objects, simulation objects, and compound selections, then re-initialises the visible-properties map. |
| ResetCalculationStatus | Marks every simulation object as dirty and not yet calculated, forcing a full recalculation on the next solve pass. |
| RestoreLastSuccessfulSolutionState | |
| Restorelayout | |
| RestoreSnapshot | Restores the flowsheet state from a previously captured snapshot document. Depending on stype the restore may cover object data only, graphic layout only, or the full simulation state. |
| ReturnForm | Returns the dockable panel instance that corresponds to the given type name string. Used as the DeserializeDockContent callback when restoring layout from XML. |
| RunCodeOnUIThread | Executes an action synchronously on the UI thread, using Invoke(Delegate) when called from a background thread. |
| RunCodeOnUIThread2 | Schedules an action to run on the UI thread and returns a Task that completes when the action finishes. |
| SaveCurrentStateAsLastSuccessfulSolution | |
| SavePFDScreenshotToPNG | Renders the current flowsheet surface to a PNG image file at the given path. |
| SaveToXML | Serialises the flowsheet to the specified file path using the main window's XML writer. |
| SaveToXML1 | Serialises the entire flowsheet to an XDocument using the main window's XML writer. |
| SearchSurfaceObjectsByName | Searches the specified drawing surface for a graphic object whose internal name matches exactly. |
| SearchSurfaceObjectsByTag | Searches the specified drawing surface for a graphic object whose user-visible tag matches exactly. |
| SetActive | Marks this flowsheet as the currently active simulation and raises the ActiveSimulationChanged event on the main window. |
| SetDirtyStatus | Marks every simulation object in the flowsheet as needing recalculation. |
| SetDynamicMode | |
| SetMessageListener | Registers an external action that will be invoked for every message written to the log panel. |
| SetTranslateTextExternalFunction | Registers an external text-translation function; currently a no-op placeholder. |
| ShowDebugInfo | Writes debug text at the specified verbosity level to the application console output. |
| ShowMarkdownViewer | |
| ShowMessage | Enqueues a message for display in the log panel and raises the NewMessageSent event. |
| ShowMessageInternal | |
| SimulationConfig_Click | |
| Solve | Requests a full flowsheet solve using SolveFlowsheet2. Honours the dynamic mode guard. |
| SolveFlowsheet2 | Forces a full flowsheet calculation, bypassing the busy guard by resetting state. Delegates to ExternalFlowsheetSolver when one is configured, otherwise uses the built-in solver. Has no effect while the flowsheet is in dynamic mode. |
| SumarioToolStripMenuItem_Click | |
| TimerScripts1_Tick | |
| TimerScripts15_Tick | |
| TimerScripts30_Tick | |
| TimerScripts5_Tick | |
| TimerScripts60_Tick | |
| ToggleFlowsheetAnimation | Toggles the flowsheet surface animation timer on or off. |
| ToggleWeatherPanelVisibilityToolStripMenuItem_Click | |
| ToolStripButton1_Click | |
| ToolStripButton19_Click | Handles the Insert → Master Property Table menu click by adding a new master property table graphic to the flowsheet surface. |
| ToolStripButton2_CheckedChanged | |
| ToolStripButton2_Click | |
| ToolStripButton2_Click_1 | |
| ToolStripButton3_Click | |
| ToolStripButton4_Click | Handles the Insert → Spreadsheet Table menu click by adding a new spreadsheet-linked property table graphic to the flowsheet surface. |
| ToolStripButton6_Click | Handles the Insert → Property Table menu click by adding a new property table graphic to the flowsheet surface. |
| ToolStripMenuItem4_Click | |
| TriggerNewDataLoadedEvent | Raises the NewDataLoaded event on the UI thread and refreshes all dependent panels (editors, information bar, object list, mass/energy balance, form title, and interface). |
| tsbAbortCalc_Click | Signals the solver to stop after its current step by setting CalculatorStopRequested and cancelling the active task token. |
| tsbAISettings_Click | |
| tsbAtivar_CheckedChanged | Handles the Enable/Disable Solver toolbar button checked-state change, toggling CalculatorActivated and updating dependent button states. |
| tsbCalcF_Click | |
| tsbDeleteSolution_Click | |
| tsbDynIntegrator_Click | |
| tsbDynManager_Click | |
| tsbLoadSolution_Click | |
| tsbRedo_Click_1 | |
| tsbSimultAdjustSolver_CheckedChanged | Handles the Simultaneous Adjust Solver toolbar button checked-state change, propagating the setting to FlowsheetOptions. |
| tsbStoreSolution_Click | |
| TSBTexto_Click | Handles the Insert → Text Box menu click by adding a new text graphic object to the flowsheet surface. |
| tsbUndo_Click_1 | |
| tsmiCloneSelected_Click | Handles the Edit → Clone Selected menu click by duplicating every selected simulation object on the surface. |
| tsmiCloseOpenedEditors_Click | |
| tsmiCopy_Click | Handles the Edit → Copy menu click by serialising the selected objects to the clipboard. |
| tsmiCut_Click | Handles the Edit → Cut menu click by copying and then deleting the selected objects. |
| tsmiDetailedReport_Click | |
| tsmiExportData_Click | Handles the Edit → Export Data menu click by copying the selected object's simulation properties to the clipboard as tab-delimited text. |
| tsmiPaste_Click | Handles the Edit → Paste menu click by deserialising clipboard objects onto the flowsheet surface. |
| tsmiRecalc_Click | Handles the Edit → Recalculate Selected menu click by requesting a calculation scoped to the currently selected simulation object. |
| tsmiRedo_Click | Handles the Edit → Redo menu click by delegating to ProcessRedo. |
| tsmiRemoveSelected_Click | Handles the Edit → Remove Selected menu click by deleting all selected objects, prompting for bulk confirmation when more than one is selected. |
| tsmiRichText_Click | |
| tsmiUndo_Click | Handles the Edit → Undo menu click by delegating to ProcessUndo. |
| UnloadExtenders | Releases resources held by all loaded flowsheet-level extender items. |
| UpdateFormText | Updates the form title bar to reflect the current file path or simulation name. |
| UpdateInformation | Refreshes the watch panel list and evaluates all spreadsheet formulas for top-level flowsheets. |
| UpdateInterface | Invalidates the flowsheet drawing surface on the UI thread, triggering a redraw, and raises InterfaceUpdated. |
| UpdateMassAndEnergyBalance | |
| UpdateObjectListPanel | |
| UpdateOpenEditForms | Refreshes every open object editor form, dynamics editor, extra-properties editor, tooltip overlay, and attached utility panel. |
| UpdateProcessData | Receives updated process data XML; currently a no-op placeholder. |
| UpdateSettingsPanel | Re-initialises the simulation settings panel (FrmStSim1) to reflect the current flowsheet state. |
| UpdateSpreadsheet | Re-evaluates all spreadsheet cells and writes DWSIM variable references back to the spreadsheet. |
| UpdateToolstripItemVisibility | Updates the enabled state of Edit menu and toolbar items based on the current surface selection, and checks whether clipboard content can be pasted. |
| UtilitiesTSMI_Click | |
| UtilitiesTSMIHandler | |
| WriteMessage | Writes an informational message to the log panel using the default black colour. |
| WriteSpreadsheetVariables | Writes all DWSIM variable bindings back to the embedded spreadsheet on the UI thread. |
| WriteToLog | Appends a message to the log panel with the specified colour and type, and updates the status-bar label. When the flowsheet is a sub-flowsheet with RedirectMessages enabled the message is forwarded to the master flowsheet log with the sub-flowsheet tag prepended. |
Events
| EditingFormsUpdated | Raised after all open property-editor forms have been refreshed with updated data. |
| FinishedSolving | Raised when the flowsheet solver completes a calculation pass. |
| InterfaceUpdated | Raised after the main flowsheet interface (toolbar state, status bar, etc.) has been refreshed. |
| NewDataLoaded | Raised after new simulation data has been loaded and the UI has been refreshed. |
| NewMessageSent | Raised whenever a new log message is generated; the message, type, and originating exception are passed to subscribers. |
| StartedSolving | Raised when the flowsheet solver begins a new calculation pass. |
| ToolOpened | Raised when a tool window is opened within this flowsheet. |
Fields
| AIInsights | |
| ChartCollection | Gets or sets the dictionary of chart definitions embedded in this flowsheet, keyed by name. |
| CheckedToolstripButton | The last toolbar button that was toggled into a checked state. |
| ClassId | COM class identifier (CLSID) for the FormFlowsheet class. |
| ClickedToolStripMenuItem | The last menu item that was clicked by the user. |
| Collections | Organises all flowsheet objects (simulation objects, graphic objects, optimisation/sensitivity cases) into named collections. |
| components | |
| EventsId | COM event-source interface identifier used to sink IFlowsheetNewMessageSentEvent events. |
| FormCharts | The docked charts panel. |
| FormCOReports | The docked CAPE-OPEN report viewer panel. |
| FormDynamics | The docked dynamics manager panel. |
| FormFilesExplorer | The docked file explorer panel. |
| FormIntegratorControls | The docked dynamics integrator control panel. |
| FormLog | The docked log/message panel. |
| FormMatList | The docked material-stream property list panel. |
| FormOptimization0 | The docked optimization configuration form. |
| FormScript1 | The docked script editor panel. |
| FormSensAnalysis0 | The docked sensitivity analysis configuration form. |
| FormSpreadsheet | The docked spreadsheet form. |
| FormSurface | The docked flowsheet drawing surface panel. |
| FormWatch | The docked watch/variable-monitor panel. |
| FrmPCBulk | The bulk petroleum characterisation (C7+ fractions) dialog. |
| FrmReacMan | The reaction manager dialog for defining and editing chemical reactions. |
| FrmReport | The report configuration dialog for generating simulation reports. |
| FrmStSim1 | The simulation settings editor form (compounds, property packages, units, reactions). |
| ID | The unique GUID string that identifies this flowsheet instance at runtime. |
| InsertingObjectToPFD | Indicates whether the user is currently in the process of inserting a new object onto the flowsheet surface. |
| InterfaceId | COM interface identifier (IID) for the default dual interface exposed by FormFlowsheet. |
| Invalidating | |
| listeningaction | |
| loaded | |
| m_IsLoadedFromFile | Indicates that the flowsheet was populated by loading an existing file rather than being newly created. |
| m_overrideCloseQuestion | When True, suppresses the save-on-close confirmation dialog. |
| MessagePump | |
| PanelCOWarningDismissed | |
| prevcolor1 | Stores previous toolbar highlight colours so they can be restored after a selection change. |
| prevcolor2 | Stores previous toolbar highlight colours so they can be restored after a selection change. |
| QuestionID | |
| RedoStack | Stack of serialized snapshots used to support redo operations. |
| ScriptCollection | Gets or sets the dictionary of Python/IronPython scripts defined for this flowsheet, keyed by unique ID. |
| toolstripButtonDict | |
| UndoStack | Stack of serialized snapshots used to support undo operations. |
Extension Methods
| ChangeDefaultFont | (Defined by FormExtensions) |
| GetAllChildren | (Defined by FormExtensions) |
| GetEnumNames | (Defined by General) |
| IsValidDouble | (Defined by General) |
| UIThread | (Defined by General) |
| UIThreadInvoke | (Defined by General) |