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

Calculator : Entropy & Exergy Analysis
Category   : Thermo

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

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

  entropy_exergy < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
System temperature [K]
Dead state temperature T0 [K]
System pressure [kPa]
Dead state pressure P0 [kPa]
Mass flow rate [kg/s]
Specific heat cp [kJ/kg-K]
Inlet enthalpy h_in [kJ/kg]
Outlet enthalpy h_out [kJ/kg]
Inlet entropy s_in [kJ/kg-K]
Outlet entropy s_out [kJ/kg-K]
Dead state enthalpy h0 [kJ/kg]
Dead state entropy s0 [kJ/kg-K]
Heat inlet rate Qin [kW]
Heat outlet rate Qout [kW]
Heat source temperature Tsrc [K]
Heat sink temperature Tsnk [K]

Website : https://thermofluidcalc.com
