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

Calculator : Otto & Diesel Cycles
Category   : Thermo

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

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

  ic_engine_calc < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Cycle type (1=Otto, 2=Diesel, 3=Dual)
Ambient temperature T1 [K]
Ambient pressure P1 [kPa]
Compression ratio r
Maximum cycle temperature T3 [K]
Compressor isentropic efficiency
Expansion isentropic efficiency
Air mass flow rate mdot [kg/s]

Website : https://thermofluidcalc.com
