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

Calculator : Surge Tank & Surge Analysis
Category   : Fluid

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

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

  surge_tank < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Tunnel length L [m]\nTunnel area At [mÂ²]\nTunnel diameter Dt [m]\nSurge tank area As [mÂ²]\nDarcy friction factor f\nSteady-state flow Qâ‚€ [mÂ³/s]\nNet head Hâ‚€ [m]\nGravity g [m/sÂ²]\nNumber of steps\nns_init

Website : https://thermofluidcalc.com
