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

Calculator : Stirling & Ericsson Cycles
Category   : Thermo

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

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

  stirling_ericsson < 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 (Cycle type (1=Stirling, 2=Ericsson)): 1
  Line 2 (Hot source temperature TH [K]): 900.0
  Line 3 (Cold sink temperature TL [K]): 300.0
  Line 4 (Minimum gas volume Vmin [m3]): 0.0005
  Line 5 (Maximum gas volume Vmax [m3]): 0.002
  Line 6 (Molar mass of gas [g/mol]): 4.003
  Line 7 (Specific heat ratio gamma (cp/cv)): 1.667
  Line 8 (Amount of gas [moles]): 1.0

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