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

Calculator : Surge Tank & Surge Analysis
Category   : Fluid

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

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

  surge_tank < 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 (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): 0.0
  Line 2 (Parameter 2): 0.0
  Line 3 (Parameter 3): 0.0
  Line 4 (Parameter 4): 0.0
  Line 5 (Parameter 5): 0.0
  Line 6 (Parameter 6): 0.0
  Line 7 (Parameter 7): 0.0
  Line 8 (Parameter 8): 0.0
  Line 9 (Parameter 9): 0.0
  Line 10 (Parameter 10): 0.0

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