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

Calculator : Water Hammer Calculator
Category   : Fluid

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

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

  water_hammer_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 (Pipe length [m]
): 150.0
  Line 2 (Pipe diameter [mm]
): 100.0
  Line 3 (Pipe wall thickness [mm]
): 5.0
  Line 4 (Pipe modulus [GPa]
): 200.0
  Line 5 (Flow velocity [m/s]
): 2.0
  Line 6 (Fluid bulk modulus [GPa]
): 2.2
  Line 7 (Fluid density [kg/m3]
): 1000.0
  Line 8 (Valve closure time [s]
): 0.5
  Line 9 (Valve closure profile (1=Inst, 2=Linear, 3=Parabolic)
): 2
  Line 10 (Static pressure [kPa]
): 300.0
  Line 11 (Vapor pressure [kPa]): 2.34

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