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

Calculator : Otto & Diesel Cycles
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 -O3 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, 3=Dual)
): 1
  Line 2 (Ambient temperature T1 [K]
): 300.0
  Line 3 (Ambient pressure P1 [kPa]
): 100.0
  Line 4 (Compression ratio r
): 9.5
  Line 5 (Maximum cycle temperature T3 [K]
): 1800.0
  Line 6 (Compressor isentropic efficiency
): 0.85
  Line 7 (Expansion isentropic efficiency
): 0.85
  Line 8 (Air mass flow rate mdot [kg/s]): 0.02

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