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

Calculator : Shell-and-Tube Sizing & Rating
Category   : Exchangers

Files Included:
  - shell_tube_design.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 shell_tube_design.f90 -o shell_tube_calc

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

  shell_tube_calc < 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 (Number of Shell Passes ($N$)): 1
  Line 2 (Hot Fluid Inlet Temp ($T_{hi}$) [°C]): 150.0
  Line 3 (Hot Fluid Outlet Temp ($T_{ho}$) [°C]): 80.0
  Line 4 (Hot Mass Flow Rate ($\dot{m}_h$) [kg/s]): 1.5
  Line 5 (Hot Specific Heat ($C_{p,h}$) [J/kg-K]): 4180.0
  Line 6 (Cold Fluid Inlet Temp ($T_{ci}$) [°C]): 20.0
  Line 7 (Cold Fluid Outlet Temp ($T_{co}$) [°C]): 60.0
  Line 8 (Cold Mass Flow Rate ($\dot{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]): 600.0

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