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

Calculator : Pipe Network Analysis
Category   : Fluid

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

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

  pipe_networks_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 (Network type (1=Loop, 2=Branch)
): 1
  Line 2 (Number of pipes
): 3
  Line 3 (Fluid density [kg/m3]
): 998.0
  Line 4 (Fluid dynamic viscosity [Pa-s]
): 0.001002
  Line 5 (Total inlet flow rate [m3/s]
): 0.01
  Line 6 (Elevation change [m]
): 0.0
  Line 7 (Pipe definitions (Loop_Node1 Loop_Node2 Diam_m Len_m Rough_m K_minor)): 1 2 0.05 100.0 4.5e-5 1.5
  Line 8 (Parameter 8): 2 3 0.04 150.0 4.5e-5 2.0
  Line 9 (Parameter 9): 3 1 0.05 120.0 4.5e-5 0.5

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