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

Calculator : Diffusion with Chemical Reaction
Category   : Masstransfer

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

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

  diffusion_reaction < 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 (Geometry (1=Slab, 2=Cylinder, 3=Sphere)): 3
  Line 2 (Reaction Order (0=Zero, 1=First)): 1
  Line 3 (Pellet Radius R [m]): 0.002
  Line 4 (Slab Half-Thickness L [m]): 0.002
  Line 5 (Effective Diffusivity De [m2/s]): 1.0e-9
  Line 6 (Reaction Rate Constant k): 0.01
  Line 7 (Surface Concentration Cs [mol/m3]): 2.0
  Line 8 (Catalyst Bulk Density rhoCat [kg/m3]): 1200.0
  Line 9 (Reference Target Thiele Modulus): 1.0

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