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

Calculator : Bernoulli & Extended Energy Equation
Category   : Fluid

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

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

  bernoulli_energy_calc < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Solver Mode (1=Simple Bernoulli, 2=Extended Energy)
Solve For Target (1=P2, 2=V2, 3=z2, 4=Q, 5=hp, 6=hL)
Fluid Density [kg/m3]
Upstream Pressure P1 [Pa]
Upstream Velocity V1 [m/s]
Upstream Elevation z1 [m]
Downstream Pressure P2 [Pa]
Downstream Velocity V2 [m/s]
Downstream Elevation z2 [m]
Pipe 1 Diameter D1 [m]
Pipe 2 Diameter D2 [m]
Flow Rate Q [m3/s]
Pump Head added hp [m]
Turbine Head extracted ht [m]
Head Loss hL [m]

Website : https://thermofluidcalc.com
