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

Calculator : Safety & Relief Valve Sizing
Category   : Tools

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

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

  relief_valve < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Service type (1=Gas/Vapor, 2=Steam, 3=Liquid)
Set pressure Ps [kPa(g)]
Back pressure Pb [kPa(g)]
Design temperature T [K] (or [C] for steam)
Molar mass MW [g/mol]
Specific heat ratio k (cp/cv)
Required mass flow rate W [kg/h]
Fluid density [kg/m3] (for liquids)
Dynamic viscosity [cP] (for liquids)
Overpressure allowance [%]
Discharge coefficient Kd (0=default)
Backpressure correction Kb (0=default)

Website : https://thermofluidcalc.com
