A sample CAPE-OPEN unit operation is provided to test PRO/II interaction. It is a simple mixer/splitter unit operation implemented in the DLL file COUOP.DLL; its "progid" is "Simsci.Mixer". The sample unit has two input and two output material ports. It has three real input parameters and one output parameter. Heat input, pressure drop and split factor values can be given as input. Once the unit operation is solved, mixer pressure is populated.
Very simple calculations are done on input stream properties to calculate output stream properties:
The component flow rates, Fi, of the internal mixed stream are obtained by summing up the component flow rates from each inlet stream.
F i = åFij
where:
i=stream index
j= component index
After mixing the inlet streams, the component flow rates, Fik, of the out let flow rates are calculated by
Fik = Fi* ak
Where:
a is the split fraction
åak =1
The enthalpy flows, H, of the internal mixed stream are obtained by summing up the enthalpy flows from each inlet stream.
H = åHjxFj
The enthalpy flow of the out let streams are calculated by
Hk = H* ak
And the enthalpy of each outlet stream is then
hk = Hk/Fk
Pressure of mixer is calculated by
P= min Pk