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

Calculator : Transient Water Hammer & Valve Closure Surge Pressure
Category   : Fluid-mechanics

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

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

  water_hammer_allievi_surge < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Pipe Material (1=Carbon Steel, 2=Ductile Iron, 3=HDPE, 4=PVC)\nFluid Type (1=Water, 2=Crude Oil, 3=Ethanol)\nPipeline Length L [m]\nPipe Inner Diameter [mm]\nWall Thickness [mm]\nFlow Rate [m³/h]\nStatic Operating Pressure [bar]\nValve Closure Time [s]

Website : https://thermofluidcalc.com
