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

Calculator : Fuel Cell Thermodynamics
Category   : Thermo

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

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

  fuel_cell_thermo < 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 (Cell type (1=PEM, 2=SOFC, 3=DMFC, 4=AFC)): 1
  Line 2 (Cell temperature T [K]): 353.15
  Line 3 (System pressure [atm]): 1.0
  Line 4 (Current density [A/cm2]): 0.6
  Line 5 (Active cell area [cm2]): 200.0
  Line 6 (Number of cells in stack): 100
  Line 7 (Hydrogen partial pressure pH2 [atm]): 1.5
  Line 8 (Oxygen partial pressure pO2 [atm]): 0.21
  Line 9 (Transfer coefficient alpha): 0.5
  Line 10 (Exchange current density i0 [A/cm2]): 1e-4
  Line 11 (Area-specific resistance r [Ohm-cm2]): 0.15
  Line 12 (Limiting current density ilim [A/cm2]): 2.0

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