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

Calculator : Air Cooler / Finned Tube
Category   : Exchangers

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

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

  hx_finned < 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 (Fin Type (1=Plate Fins, 2=Spiral Fins)
): 2
  Line 2 (Air mass flow rate ma [kg/s]
): 5.0
  Line 3 (Air inlet temperature Tin_a [°C]
): 30.0
  Line 4 (Air density [kg/m3]
): 1.16
  Line 5 (Air specific heat [J/kg-K]
): 1007.0
  Line 6 (Air viscosity [Pa-s]
): 0.0000185
  Line 7 (Air thermal conductivity [W/m-K]
): 0.0263
  Line 8 (Tube fluid mass flow rate mt [kg/s]
): 2.5
  Line 9 (Tube fluid inlet temperature Tin_t [°C]
): 90.0
  Line 10 (Tube fluid density [kg/m3]
): 980.0
  Line 11 (Tube fluid specific heat [J/kg-K]
): 4180.0
  Line 12 (Tube fluid viscosity [Pa-s]
): 0.00035
  Line 13 (Tube fluid thermal conductivity [W/m-K]
): 0.67
  Line 14 (Tube outer diameter do [m]
): 0.0254
  Line 15 (Tube inner diameter di [m]
): 0.022
  Line 16 (Tubes active length L [m]
): 4.0
  Line 17 (Number of rows Nrows
): 4
  Line 18 (Tubes per row Nt_row
): 12
  Line 19 (Transverse tube pitch Pt [m]
): 0.060
  Line 20 (Longitudinal tube pitch Pl [m]
): 0.052
  Line 21 (Fin thickness tf [m]
): 0.0003
  Line 22 (Fin pitch pf [m]
): 0.0028
  Line 23 (Fin thermal conductivity kf [W/m-K]
): 200.0
  Line 24 (Fin height hf [m]
): 0.0125
  Line 25 (Tube wall conductivity ktube [W/m-K]
): 50.0
  Line 26 (Number of tube passes Npasses): 2

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