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

Calculator : Heat Exchanger ε-NTU Rater
Category   : Exchangers

Files Included:
  - heat_exchanger_ntu.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 -ffree-line-length-none heat_exchanger_ntu.f90 -o heat_exchanger_ntu

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

  heat_exchanger_ntu < 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 (Configuration (1=Parallel, 2=Counter, 3=Cross Unmixed, 4=Shell-Tube 1-2 Pass)): 2
  Line 2 (Hot Inlet Temp ($T_{hi}$) [°C]): 120.0
  Line 3 (Cold Inlet Temp ($T_{ci}$) [°C]): 20.0
  Line 4 (Hot Mass Flow (m_h) [kg/s]): 1.5
  Line 5 (Hot Fluid Specific Heat ($C_{p,h}$) [J/kg-K]): 4180.0
  Line 6 (Cold Mass Flow (m_c) [kg/s]): 2.0
  Line 7 (Cold Fluid Specific Heat ($C_{p,c}$) [J/kg-K]): 4180.0
  Line 8 (Overall HTC ($U$) [W/m²-K]): 800.0
  Line 9 (Heat Exchanger Surface Area ($A$) [m²]): 8.5

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