How the Flowsheet Simulator Works
Steady-state process simulation the way Aspen Plus, HYSYS and DWSIM do it in their default mode: one unit at a time, in flow order, with recycles converged by iteration. This page states exactly what the simulator computes.
1. Streams are thermodynamic states
A stream is a composition, a molar flow and two intensive specifications. Everything else (temperature or enthalpy, phase split, density, entropy) comes from a flash with the chosen property package: Peng-Robinson or SRK for hydrocarbons and gases, NRTL or UNIFAC for polar liquids, or an ideal solution. The simulator never writes a stream state by hand: every unit outlet is one of five flashes, so enthalpy is on a single reference state (ideal gas at 25 °C, 1 atm) and energy balances close to round-off.
2. Sequential-modular solution
Units are solved in dependency order: a unit runs once all of its inlet streams are known. On a sheet without recycle that is a single pass. A recycle makes the order impossible, so one stream in each loop is torn: its value is guessed, the loop is solved from that guess, and the computed value of the torn stream replaces the guess until they agree. The tear streams are found as the back edges of a depth-first search started at the feeds, which follows the natural flow direction.
The update uses Wegstein's acceleration on the component molar flows, the enthalpy flow and the pressure of the torn stream. With x the guess and g(x) the computed value from the previous two passes,
q = 0 is direct substitution; negative q extrapolates. The first two passes are direct substitution. Convergence is declared when the largest relative change of any element is below the tolerance (10⁻⁶ by default). A flowsheet with no steady state, such as a flash whose liquid is recycled into a mixer at a higher pressure, will not converge however the update is accelerated; the diagnosis is physical, not numerical.
3. Unit operations
Mixer: component flows and enthalpy flows add; the outlet is a PH flash at the lowest inlet pressure (or a given one). Splitter: same state, flows scaled. Heater / cooler: outlet temperature (TP flash, duty reported) or duty (PH flash). Valve: isenthalpic expansion. Pipe segment: Darcy-Weisbach drop f·(L/D)·ρu²/2 plus fittings ΣK·ρu²/2 and the static head ρgΔz, with the Churchill friction factor (laminar to rough turbulent) at the inlet state and the package viscosity; the outlet is a PH flash (adiabatic), and a two-phase inlet is treated as a homogeneous fluid. Storage tank: the stream passes through unchanged; the volume is the volumetric flow times a residence time over the fill fraction, for the drawing and the cost estimate. Pump: hydraulic work ṅ·V·ΔP divided by the efficiency is added as enthalpy. Compressor / expander: the isentropic outlet comes from a PS flash; the real enthalpy change is the isentropic one divided (compressor) or multiplied (expander) by the efficiency.
Flash drum: TP, PVF or adiabatic PH; each outlet is then flashed at (T, P) with its own phase composition so both products are consistent single-phase states. Heat exchanger: one side is specified (an outlet temperature or the duty), the other follows from the energy balance; the counter-current LMTD and UA = Q / LMTD are reported and a temperature cross is flagged. Component splitter: a fraction of each component to one outlet, both at the inlet T and P.
4. Shortcut distillation
The column is the Fenske-Underwood-Gilliland method with a Kirkbride feed stage. Relative volatilities are the geometric mean of the K-value ratios at the top and the bottom of the feed's flash envelope at the column pressure. Fenske gives the minimum stages from the key recoveries and distributes the non-keys; Underwood's equation is solved for θ between the key volatilities and gives the minimum reflux; the reflux is a multiple of it; Gilliland (Eduljee's fit) gives the stage count.
Products are saturated liquids at the column pressure; the condenser duty is the enthalpy change of the top vapour (R+1)·D from its dew point to the distillate, and the reboiler duty closes the overall energy balance.
4a. Rigorous column
The rigorous column solves the MESH equations of N equilibrium stages at once, in the Naphtali-Sandholm form: on each stage the unknowns are the component liquid flows lij, the component vapour flows vij and the temperature Tj; the equations are the component balances, the equilibrium relations vij = Kij lij Vj/Lj and the energy balance. Stage 1 is a total condenser (its equilibrium relations become the bubble-point condition and its energy balance the reflux specification L1 = R·D), stage N a kettle reboiler whose energy balance gives the duty. K-values are fugacity-coefficient ratios from the package\u2019s phase objects, the same numbers its flashes produce, so a stage liquid read back through a flash sits on its bubble point.
Newton\u2019s method with a finite-difference Jacobian assembled stage by stage (a stage\u2019s properties depend only on its own variables), temperature steps limited to 15 K, flows kept non-negative and a backtracking line search on the residual. The start is constant molar overflow with a linear temperature profile between the feed\u2019s bubble and dew points; a well-posed column converges in four to eight iterations. Specifications are the reflux ratio and the distillate rate (liquid with a total condenser, vapour with a partial one); a vapour Murphree efficiency yj = \u03b7 y*j + (1 \u2212 \u03b7) yj+1 can be applied to the trays. The absorber / stripper unit is the same solver with neither condenser nor reboiler: the liquid feed enters the top stage, the gas the bottom stage, every stage is adiabatic, and the heat of absorption appears in the temperature profile. A design spec can hold a product purity by varying the reflux, the distillate rate or the efficiency. The column takes up to two side draws (a liquid or vapour fraction of a stage\u2019s flow, as a product) and one pumparound (liquid drawn from a stage, cooled by a set duty, returned to another stage); both enter the balances as draw ratios and internal feeds whose composition and enthalpy are unknowns of the same Newton system. With the reflux ratio and distillate rate fixed, a pumparound cooler adds its duty to the reboiler rather than relieving the condenser; let a design spec hold a purity by varying the reflux to see the saving. Both units also size their trays from the converged profiles: on every tray the flooding velocity comes from Fair\u2019s correlation (Lygeros-Magoulas fit, Csb = 0.0105 + 8.127\u00d710\u22124·TS0.755·exp(\u22121.463 Flv0.842), uf = Csb\u221a((\u03c1L\u2212\u03c1V)/\u03c1V)), the column runs at a chosen fraction of flooding on 90 % of the cross-section, the most loaded tray sets the diameter, and the height is the actual trays (theoretical ÷ overall efficiency, or the stages themselves when a Murphree efficiency is given) at the tray spacing plus 4 m for the ends. The Economics panel prices the shell from that diameter and tray count. The shortcut column\u2019s inspector offers a one-click conversion that carries its stages, feed stage, reflux and distillate rate over.
5. Conversion reactor
One stoichiometric reaction and a conversion of the key reactant give the extent and the outlet flows. The package enthalpies are per pure species, so the heat of reaction is added explicitly from ideal-gas formation enthalpies at 25 °C. Isothermal mode reports the duty needed to hold the outlet temperature; adiabatic mode solves the PH flash with the reaction enthalpy included.
5. Equilibrium reactor
The equilibrium reactor takes one gas-phase reaction to chemical equilibrium: K(T) = exp(\u2212\u0394G\u00b0(T)/RT) with \u0394G\u00b0 from the ideal-gas Gibbs energies of formation at 298 K and the van \u2019t Hoff relation ln K(T) = ln K(298) \u2212 (\u0394H\u00b0/R)(1/T \u2212 1/298) at constant heat of reaction; the ideal-gas equilibrium K = \u03a0 (y\u1d62 P/P\u00b0)\u03bd\u1d62 is solved for the extent by bisection on ln K \u2212 ln Q, with a temperature approach added to T the way Aspen\u2019s REquil does. Isothermal or adiabatic.
5a. Kinetic reactors, valves and two-phase lines
The CSTR and PFR units take one power-law reaction r = k\u2080 exp(\u2212E\u2090/RT) \u00b7 \u03a0 C\u1d62n\u1d62 with concentrations from the local molar flows and the package molar volume. The CSTR evaluates the rate at its outlet state and solves (\u2212\u03bdkey) r V = Fkey,in \u2212 Fkey,out for the extent by bisection; the PFR integrates dF\u1d62/dV = \u03bd\u1d62 r with an adaptive Runge-Kutta scheme, the local temperature coming from a PH flash in adiabatic mode. The heat exchanger\u2019s UA specification rates a given exchanger: the duty is bisected until q = UA \u00b7 LMTD. The valve reports its flow coefficient by IEC 60534 (liquid Q = 0.865 Cv \u221a(\u0394P/SG); gas W = 27.3 Cv Y \u221a(x P\u2081 \u03c1\u2081) with Y = 1 \u2212 x/(3 F\u03b3 xT), xT = 0.7, choked at x = F\u03b3 xT). A two-phase inlet to a pipe segment uses Lockhart-Martinelli: each phase flowing alone gives \u0394Pl and \u0394Pg, X\u00b2 = \u0394Pl/\u0394Pg, and \u03c6l\u00b2 = 1 + C/X + 1/X\u00b2 with Chisholm\u2019s C of 20, 12, 10 or 5 by the phases\u2019 flow regimes.
6. Design specifications, sensitivity and optimisation
A design spec holds a stream property or a unit result at a target by varying one unit parameter. The simulator wraps the whole sheet solve in a Newton iteration: the residual is (achieved − target), the Jacobian is formed by finite differences (one sheet solve per manipulated variable), steps are limited to the bounds and halved when a trial sheet fails. Several specs are solved simultaneously. A sensitivity analysis is the same machinery without the inner loop: the parameter is stepped through a range and the outputs are tabulated. Optimisation runs Nelder-Mead on up to three parameters normalised to their bounds, every evaluation a full sheet solve; constraint violations add a quadratic penalty and the best feasible point is reported and can be written back to the sheet. The rigorous column also accepts a second and third feed on their own stages.
6a. Heat integration
The Heat integration panel runs a pinch analysis on the solved sheet. Each duty is a stream with a constant heat-capacity flow CP = Q/|Tin − Tout| (a condensing or boiling duty is given a 1 K span); hot streams are shifted down and cold streams up by ΔTmin/2; the problem-table algorithm sums the surplus of every shifted-temperature interval, cascades it from the top, and lifts the cascade by its most negative value: that lift is the minimum hot utility QH,min, the bottom of the cascade the minimum cold utility QC,min, and the zero of the cascade the pinch. The composite curves are the same sums in real temperatures, the cold curve placed QC,min to the right of the hot one; the grand composite is the cascade itself. Today’s heating and cooling on the sheet minus the minimum is the heat an exchanger network could recover (Linnhoff; Smith, Chemical Process Design and Integration, ch. 16).
7. Economics
The Economics panel turns the solution into a study estimate. Each unit is sized from its results: exchanger area A = UA / U with a user U; pump, compressor and expander by shaft power; a flash drum by liquid hold-up (default 5 min) with an equal vapour space; a column by the Souders-Brown diameter of the top vapour (R+1)·D at K = 0.07 m/s, with actual trays at 70 % efficiency; a reactor by a residence time the user sets, since the sheet has no kinetics. Condensers and reboilers are exchangers at an assumed approach.
Utilities follow from the duties: heating below 230 °C is low-pressure steam, above it fuel; cooling above 35 °C is cooling water, below it refrigeration; drivers draw electricity and an expander credits it. Annual cost is the rate times the operating hours times a list price in $/GJ or $/kWh; fuel is priced on what is fired, the duty over the heater’s efficiency (85 % unless a fired heater states its own). The totals seed the NPV in the Economic Analysis tool, where the revenue is entered.
8. What it does not do
Rigorous (stage-by-stage) columns, dynamics, electrolytes, solids and pressure-drop networks are outside this simulator. Results are screening-level: verify against a rigorous simulator before using them in a design. How close the property package gets to reference data is measured live on the validation page; the worked examples show each unit in use.