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

Calculator : Duct Sizing & Static Regain
Category   : Tools

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

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

  duct_sizing_regain < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Sizing Method (1=Equal Friction, 2=Velocity Method)\nShape Mode (1=Circular, 2=Rectangular)\nAir Flow Rate [m³/h]\nTarget Friction Loss [Pa/m]\nTarget Air Velocity [m/s]\nConstrained Rectangular Width a [mm]

Website : https://thermofluidcalc.com
