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

Calculator : Plate Heat Exchanger
Category   : Exchangers

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

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

  hx_plate < 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 (Mode (1=Verify / Rating, 2=Sizing)
): 1
  Line 2 (Initial plate count Nplates
): 29
  Line 3 (Hot fluid inlet temp [°C]
): 90.0
  Line 4 (Hot fluid outlet temp [°C]
): 40.0
  Line 5 (Cold fluid inlet temp [°C]
): 20.0
  Line 6 (Cold fluid outlet temp [°C]
): 35.0
  Line 7 (Hot fluid mass flow rate [kg/s]
): 2.0
  Line 8 (Cold fluid mass flow rate [kg/s]
): 3.0
  Line 9 (Hot fluid density [kg/m3]
): 990.0
  Line 10 (Hot fluid specific heat [J/kg-K]
): 4180.0
  Line 11 (Hot fluid viscosity [Pa-s]
): 0.0008
  Line 12 (Hot fluid conductivity [W/m-K]
): 0.6
  Line 13 (Hot wall viscosity [Pa-s]
): 0.0008
  Line 14 (Cold fluid density [kg/m3]
): 998.0
  Line 15 (Cold fluid specific heat [J/kg-K]
): 4180.0
  Line 16 (Cold fluid viscosity [Pa-s]
): 0.001
  Line 17 (Cold fluid conductivity [W/m-K]
): 0.6
  Line 18 (Cold wall viscosity [Pa-s]
): 0.001
  Line 19 (Plate width W [m]
): 0.35
  Line 20 (Thermal height Lp [m]
): 0.85
  Line 21 (Plate thickness t_plate [m]
): 0.0005
  Line 22 (Pressing depth b [m]
): 0.003
  Line 23 (Corrugation wavelength pc [m]
): 0.008
  Line 24 (Chevron angle beta [deg]
): 45.0
  Line 25 (Port diameter [mm]
): 50.0
  Line 26 (Max allowable pressure drop [kPa]
): 150.0
  Line 27 (Hot side fouling factor [m2-K/W]
): 0.0001
  Line 28 (Cold side fouling factor [m2-K/W]
): 0.0001
  Line 29 (Plate wall thermal conductivity [W/m-K]): 50.0

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