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

Calculator : Heat Exchanger LMTD Sizer
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 -ffree-line-length-none 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 (Flow Configuration (1=Parallel Flow, 2=Counter-Flow)): 2
  Line 2 (Hot Fluid Inlet Temp ($T_{hi}$) [°C]): 120.0
  Line 3 (Hot Fluid Outlet Temp ($T_{ho}$) [°C]): 70.0
  Line 4 (Cold Fluid Inlet Temp ($T_{ci}$) [°C]): 20.0
  Line 5 (Cold Fluid Outlet Temp ($T_{co}$) [°C]): 55.0
  Line 6 (Hot Fluid Mass Flow Rate (m_h) [kg/s]): 1.5
  Line 7 (Hot Specific Heat ($C_{p,h}$) [J/kg-K]): 4180.0
  Line 8 (Cold Fluid Mass Flow Rate (m_c) [kg/s]): 2.0
  Line 9 (Cold Specific Heat ($C_{p,c}$) [J/kg-K]): 4180.0
  Line 10 (Overall Heat Transfer Coefficient ($U$) [W/m²-K]): 800.0

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