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

Calculator : HX Pressure Drop Rating
Category   : Exchangers

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

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

  hx_pressure_drop < 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 (Shell-side mass flow rate ms [kg/s]
): 2.0
  Line 2 (Tube-side mass flow rate mt [kg/s]
): 3.0
  Line 3 (Shell-side fluid density [kg/m3]
): 990.0
  Line 4 (Tube-side fluid density [kg/m3]
): 998.0
  Line 5 (Shell-side fluid viscosity [Pa-s]
): 0.0008
  Line 6 (Tube-side fluid viscosity [Pa-s]
): 0.001
  Line 7 (Shell-side wall viscosity [Pa-s]
): 0.0008
  Line 8 (Tube-side wall viscosity [Pa-s]
): 0.001
  Line 9 (Shell inside diameter Ds [m]
): 0.35
  Line 10 (Baffle spacing B [m]
): 0.15
  Line 11 (Tube pitch Pt [m]
): 0.02381
  Line 12 (Layout type (1=Triangular, 2=Square)
): 1
  Line 13 (Tube inside diameter di [m]
): 0.01575
  Line 14 (Tube outer diameter do [m]
): 0.01905
  Line 15 (Tubes length L [m]
): 3.0
  Line 16 (Total number of tubes Nt
): 120
  Line 17 (Number of tube passes Np): 2

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