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

Calculator : Ideal Gas State Solver
Category   : Thermo

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

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

  ideal_gas_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 (Gas Preset (1=Air, 2=He, 3=N2, 4=O2, 5=CO2, 6=H2)): 1
  Line 2 (Pressure ($P$) [kPa] (or -1 if solving for P)): 101.325
  Line 3 (Temperature ($T$) [K] (or -1 if solving for T)): 298.15
  Line 4 (Volume ($V$) [m³] (or -1 if solving for V)): 1.0
  Line 5 (Mass ($m$) [kg] (or -1 if solving for m)): -1

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