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

Calculator : Liquid-Liquid Extraction Solver
Category   : Masstransfer

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

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

  liquid_liquid_extraction < 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 (Extraction configuration (1=Single-stage, 2=Crosscurrent, 3=Countercurrent)): 2
  Line 2 (Feed flow F): 100.0
  Line 3 (Feed solute fraction xF): 0.12
  Line 4 (Solvent flow S): 80.0
  Line 5 (Solvent solute fraction yS): 0.0
  Line 6 (Distribution coefficient KD): 2.1
  Line 7 (Number of stages N): 4
  Line 8 (Target recovery [%]): 90.0

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