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

Calculator : Entropy & Exergy Analysis
Category   : Thermo

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

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

  entropy_exergy < 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 (System temperature [K]): 773.15
  Line 2 (Dead state temperature T0 [K]): 298.15
  Line 3 (System pressure [kPa]): 8000.0
  Line 4 (Dead state pressure P0 [kPa]): 101.325
  Line 5 (Mass flow rate [kg/s]): 50.0
  Line 6 (Specific heat cp [kJ/kg-K]): 2.1
  Line 7 (Inlet enthalpy h_in [kJ/kg]): 3400.0
  Line 8 (Outlet enthalpy h_out [kJ/kg]): 2600.0
  Line 9 (Inlet entropy s_in [kJ/kg-K]): 6.85
  Line 10 (Outlet entropy s_out [kJ/kg-K]): 7.50
  Line 11 (Dead state enthalpy h0 [kJ/kg]): 104.9
  Line 12 (Dead state entropy s0 [kJ/kg-K]): 0.367
  Line 13 (Heat inlet rate Qin [kW]): 0.0
  Line 14 (Heat outlet rate Qout [kW]): 0.0
  Line 15 (Heat source temperature Tsrc [K]): 1200.0
  Line 16 (Heat sink temperature Tsnk [K]): 298.15

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