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

Calculator : Economic Pipe Diameter Sizer
Category   : Tools

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

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

  economic_pipe < 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 (Flow rate Q [m3/s]): 0.01
  Line 2 (Fluid density [kg/m3]): 998.0
  Line 3 (Dynamic viscosity [Pa-s]): 0.001
  Line 4 (Pipe capital cost factor [$/m per mm diameter]): 0.50
  Line 5 (Electricity cost [$/kWh]): 0.10
  Line 6 (Operating hours per year): 8760.0
  Line 7 (Pumping efficiency [0-1]): 0.70
  Line 8 (Friction factor (0=auto-calculate)): 0.0
  Line 9 (Pipe length [m]): 100.0
  Line 10 (Interest rate [%]): 5.0
  Line 11 (System lifetime [years]): 20.0

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