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

Calculator : Heat Exchanger — LMTD Method
Category   : Exchangers

Files Included:
  - heat_exchanger_lmtd.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 heat_exchanger_lmtd.f90 -o hx_lmtd

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

  hx_lmtd < 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 Flow, 2=Counter Flow, 3=Shell & Tube, 4=Cross Flow)
): 1
  Line 2 (Hot fluid inlet temp Thi [Â°C]
): 150.0
  Line 3 (Hot fluid outlet temp Tho [Â°C]
): 90.0
  Line 4 (Cold fluid inlet temp Tci [Â°C]
): 20.0
  Line 5 (Cold fluid outlet temp Tco [Â°C]
): 60.0
  Line 6 (Hot fluid mass flow rate mh [kg/s]
): 2.0
  Line 7 (Cold fluid mass flow rate mc [kg/s]
): 3.0
  Line 8 (Hot fluid specific heat Cph [J/kg-K]
): 4180.0
  Line 9 (Cold fluid specific heat Cpc [J/kg-K]
): 4180.0
  Line 10 (Overall heat transfer coefficient U [W/m2-K]): 500.0

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