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

Calculator : Regenerative Rankine Cycle
Category   : Thermo

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

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

  rankine_regenerative < 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 (Boiler pressure Pb [Pa]): 8.0e6
  Line 2 (Turbine inlet temperature Tb [K]): 773.15
  Line 3 (Condenser pressure Pc [Pa]): 10.0e3
  Line 4 (Number of extraction stages (1 or 2)): 1
  Line 5 (Extraction stage 1 pressure [Pa]): 0.8e6
  Line 6 (Extraction stage 2 pressure [Pa] (for n=2)): 0.3e6
  Line 7 (Feedwater heater type (1=Open FWH, 2=Closed FWH)): 1
  Line 8 (Turbine isentropic efficiency): 0.88
  Line 9 (Pump isentropic efficiency): 0.85
  Line 10 (Steam mass flow rate [kg/s]): 50.0

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