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

Calculator : Flange Pressure-Temperature Rating
Category   : Tools

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

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

  flange_rating < 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 (Material group (1=CS Group 1.1, 2=CS Group 1.2, 3=SS Group 2.1, 4=SS Group 2.2, 5=SS Group 2.3)): 1
  Line 2 (Flange pressure class (150, 300, 400, 600, 900, 1500, 2500)): 150
  Line 3 (Design temperature [F]): 400.0
  Line 4 (Gasket type (1=Ring joint, 2=Spiral wound, 3=Flat metal, 4=PTFE)): 1

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