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

Calculator : Membrane Separation Diffusion
Category   : Masstransfer

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

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

  membrane_diffusion < input.txt

-------------------------------------------------------------------------
3. Input Parameter Sequence
-------------------------------------------------------------------------
Membrane Model (1=Dense Solution-Diffusion, 2=Porous Knudsen, 3=Mixed Resistance)
Membrane thickness delta [m]
Membrane area A [m2]
Temperature [C]
Feed pressure [bar]
Permeate pressure [bar]
Feed mole fraction A
Permeate mole fraction A
Feed mole fraction B
Permeate mole fraction B
Diffusivity A [m2/s]
Solubility A [mol/m3-Pa]
Diffusivity B [m2/s]
Solubility B [mol/m3-Pa]
Pore radius rp [m]
Porosity epsilon
Tortuosity tau
Molar mass A [g/mol]
Molar mass B [g/mol]
Feed molar flow rate [mol/s]

Website : https://thermofluidcalc.com
