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

Calculator : HX Pressure Drop Rating
Category   : Exchangers

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

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

  hx_pressure_drop < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Shell-side mass flow rate ms [kg/s]
Tube-side mass flow rate mt [kg/s]
Shell-side fluid density [kg/m3]
Tube-side fluid density [kg/m3]
Shell-side fluid viscosity [Pa-s]
Tube-side fluid viscosity [Pa-s]
Shell-side wall viscosity [Pa-s]
Tube-side wall viscosity [Pa-s]
Shell inside diameter Ds [m]
Baffle spacing B [m]
Tube pitch Pt [m]
Layout type (1=Triangular, 2=Square)
Tube inside diameter di [m]
Tube outer diameter do [m]
Tubes length L [m]
Total number of tubes Nt
Number of tube passes Np

Website : https://thermofluidcalc.com
