DWSIM.UnitOperations.UnitOperations Namespace

 

Classes

AbsorptionColumn 
AnalogGauge 
CapeOpenUO 
CleanEnergyUnitOpBase Abstract base class for clean-energy power-source unit operations (solar panel, wind turbine, hydroelectric turbine, water electrolyser). Provides shared properties for weather input, connector creation, drawing, and the external-unit-operation interface.
Column 
ComponentSeparator Represents a Component Separator unit operation that splits an inlet material stream into two outlet streams based on user-defined per-compound separation specifications. Specifications can be given as absolute mass flow, absolute molar flow, or as a percentage of the inlet mass or molar flow for each compound. The energy imbalance is computed after the mass balance and passed to an optional connected energy stream.
Compressor Represents a compressor unit operation that raises the pressure of a gas or vapor stream using adiabatic or polytropic compression. Supports multiple calculation modes including outlet pressure, pressure ratio, power required, and performance curves.
Cooler Represents a cooler unit operation that reduces the temperature of an inlet material stream by removing a specified amount of heat, targeting an outlet temperature, outlet vapor fraction, or temperature change. Supports steady-state and dynamic simulation modes.
CustomUO Represents a Python Script Unit Operation that executes user-supplied Python code (IronPython or Python.NET) as part of the flowsheet calculation sequence.
DigitalGauge 
DistillationColumn 
DummyUnitOperation Represents a placeholder (dummy) unit operation that performs no calculation. It can be used as a template for custom unit operations or as a no-op block in a flowsheet.
ExcelUO Represents an Excel/spreadsheet-based unit operation that reads input parameters from the flowsheet, writes them into a spreadsheet file (via Excel COM or GemBox), triggers a recalculation, and reads back the computed output parameters into the flowsheet.
Expander Represents an expander (turbine) unit operation that reduces the pressure of a gas or vapor stream through isentropic or polytropic expansion, generating shaft work.
Filter Represents a continuous cake filter unit operation that separates solids from a liquid stream. The calculation is based on the cake filter equations from McCabe, Smith and Harriott, "Unit Operations of Chemical Engineering", Chapter 29. Solids removal efficiency is governed by the specified cake relative humidity, filter area, and operating parameters.
Flowsheet Represents a Flowsheet Unit Operation that embeds a complete sub-flowsheet as a single block in the parent flowsheet. Input and output streams are mapped to corresponding streams in the sub-flowsheet, enabling modular process simulation.
Heater Represents a heater unit operation that raises the temperature of an inlet material stream by adding a specified amount of heat, targeting an outlet temperature, outlet vapor fraction, or temperature change. Supports steady-state and dynamic simulation modes.
HeatExchanger Represents a heat exchanger unit operation that transfers thermal energy between a hot-side and a cold-side material stream. Supports counter-current and co-current flow, multiple calculation modes (outlet temperature, UA, area, rating, pinch-point, thermal efficiency), optional shell-and-tube geometry, and dynamic simulation.
HydroelectricTurbine Represents a Hydroelectric Turbine unit operation that calculates electrical power output from the static and velocity heads, water flow rate, and turbine efficiency.
Input 
LevelGauge 
Mixer Represents a mixer unit operation that combines up to six material inlet streams into one outlet stream by performing mass and energy balances. Outlet pressure is determined by the configured MixerPressureBehavior (minimum, maximum, or average of inlet pressures).
OrificePlate Represents an orifice plate flow-measurement device modelled using the ISO 5167 standard. Calculates the pressure drop across the orifice for a given mass flow rate and fluid properties, supporting single-phase liquid or gas service and two-phase homogeneous or slip flow models.
PEMFC_Amphlett Represents a PEM Fuel Cell modelled with the Amphlett static polarisation curve, using the OPEM Python library to compute voltage, power, and efficiency.
PEMFuelCellUnitOpBase Abstract base class for PEM Fuel Cell unit operations that use the OPEM Python library to model different fuel-cell polarisation curves (Amphlett, Chamberline–Kim, Larminie–Dicks).
Pipe 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.
Pump Represents a centrifugal (or other type) pump unit operation that increases the pressure of a liquid stream. Supports multiple calculation modes including fixed pressure rise, fixed outlet pressure, energy-stream-driven, power-driven, and performance-curve-based calculations. Adiabatic efficiency and NPSH are computed alongside outlet conditions.
ReliefValve Represents a safety relief valve (PSV / PRV) unit operation that opens progressively between a set-point pressure and a fully-opened pressure, relieving fluid to a downstream line. The orifice area, discharge coefficient, and back-pressure corrections follow API 520 / ASME Section VIII methodology.
ShortcutColumn Represents a shortcut distillation column unit operation that uses the Fenske–Underwood–Gilliland method to estimate the minimum number of stages, minimum reflux ratio, condenser and reboiler duties, and optimum feed stage for a single-feed, two-product column.
SolarPanel Represents a Solar Panel unit operation that calculates electrical power output from solar irradiation, panel area, efficiency, and the number of panels.
SolidsSeparator Represents a solids separator unit operation that removes solid-phase material from a mixed material stream. Liquid and vapour phases are sent to the first outlet while the solid phase is directed to the second outlet, each split according to user-specified separation efficiencies.
SpecialOpBaseClass Abstract base class for special (logical) unit operations such as recycle loops, spreadsheets, and other non-physical simulation objects.
Splitter Represents a stream splitter unit operation that divides one inlet material stream into up to three outlet streams. The split can be specified using fractional ratios, absolute mass flow rates, or absolute molar flow rates. The outlet streams share the same temperature, pressure, enthalpy, and composition as the inlet stream.
StandardPipeDiameter Represents a standard commercial pipe diameter entry, including nominal size, standard description, and internal/external diameters in inches.
Switch 
Tank Represents a Tank unit operation that models a storage vessel for material accumulation. In dynamic mode, the tank tracks liquid inventory over time, integrating inlet and outlet mass flows to update the accumulated content. In steady-state mode, the tank passes the inlet stream through to the outlet, applying an optional pressure drop.
UnitOpBaseClass Abstract base class for all DWSIM unit operation simulation objects. Provides CAPE-OPEN identification, property package management, persistence, debug reporting, and dynamic simulation support.
Valve Represents a valve unit operation that models a pressure letdown device. The valve reduces stream pressure via an isenthalpic (adiabatic) or isentropic flash, optionally using flow coefficient (Kv/Cv) equations for liquid, gas, steam, or two-phase service.
Vessel Represents a separator vessel unit operation that splits an inlet multi-phase stream into separate vapour and liquid outlet streams. Supports two-phase and three-phase operation, optional heat duty, and dynamic simulation.
WaterElectrolyzer Represents a Water Electrolyser unit operation that splits water into hydrogen and oxygen using electrical energy, modelling cell voltage, current, and thermal losses.
WindTurbine Represents a Wind Turbine unit operation that calculates electrical power output from wind speed, air density, rotor disk area, and turbine efficiency.

Enumerations

AbsorptionColumnOpMode 
ColumnColType 
Columncondtype 
ColumnSolvingScheme 
CompressorCalculationModeDefines the calculation modes available for the compressor.
CompressorProcessPathTypeDefines whether the compression follows an adiabatic or polytropic path.
CoolerCalculationModeDefines the calculation modes available for the cooler.
CustomUOPythonExecutionEngineSpecifies the Python execution engine to use.
ExpanderCalculationMode Defines the available calculation modes for the expander.
ExpanderProcessPathType Defines the thermodynamic path used for the expansion calculation.
FilterCalculationModeDefines the calculation mode for the filter unit operation.
FlowDirectionDefines the relative flow direction of the two fluid streams.
FlowPackageDefines the two-phase flow pressure-drop correlation used by the pipe segment model.
HeaterCalculationModeDefines the calculation modes available for the heater.
HeatExchangerCalcModeDefines the available calculation modes for the heat exchanger.
HeatExchangerTypeDefines the heat exchanger geometry type, used when shell-and-tube rating is selected.
MixerPressureBehaviorDefines how the outlet pressure is computed from the inlet stream pressures.
OrificePlateCalcMethodDefines the two-phase flow model used when both liquid and vapour phases are present.
OrificePlateOrificeTypeDefines the pressure tap configuration of the orifice plate, which affects the discharge coefficient.
PipeSpecmodeDefines the pipe specification mode (calculate length, outlet pressure, or outlet temperature).
PumpCalculationMode Defines the available calculation modes for the pump unit operation.
ShortcutColumnCondenserTypeDefines the condenser type for the shortcut column.
SpecifiedTemperatureIndicates which fluid side has its outlet temperature specified.
SplitterOpMode Defines the calculation mode used by the splitter to determine how outlet stream flows are specified.
ValveCalculationMode Defines how the valve outlet condition is determined during steady-state calculation.
ValveFlowCoefficientType Specifies the unit system used to express the valve flow coefficient.
ValveOpeningKvRelationshipType Defines the relationship type between valve stem opening percentage and the flow coefficient (Kv/Cv).
VesselCalculationModesDefines the thermal calculation mode for the vessel.
VesselOperationModeDefines whether the vessel operates in two-phase or three-phase mode.
VesselPressureBehaviorDefines how the vessel operating pressure is derived from multiple inlet stream pressures.