=========================================================================
  ThermoFluidCalc — Standalone Fortran Execution Guide
=========================================================================

Calculator : Water Hammer Calculator
Category   : Fluid

Files Included:
  - water_hammer.f90 (Fortran 90/2008 Source Code)
  - input.txt (Pre-configured Sample Input)

-------------------------------------------------------------------------
1. How to Compile
-------------------------------------------------------------------------
Make sure you have GNU Fortran (gfortran) or Intel Fortran (ifort) installed.
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 pipe the input.txt file into stdin:

  water_hammer_calc < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Pipe length [m]
Pipe diameter [mm]
Pipe wall thickness [mm]
Pipe modulus [GPa]
Flow velocity [m/s]
Fluid bulk modulus [GPa]
Fluid density [kg/m3]
Valve closure time [s]
Valve closure profile (1=Inst, 2=Linear, 3=Parabolic)
Static pressure [kPa]
Vapor pressure [kPa]

Website : https://thermofluidcalc.com
