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

Calculator : Two-Phase Gas-Liquid Pipe Flow
Category   : Fluid

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

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

  two_phase_flow < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Pipe Diameter D [mm]
Pipe Length L [m]
Pipe Roughness eps [mm]
Inclination Angle theta [deg] (0=horiz, 90=vert)
Total Mass Flow Rate [kg/s]
Vapor/Gas Quality x [0-1]
Liquid Density [kg/m3]
Liquid Dynamic Viscosity [Pa-s]
Interfacial Surface Tension [N/m]
Gas Density [kg/m3]
Gas Dynamic Viscosity [Pa-s]

Website : https://thermofluidcalc.com
