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

Calculator : Solid-Liquid Leaching & Washing
Category   : Masstransfer

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

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

  solid_liquid_leaching < 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 (Leaching configuration (1=Single-stage, 2=Countercurrent)): 2
  Line 2 (Dry insoluble solids S): 1000.0
  Line 3 (Initial solute loading X0): 0.15
  Line 4 (Target solute recovery [%]): 95.0
  Line 5 (Number of stages N): 5
  Line 6 (Fresh solvent flow V): 400.0
  Line 7 (Retained underflow solution U): 250.0
  Line 8 (Equilibrium distribution factor m): 1.0

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