=========================================================================
  ThermoFluidCalc — Offline Fortran Execution Guide
=========================================================================

Calculator : Pinch Analysis & Process Integration
Category   : Exchangers

Files Included:
  - hx_pinch.f90 (Fortran Source Code)
  - input.txt (Pre-configured Sample Input)

-------------------------------------------------------------------------
1. How to Compile
-------------------------------------------------------------------------
Make sure you have a Fortran compiler installed (like gfortran).
Run the following compilation command in your terminal:

  gfortran -O3 hx_pinch.f90 -o hx_pinch

-------------------------------------------------------------------------
2. How to Execute
-------------------------------------------------------------------------
Run the compiled binary and redirect the input.txt file into stdin:

  hx_pinch < input.txt

-------------------------------------------------------------------------
3. Input File Details
-------------------------------------------------------------------------
The input file 'input.txt' contains sequential parameters separated by
newlines. Here is the structure of the included 'input.txt':

  Line 1 (Minimum temperature difference dT_min [K]
): 10.0
  Line 2 (Number of process streams N
): 4
  Line 3 (Stream 1: Type (1=Hot, 2=Cold), Ts [°C], Tt [°C], CP [kW/K]
): 1 150.0 60.0 20.0
  Line 4 (Stream 2: Type (1=Hot, 2=Cold), Ts [°C], Tt [°C], CP [kW/K]
): 1 90.0 60.0 80.0
  Line 5 (Stream 3: Type (1=Hot, 2=Cold), Ts [°C], Tt [°C], CP [kW/K]
): 2 20.0 125.0 25.0
  Line 6 (Stream 4: Type (1=Hot, 2=Cold), Ts [°C], Tt [°C], CP [kW/K]): 2 80.0 140.0 30.0

=========================================================================
ThermoFluidCalc — https://thermofluidcalc.com
