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

Calculator : Mass Diffusion — Fick's Law & Stagnant Film
Category   : Masstransfer

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

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

  mass_diff < 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 (Diffusion Mode (1=Equimolar Counter-Diffusion, 2=Stagnant Gas B)
): 2
  Line 2 (System Temperature [Â°C]
): 25.0
  Line 3 (Total Pressure [kPa]
): 101.325
  Line 4 (Binary Diffusivity D_AB [m2/s]
): 2.6e-5
  Line 5 (Film Thickness L [m]
): 0.1
  Line 6 (Boundary 1 Solute Partial Pressure [kPa]
): 3.17
  Line 7 (Boundary 2 Solute Partial Pressure [kPa]
): 0.0
  Line 8 (Solute Molecular Weight [g/mol]): 18.015

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