Fickian Diffusion

The point of the Basics section was to establish that the laws of diffusion are very simple. The problem is that the simple laws don't give simple answers - they are differential equations with behaviour that can become quite complex. With modern computing power this isn't a problem. The equations can be solved step-by-step by breaking the problem into a grid of small cells and calculating the concentration differences between each pair of cells and from that and the diffusion coefficient, calculating how much flows from each cell to the next over a given time step. If the number of cells is large and the time steps are small then the calculation will be highly accurate, but too slow for an app. If the number of cells is small and the time steps are large then, unfortunately, the numerical methods break down. So a compromise has to be reached. Using the same inputs as before, but adding a timescale over which to calculate, we can see what happens as we change our key parameters. Because the calculations can be relatively slow you have to click the Calculate button once you've set up your parameters with the sliders. There is a TimeOut that defaults to 5s in case a calculation will take too long. If it exceeds that time the "time" graph shows a TimeOut alert. You can choose a longer TimeOut if you really need the answer.

Fickian Diffusion

L (μm)
C (Vol Fraction)
D (cm²/s)
*10^
t (min)
TimeOut in:
Abs.
Blocked
Des.
Integrated
F (g/cm²/s)
t½ (min)
Breakthrough (min)

Even though this is a simplified set-up, you already have a powerful diffusion modeller. You can simulate Absorption (with or without a Blocked second side) and Desorption. In addition to the calculated values shown with a blue background, you get a readout of the values by moving your mouse over any of the plots.

The left-hand plot shows how, at the specified time the concentration varies across the width of the sample. Conc % is always defined based on the concentration C (Vol Fraction) specified as 100%. So if C is 0.2 (meaning for Desorption that the whole sample contains 20% or for Absorption that the outer 1nm contains 20% at t=0) then 100% means 0.2 vol fraction. As in Basics, the concentrations can be considered to be g/cc or Vol Fraction as densities of 1 are assumed for simplicity.

The right-hand plot shows how concentration in the sample varies with time. The left-hand axis is in Conc %, as before. The right-hand access shows (if relevant) the Permeation in g/cm²/s or, if the Integrated option is selected, the total amount over time in g/cm².

Where relevant, values are calculated for: flux at the given time; half-time to fill or empty the sample; breakthrough to the other side where a concentration of 0.1% of the original value is taken as being "breakthrough".

If any of the graphs look peculiar that will be because the numerics have broken down to a greater or lesser extent - so the results should be treated with caution. It requires more processing power to provide more robust numerics, but the apps must run OK even on a modest phone so they cannot be perfect for every simulation.

The official site of Hansen Solubility Parameters and HSPiP software.