Hysys Foundation Course
Hysys Foundation Course
AUGUST 2005
Required for
Compatibility Standard Project”
Directory is provided
with Music
and Otiss
Model files
(Plants areas)
Hysys files
Required for
Compatibility
with Music
and Otiss
VPS Foundation Course 2.1- 5
August 2005 Honeywell Confidential
Hysys File Structure
Hysys “Case”
• Project_directory C:\OTS\{project}
• Plants C :\OTS\{project}\Plants
• Plant_Area (model)
C :\OTS\{project}\Plants\Model1
• Initial_Condition = Hysys Case
C :\OTS\{project}\Plants\Model1\
IC1
• What is Hysys
Integrated Environment
Extensibility – Programmability
Solution methods
• OUR focus
Dynamic modelling (Fidelity)
Solution methods
• Material to be covered
Steady State
Conceptual Design Dynamic Simulation
Simulation
Plug-in or Standalone
VPS Foundation Course 2.1- 9
August 2005 Honeywell Confidential
Hysys Stand Alone Extensibility
Resistance Equation
P Spec
Resistance Equation
P Spec
Resistance Equation
VPS Foundation Course 2.1- 12
August 2005 Honeywell Confidential
HYSYS P-F Solver Lumped Model
• DOF: 7-4 = 3
– Specification of 3 variables completely
defines this system
• 13 pressure-flow variables
– 6 material streams x 2 variables = 12
– 1 vessel holdup
• 10 P-F equations
– 1: dPh/dt = f{P,T,holdup,flows}
– 3: Ph = P1 = Pvap = Pliq
– 1: Fvlv-100 = Kvlv-100 sqrt(Pfeed1-P1)
– 1: Fvlv-101 = Kvlv-101 sqrt(Pvap-Pprod1)
– 1: Fvlv-102 = Kvlv-102 sqrt(Pliq-Pprod2)
– 3: Ffeed1 = F1, Fvap = Fprod1, Fliq = Fprod2
• DOF: 13-10 = 3
• A hands-on view
• Environment description (icons, menus, …)
• A glimpse at steady state
• Hysys building blocks
Unit Operations (Valves, Pumps, Drums, …)
Complex numerical calculations (Spreadsheet)
Logic blocks (if time permits)
Load
SmallHysysDemo.hsc
Save
A hands-on view
We will explain later in more detail
A hands-on view
Start… Stop the model
Shift-P, M, F, T, N,…
Understand color coding – See specs
Integrator (Cntrl-I): “Timer”, Real time, …
Screen display (magnify, “zoom all”, …)
Tool tips (Tools Preferences)
Simulation Navigator
A hands-on view
Workbook (Cntrl-W or via Tools menu)
Double-click on streams/equipment
Composition
Stop-Start-changeover pumps
Change LIC set point
Break two connections; Re-connect
Add four valves (Cntrl-C, Cntrl-V)
Oil Environment
FLUID PACKAGE
HYPO GROUP ASSAY
Basis
MAIN FLOWSHEET
Environment
Simulation
Special type
Streams of Operation Column -
Operations Operation
Streams
Operations
VPS Foundation Course 2.1- 29
August 2005 Each Sub-Flowsheet has it’s own “Environment”
Honeywell Confidential
Hysys Stand Alone Material
Environment
Basis = Composition + Thermodynamics
Feeds
Process (equipment and streams)
Be organized (sub-flowsheets)
Simulation
Basis Environment
Environment
Unit Operations
F4 Key
Object Palette
Sub-Flow Sheets and Columns
(= Special types of Sub-Flow Sheets)
Logical Operations
• F4=Palette
• F12=Available
Unit Ops
Construct: Drum cascade
Solve simple problems
Learn: How to enter “Basis”
Hysys exercises 1 to 3
Equimolar mixture of C1, C2, C3, iC4, nC4
with a mass of 50 tn/h at 0 deg F and 25 bar
flashes into a drum maintained at 20 bar.
The liquid product of the first drum is flashed
again at 15 bar
What are the temperatures of the drums?
Which is the composition of the liquid stream
of the second drum?
10-15 mins
I have 1000 kmole/hr of 6 bar air at 35 degC.
Can I release this pressure in a throttle and
cool this air by using the Joule-Thomson
effect?
What would the difference be if we had C2,
C2=, C3 or C3= instead of air?
10-15 mins
Create a feed stream, 1 bar, vf=10%
Equimolar mixture of
NBP200, NBP280, NBP425, NBP630,
NBP920 (Normal Boiling Point in deg F)
Use the Hypo manager
10 mins
The missing data: liquid density of NBP920 is
60 lb/ft3
Thermo: Use an EoS
Be careful with the units that you are using!
Learn to modify displayed units and tool-tips
Differences from steady state
Dynamic set-up
Simulation Control
Valve and dynamics
Controllers and trends
Drum
Pumps
No real differences
from steady state
Different color scheme
• Speed
Hysys “Real Time Factor” (Calculated)
Can set Hysys to real time
Can accelerate/de-accelerate (Safe??)
Display interval (increase to increase speed)
• Run Until = Hysys “End Time”
– Typical choices
Re-Load SmallHysysDemo.hsc
Identify temperature trend (Databook/Cntrl-D)
Check real time factor
Set the ambient temperature to a low one
Accelerate the simulation
Details on hand-out
Hands on: build a model, piece by piece
“Theory” and then Practice
Valve, Pump
Controllers, Trends
Drum
Heat Exchanger
PV100 MV100
6" 8" Flare
8" Cv = 400 Cv = 10000 1.013 bar
100% open
D-100
Ambient Temperature = 25 oC
Feed FV100
12.43 bar 4"
35.43 oC Cv = 400
4.5 m
P-100
6"
MV140 LV100
5m MV120 6" 4" Drain
6" Cv = 10000 Cv = 200 1.5 bar
Cv = 5000 100% open
100% open
Ground
FC100
Flow Controller D-100 LC100
P-100 Level Controller
SP = 15000 kg/h Vertical Drum
Pump SP = 30%
Kc = 0.3; Ki = 0.2 Height = 6 m
Use given curves Kc = 2; Ki = 5
Diameter = 3 m
PC100
Pressure Controller
SP = 2 bar
Kc = 0.2; Ki = 0.3
VPS Foundation Course 2.1- 53
August 2005 Honeywell Confidential
Unit Operations
Valve Rating
• Actuator linear
• Actuator % rate = 5
• Stickiness: 0.5 to 1 sec
• OR:
Stickiness = RGTEiixlnxifre
Linear Rate =
line size (in)
• Actuator linear
• Actuator % rate = 50 to 100
• Stickiness: min( 3, Pipe_inches/3 ) sec
• OR:
Stickiness =
Linear Rate =
line size (in)
Requires
Energy Stream
PV100 MV100
6" 8" Flare
8" Cv = 400 Cv = 10000 1.013 bar
100% open
D-100
Ambient Temperature = 25 oC
Feed FV100
12.43 bar 4"
35.43 oC Cv = 400
4.5 m
P-100
6"
MV140 LV100
5m MV120 6" 4" Drain
6" Cv = 10000 Cv = 200 1.5 bar
Cv = 5000 100% open
100% open
Ground
FC100
Flow Controller D-100 LC100
P-100 Level Controller
SP = 15000 kg/h Vertical Drum
Pump SP = 30%
Kc = 0.3; Ki = 0.2 Height = 6 m
Use given curves Kc = 2; Ki = 5
Diameter = 3 m
PC100
Pressure Controller
SP = 2 bar
Kc = 0.2; Ki = 0.3
VPS Foundation Course 2.1- 62
August 2005 Honeywell Confidential
Unit Operations Example
• Composition:
Directory:
C:\Projects\HysysFoundation\Data
pump-example.xls Feed Composition
• Composition:
Directory:
C:\Projects\HysysFoundation\Data
pump-example.fpk Fluid package
pump-example.xls
Composition/Pump Curve
• Temp = 35.3 oC
• Pres = 12.43 bar
• Flow = 15 tn/h
• Parameters Tab –
Configuration Page
Action, mode, tuning
Mode can be “Indicator”
Range
• Parameters Tab –
Advanced Page
Enable Ramping
No PV tracking
SP/OP limits
Algorithms
• Scalable
• Stripcharts (=trends)
Unit operations –
Dynamic Tab –
Stripchart Page
Variable set combo box
(select “Big dynamic”,
“All properties” etc.)
“Create stripchart”
Right-click to customize
• Databook (Cntrl-D)
Strip-charts
collection of
multi-trends
variables
• Add variables to
a strip-chart
(“Variables” tab)
PV100 MV100
6" 8" Flare
8" Cv = 400 Cv = 10000 1.013 bar
100% open
D-100
Ambient Temperature = 25 oC
Feed FV100
12.43 bar 4"
35.43 oC Cv = 400
4.5 m
P-100
6"
MV140 LV100
5m MV120 6" 4" Drain
6" Cv = 10000 Cv = 200 1.5 bar
Cv = 5000 100% open
100% open
Ground
FC100
Flow Controller D-100 LC100
P-100 Level Controller
SP = 15000 kg/h Vertical Drum
Pump SP = 30%
Kc = 0.3; Ki = 0.2 Height = 6 m
Use given curves Kc = 2; Ki = 5
Diameter = 3 m
PC100
Pressure Controller
SP = 2 bar
Kc = 0.2; Ki = 0.3
VPS Foundation Course 2.1- 73
August 2005 Honeywell Confidential
Unit Operations Vessels
• Drum
Separator, 3-Phase Sep., Tank
Multiple feeds, 1 Vapor and 1 Liquid exit streams
• Blocks with Holdup
Condenser, Reboiler, Reactors, Heat Exchangers
Various inputs/output streams
• Level Control:
Chamber2, Liquid level (m)
Level Tapings
Use spreadsheet
PV100 MV100
6" 8" Flare
8" Cv = 400 Cv = 10000 1.013 bar
100% open
D-100
Ambient Temperature = 25 oC
Feed FV100
12.43 bar 4"
35.43 oC Cv = 400
4.5 m
P-100
6"
MV140 LV100
5m MV120 6" 4" Drain
6" Cv = 10000 Cv = 200 1.5 bar
Cv = 5000 100% open
100% open
Ground
FC100
Flow Controller D-100 LC100
P-100 Level Controller
SP = 15000 kg/h Vertical Drum
Pump SP = 30%
Kc = 0.3; Ki = 0.2 Height = 6 m
Use given curves Kc = 2; Ki = 5
Diameter = 3 m
PC100
Pressure Controller
SP = 2 bar
Kc = 0.2; Ki = 0.3
VPS Foundation Course 2.1- 83
August 2005 Honeywell Confidential
Unit Operations Vessels and Static Head
Do not use
local ambient
temperatures!
• Many capabilities
AT time, AFTER time, WHEN STABILIZED
Play sound, Stop integrator, Play script,
Ramp controller, Create sequences
Branching to other events/sequences
• Back to schedule
• Press “Start” “Waiting”
• Check Clock
PV100 MV100
6" 8" Flare
8" Cv = 400 Cv = 10000 1.013 bar
100% open
D-100
Ambient Temperature = 25 oC
Feed FV100
12.43 bar 4"
35.43 oC Cv = 400
4.5 m
P-100
6"
MV140 LV100
5m MV120 6" 4" Drain
6" Cv = 10000 Cv = 200 1.5 bar
Cv = 5000 100% open
100% open
Ground
FC100
Flow Controller D-100 LC100
P-100 Level Controller
SP = 15000 kg/h Vertical Drum
Pump SP = 30%
Kc = 0.3; Ki = 0.2 Height = 6 m
Use given curves Kc = 2; Ki = 5
Diameter = 3 m
PC100
Pressure Controller
SP = 2 bar
Kc = 0.2; Ki = 0.3
• Color Code
PV100 MV100
6" 8" Flare
8" Cv = 400 Cv = 10000 1.013 bar
100% open
D-100
Ambient Temperature = 25 oC
Feed FV100
12.43 bar 4"
35.43 oC Cv = 400
4.5 m
P-100
6"
MV140 LV100
5m MV120 6" 4" Drain
6" Cv = 10000 Cv = 200 1.5 bar
Cv = 5000 100% open
100% open
Ground
FC100
Flow Controller D-100 LC100
P-100 Level Controller
SP = 15000 kg/h Vertical Drum
Pump SP = 30%
Kc = 0.3; Ki = 0.2 Height = 6 m
Use given curves Kc = 2; Ki = 5
Diameter = 3 m
PC100
Pressure Controller
SP = 2 bar
Kc = 0.2; Ki = 0.3
• “Duty” specifications
• “Flow” Specs:
Select “k”
Select “ΔP”
only for a
short
period
• Design Tab:
Typical
PV100 MV100
6" 8" Flare
8" Cv = 400 Cv = 10000 1.013 bar
100% open
D-100
Ambient Temperature = 25 oC
Feed FV100
12.43 bar 4"
35.43 oC Cv = 400
4.5 m
P-100
6"
MV140 LV100
5m MV120 6" 4" Drain
6" Cv = 10000 Cv = 200 1.5 bar
Cv = 5000 100% open
100% open
Ground
FC100
Flow Controller D-100 LC100
P-100 Level Controller
SP = 15000 kg/h Vertical Drum
Pump SP = 30%
Kc = 0.3; Ki = 0.2 Height = 6 m
Use given curves Kc = 2; Ki = 5
Diameter = 3 m
PC100
Pressure Controller
SP = 2 bar
Kc = 0.2; Ki = 0.3
FUNCTION_BLOCK RS
VAR_INPUT (* Body *)
S : BOOL ; (* Set *)
R1 : BOOL ; (* Reset *) Q1 :=
END_VAR
VAR_OUTPUT
(Q1 OR S)
Q1 :
END_VAR
BOOL ; (* Output *)
AND
NOT R1 ;
(*
*=F==========================================================================
* FUNCTION_BLOCK: RS END_FUNCTION_BLOCK
* Purpose: Bistable Function Block (Reset Dominant)
*
Function block RS is a
reset dominant latch.
The reset input resets the latch.
The set input sets the latch if the reset input is
FALSE.
VPS Foundation Course 2.1- 118
August 2005 Honeywell Confidential
Hysys Dynamics
Boolean Blocks: Latch, Flipflop, RS
FUNCTION_BLOCK SR
VAR_INPUT (* Body *)
S1 : BOOL ; (* Set *)
R: BOOL ; (* Reset *) Q1 :=
END_VAR
VAR_OUTPUT
S1 OR
Q1 : BOOL ; (* Output *) (Q1 AND
END_VAR
(* NOT R) ;
*=F==========================================================================
* FUNCTION_BLOCK: SR END_FUNCTION_BLOCK
* Purpose: Bistable Function Block (Set Dominant)
*
Function block SR is a
set dominant latch.
The set input sets the latch.
The reset input resets the latch if the set input
is FALSE.
• Delay–on
Delay a good input
Typical input = bad
• Delay–off
Delay a bad signal
Typical input = good
• Delay–on
Typical input = bad
TON provides a delay of time PT (Pulse Time) from the
rising edge of input IN to the rising edge of output Q.
Output ET (Elapsed Time) gives the time since the rising
edge of input IN. The maximum value of ET is PT.
If the width of input IN is less than PT, then output Q does
not change.
• Delay–off
Typical input = good
TOF provides a delay of time PT (Pulse Time) from the
falling edge of input IN to the falling edge of output Q
Output ET (Elapsed Time) gives the time since the
falling edge of input IN.The maximum value of ET is PT
If the width of input IN is less than PT, then output Q
does not change, but output ET still gives the elapsed
time since the falling edge of input IN
• Music
• I-Station
THE END
Hysys Foundation Course