=========================================================================
  ThermoFluidCalc — Standalone Fortran Execution Guide
=========================================================================

Calculator : TEMA Shell-and-Tube HX Sizing
Category   : Exchangers

Files Included:
  - shell_tube_tema.f90 (Fortran 90/2008 Source Code)
  - input.txt (Pre-configured Sample Input)

-------------------------------------------------------------------------
1. How to Compile
-------------------------------------------------------------------------
Make sure you have GNU Fortran (gfortran) or Intel Fortran (ifort) installed.
Run the following compilation command in your terminal:

  gfortran -O3 shell_tube_tema.f90 -o shell_tube_tema

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

  shell_tube_tema < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Shell Type (1=E, 2=F, etc.)
Tube Layout (1=Triangular, 2=Square)
Tube Pass Count (1, 2, 4, 6)
Hot fluid inlet temp Thi [°C]
Hot fluid outlet temp Tho [°C]
Cold fluid inlet temp Tci [°C]
Cold fluid outlet temp Tco [°C]
Hot fluid mass flow rate mh [kg/s]
Cold fluid mass flow rate mc [kg/s]
Hot fluid density [kg/m3]
Hot fluid specific heat [J/kg-K]
Hot fluid dynamic viscosity [Pa-s]
Hot fluid thermal conductivity [W/m-K]
Cold fluid density [kg/m3]
Cold fluid specific heat [J/kg-K]
Cold fluid dynamic viscosity [Pa-s]
Cold fluid thermal conductivity [W/m-K]
Tube outer diameter [m]
Tube wall thickness [m]
Active tube length [m]
Tube pitch [m]
Baffle spacing [m]
Hot fluid fouling factor [m2-K/W]
Cold fluid fouling factor [m2-K/W]
Tube wall thermal conductivity [W/m-K]
Shell-side fluid selection (1=Hot fluid in shell, 2=Cold fluid in shell)

Website : https://thermofluidcalc.com
