Flowsheet Visualizer How-to#
See an example flowsheet#
An example flowsheet is included and can be viewed with the following terminal command:
python -m idaes_ui.fv.example
Visualize your flowsheet#
To use the FV to visualize your own flowsheet:
Run from within an interactive environment, including a Jupyter Notebook#
# create the flowsheet and put in variable 'flowsheet'
flowsheet.visualize("Flowsheet Name")
Run from within a Python script#
Add a keyword argument so the Python interpreter keeps running and the FV can still communicate with its backend:
# create the flowsheet and put in variable 'flowsheet'
flowsheet.visualize("Flowsheet Name", loop_forever=True)
Params for visualize function#
visualize(
flowsheet,
name: str,
save: Optional[Union[Path, str, bool]],
load_from_saved: bool,
save_dir: Optional[Path],
save_time_interval:int,
overwrite: bool,
browser: bool,
port: Optional[int],
quiet: bool,
loop_forever: bool
)
FV overview#
Flexible panel#
The FV uses flexible panels, allowing you to change the panel location and resize each panel by dragging them. After adjusting the panels, your settings are saved, and the next time you open FV, it will display the same layout.
Including panels:#
FV contains multiple panels for different purposes, including:
FV UI Header#
The FV header contains general information and general-purpose function buttons, including:
Flowsheet name#
The flowsheet name section will display the name of your flowsheet, when you
flowsheet.visualize("your_flowsheet_name")
The defined flowsheet name will be displayed here.
Help#
If you want more detailed information, you can click the Detail button, which will redirect you to the IDAES documentation page in a new browser tab.
Diagram panel#
The diagram panel is where your diagram will be rendered, and all the controls for the diagram are contained in the header of this panel.
Zoom in and zoom out:#
By clicking the zoom in and zoom out buttons on the diagram header, you can control the zoom level of your diagram.
Zoom to fit:#
When you want your diagram to transform to a size that fits in the diagram panel, simply click the Zoom to Fit button on the diagram header.
Toggle stream name and labels:#
By hover the eye icon the drop down menu will shows up, you can easily toggle stream names or labels on and off by click on the option in the menu.
Download diagram as SVG or PNG image:#
By hovering over the download icon in the top right corner of the diagram header bar, the drop-down menu will appear, containing options for the type of image you would like to download. By clicking on the image type, you can easily download your diagram to your computer in the selected format.
Rotate component:#
Move your cursor over the component you want to rotate, right-click on it, and then you can rotate the component.
Select multiple components:#
Move your cursor over the diagram panel, then hold down the left mouse button and simply drag over the components you want to select to choose multiple components.
Stream table#
Stream panel overview#
The stream table panel contains data from your flowsheet model, allowing you to view and reorder the data as needed. The stream table panel also shares space with the diagnostics tool; when the diagnostics tool is enabled, you can simply click Diagnostics Logs or Stream Table to toggle between them.
Reorder data in stream table#
You can reorder the stream table by clicking on a data column and dragging it to a new position.
Toggle stream table column#
You can click the Hide Fields button located in the Stream Table header to open a drop-down menu. By clicking on a column name listed in the drop-down menu, you can toggle the visibility of the stream table columns.
Diagnostics tool#
Diagnostics tool overview#
The FV also includes the IDAES Diagnostics tool. which helps you diagnose your flowsheet model.
Enable diagnostics tool#
By clicking the Diagnostics toggle button located in the FV header, you can easily open and close the Diagnostics tool.
Run diagnostics in fv#
To run the diagnostics for the suggested next step in FV, simply click the run button located on the right side of the suggested next step function name. After running the suggested next step, the log will be displayed in the Diagnostics Logs panel.
If you want to run your diagnostics next step in a code editor or Jupyter notebook, simply click the Copy button located next to the Run button to copy the next step function name, then paste it into the code editor to run it.
Additionally:
If there is an error in your flowsheet model, it will also be displayed in the Diagnostics Logs panel.



