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

Calculator : Carnot Cycle & Heat Pump Limit
Category   : Thermo

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

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

  carnot_heatpump < 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 (Hot reservoir temperature TH [K]): 773.15
  Line 2 (Cold reservoir temperature TL [K]): 303.15
  Line 3 (Desired heat or power Q [kW]): 500000.0
  Line 4 (Cycle type (1=Power Cycle, 2=Refrigeration, 3=Heat Pump)): 1
  Line 5 (Real cycle factor (fraction of Carnot)): 0.50

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