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

Calculator : Bernoulli & Extended Energy Equation
Category   : Fluid

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

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

  bernoulli_energy_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 (Solver Mode (1=Simple Bernoulli, 2=Extended Energy)
): 2
  Line 2 (Solve For Target (1=P2, 2=V2, 3=z2, 4=Q, 5=hp, 6=hL)
): 1
  Line 3 (Fluid Density [kg/m3]
): 1000.0
  Line 4 (Upstream Pressure P1 [Pa]
): 200000.0
  Line 5 (Upstream Velocity V1 [m/s]
): 2.0
  Line 6 (Upstream Elevation z1 [m]
): 10.0
  Line 7 (Downstream Pressure P2 [Pa]
): 100000.0
  Line 8 (Downstream Velocity V2 [m/s]
): 0.0
  Line 9 (Downstream Elevation z2 [m]
): 5.0
  Line 10 (Pipe 1 Diameter D1 [m]
): 0.1
  Line 11 (Pipe 2 Diameter D2 [m]
): 0.08
  Line 12 (Flow Rate Q [m3/s]
): 0.0
  Line 13 (Pump Head added hp [m]
): 15.0
  Line 14 (Turbine Head extracted ht [m]
): 0.0
  Line 15 (Head Loss hL [m]): 2.0

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