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

Calculator : Internal Combustion Cycles (Otto & Diesel)
Category   : Thermo

Files Included:
  - ic_engine_cycle.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 -ffree-line-length-none ic_engine_cycle.f90 -o ic_engine_calc

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

  ic_engine_calc < 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=Otto, 2=Diesel)): 1
  Line 2 (Compression Ratio ($r$)): 8.5
  Line 3 (Inlet Temp ($T_1$) [°C]): 25.0
  Line 4 (Inlet Pressure ($P_1$) [kPa]): 100.0
  Line 5 (Maximum Temperature ($T_3$) [°C]): 1200.0
  Line 6 (Isentropic Compression Efficiency ($\eta_c$) [0-1]): 0.85
  Line 7 (Isentropic Expansion Efficiency ($\eta_e$) [0-1]): 0.88
  Line 8 (Mass Flow Rate (m) [kg/s]): 1.2

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