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

Calculator : Heat Sink & Fin Array Calculator
Category   : Conduction

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

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

  heat_sink_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 (Heat sink type (1=Plate fin, 2=Pin fin)
): 1
  Line 2 (Base width W [mm]
): 100.0
  Line 3 (Base depth D [mm]
): 100.0
  Line 4 (Base thickness t_base [mm]
): 5.0
  Line 5 (Number of fins N_fins
): 12
  Line 6 (Fin height H_fin [mm]
): 40.0
  Line 7 (Fin thickness/diameter t_fin [mm]
): 1.5
  Line 8 (Spacing s_fin [mm] (dummy)
): 0.0
  Line 9 (Material (1=Aluminum, 2=Copper, 3=Custom)
): 1
  Line 10 (Custom thermal conductivity k [W/m-K]
): 200.0
  Line 11 (Flow mode (1=Forced, 2=Natural)
): 1
  Line 12 (Inlet velocity v_in [m/s]
): 2.0
  Line 13 (Input power Q [W]
): 50.0
  Line 14 (Ambient temperature T_amb [Â°C]
): 25.0
  Line 15 (Custom h flag (0=Auto, 1=Manual)
): 1
  Line 16 (Manual convection coefficient h [W/m2-K]): 20.0

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