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

Calculator : Regenerative Heat Exchanger Analysis
Category   : Exchangers

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

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

  regenerator < 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 (Regenerator type (1=Rotary, 2=Fixed matrix)
): 1
  Line 2 (Hot fluid heat capacity rate Ch [W/K]
): 500
  Line 3 (Cold fluid heat capacity rate Cc [W/K]
): 450
  Line 4 (Inlet hot temperature Thi [Â°C]
): 35
  Line 5 (Inlet cold temperature Tci [Â°C]
): 5
  Line 6 (Number of Transfer Units NTU
): 3
  Line 7 (Matrix-to-minimum fluid capacity ratio Cr*
): 5
  Line 8 (Rotation speed [rpm] (Rotary only)
): 10
  Line 9 (Matrix mass m_mat [kg]
): 200
  Line 10 (Matrix specific heat cp_mat [J/kg-K]): 900

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