

	            PINCH48  (version 1.1)

		Basic Pinch Analysis on a HP48

			
              Copyright 1998, 1999  Roger J. Zemp
			
                     DESQ - FEQ - Unicamp
                           Brazil


                  Disclaimers and Legal Issues
                        What is PINCH48
                    Version 1.1 Release Notes
                         Installation
                            Example
                   How to Contact the Author


-------------------------------------------------------------------------

DISCLAIMERS AND LEGAL ISSUES

The program PINCH48, and the documentation file are provided "as is", 
and are subject to change without notice.

The author disclaims all warranties, either expressed or implied,
including, but not limited to, implied warranties of merchantability and 
fitness for a particular purpose, with regard to the enclosed program and
the accompanying written material.

In no event shall the author be liable for error, or for incidental or 
consequential damages whatsoever (including, without limitation, damages 
for loss of business profits, business interruption, loss of business 
information, or any other pecuniary loss) in connection with the furnishing,
performance, inability to use, or use, of the enclosed software and
documentation, even if the author has been advised of the possibility 
of such damages.

Sale of this material is not allowed without the prior written permission
of Roger J. Zemp.  Non-commercial distribution is allowed, provided that
the whole package is distributed, the original documentation is preserved
unchanged, and any modified version(s) are clearly marked as such.


-------------------------------------------------------------------------
 
WHAT IS PINCH48 

PINCH48 is a set of programs to do basic heat integration of chemical
processes. For a given set of process streams and the minimum
temperature approach (DTmin), PINCH48 computes the minimum energy
requirement and identifies the process pinch(es). Data required are the
streams inlet and outlet temperatures, and product of mass flow and heat
capacity of each stream. 

PINCH48 uses the Problem Table Algorithm to compute the energy
requirement of the process. The composite and grand composite curves are
also computed and shown on screen. 

I use PINCH48 as a teaching tool to show the students the basics of heat
integration. PINCH48 is also being used by Chem Eng students at my department
as a basic tool in courses where heat integration and energy efficiency
is an issue. 

The use of PINCH48 requires a basic knowledge of Pinch Analysis. Please
consult the references below for further information: 

1. Linnhoff B., et al.; 1984, A User Guide on Process Integration for
the Efficient Use of Energy, ICheme (UK) 

2. Douglas, J. M.; 1988, Conceptual Design of Chemical Processes,
McGraw-Hill 

3. Smith, R.; 1995, Chemical Process Design, McGraw-Hill 


-------------------------------------------------------------------------

VERSION 1.1 RELEASE NOTES 

In version 1.1 a few bugs of version 1.0 were corrected:
- PINCH48 now properly identifies threshold problems 
- multiple pinch points are shown in a list, both on screen and stored 
  in TP (see below)
- makes use of some new features of the GX

My thanks to Maxime Malaure, MSc Student at the Department of Process 
Integration (UMIST), Manchester, UK, for pointing out the bugs and making 
some very good suggestions.


THIS ALSO APPLIES ...

This is an updated release of the first version of PINCH48. It is 
entirely written in user-RPL, and is therefore not the fastest 
program on earth. 

Due to the use of sme new features of the GX (version 1.0 was written on a SX),
a modified version for the 48SX can be requested from the author, Just 
send me an e-mail.

Size of the problems that can be solved with PINCH48 is limited by the
available memory, and your patience in waiting for the answer. 


-------------------------------------------------------------------------

INSTALLATION 

PINCH48 is distributed as a directory object, containing the codes
and example files. Just download the PINCH48 file to the HP48, and store
it as P48 (or any other name you like). 

PINCH48 contains the following codes:
  PINCH:  the main code. Builds the Problem Table, identifies the pinch 
          temperature and energy requirements
  GCC:    draws the grand composite curve
  CC:     draws the composite curves
  DSORT:  sorting routine
  
Additional variables: 
  DTMIN:  minimum temperature approach allowed in the process (required)
  EX:     matrix with example data

Generated variables:
  PTA:    matrix with the problem table data 
  QHOT:   hot utility requirement
  QCOLD:  cold utility requirement
  TP: 	  list with shifted pinch temperature
  NT:     number of temperature boundaries
  N:      number of streams

plus PPAR (used for plotting)

-------------------------------------------------------------------------

EXAMPLE

Given the following set of process streams, compute the energy 
requirement and identify the pinch temperature for a minimum temperature
approach of 10C:

stream      Tin (C)  Tout (C)  MCp (kW/C)
 1  cold      30       120       36
 2  hot      180        80       20
 3  cold      60       100       80
 4  hot      130        40       40


PROCEDURE

1. goto the P48 directory (or the one you stored PINCH48 in)

2. store the stream data in matrix form and leave on stack 
   (example data available in variable EX):

    	1: [[ 30  120 36]
            [ 180  80 20]
            [ 60  100 80]
            [ 130  40 40]
   	---------------------

3. store DTmin in DTMIN:

	10 'DTMIN' STO

4. press PINCH to compute energy requirements:

        4:
	3:       PINCH: { 65 }
	2:          Q HOT: 960
	1:         Q COLD: 120
	----------------------

	which means that the process requires 960 kW of hot utility,
	120 kW of cold utility, and the pinch temperatures are 60C for
	cold streams (65 - DTmin/2) and 70C for hot streams (65 + DTmin/2).

	If the problem has multiple pinch temperatures, then these are shown
        as a list, e.g. {72 65}.
           
5. press GCC to draw the grand composite curve

6. use CC to draw the grand composite curve:
      shifted composites:   0 CC
      true composites:      1 CC

Hint: use the screen cursors to read enthalpy-temperature data from the curves. 


   The complete Problem Table is stored in PTA:

        a    b    c     d       e      f      g      h      i    
   [[ 175   50   20     0    1000   1000    960   5600   6560 ] 
    [ 125   20   60    36     480   1480   1960   4600   6560 ] 
    [ 105   30   60   116   -1680   -200   2440   3400   5840 ] 
    [  75   10   40   116    -760   -960    760   1600   2360 ] 
    [  65   30   40    36     120   -840      0   1200   1200 ] 
    [  35    0    0     0       0      0    120      0    120 ]]

    where:
    a  interval temperature 
    b  interval temperature difference 
    c  sum of hot stream MCp 
    d  sum of cold stream MCp
    e  energy balance
    f  energy surplus/deficit
    g  grand composite curve
    h  hot composite curve 
    i  cold composite curve

For threshold problems, where either the cold or utility is not required, 
the pinch temperature is shown in empty brackets { }, as there is no 
temperature boundary with zero heat flow across it.

-------------------------------------------------------------------------

HOW TO CONTACT THE AUTHOR

Feel free to e-mail me if you have any comments, suggestions, questions or
problems. Also if you find any bugs (or what you think is a bug), please 
notify me.

Hope you like the program. Enjoy it.

Roger

-----------------------------------------------
	Roger J. Zemp

	DESQ - FEQ - Unicamp
	Caixa Postal 6066
	13083-970  Campinas SP
	Brazil

	email: zemp@desq.feq.unicamp.br
------------------------------------------------

The latest version of PINCH48 and other information regarding
the program (and other programs for the HP48) can be found at:

URL: www.feq.unicamp.br/~zemp/
