Professional Documents
Culture Documents
Supplemental Information
Systematically Improving
Espresso: Insights from Mathematical
Modeling and Experiment
Michael I. Cameron, Dechen Morisco, Daniel Hofstetter, Erol Uman, Justin
Wilkinson, Zachary C. Kennedy, Sean A. Fontenot, William T. Lee, Christopher H.
Hendon, and Jamie M. Foster
Supplemental Information
Systematically improving espresso: insights from mathematical modeling and
experiment
Michael I. Cameron and Dechen Morisco
Frisky Goat Espresso, 171 George St., Brisbane City, QLD, 4000, AUS and
Current affiliation: ST. ALi Coffee Roasters, 12-18 Yarra Place, South Melbourne, VIC, 3205, AUS
Daniel Hofstetter
Daniel Hofstetter Performance, Laenggenstrasse 18, CH-8184 Bachenbuelach, CHE
Erol Uman
Meritics Ltd., 1 Kensworth Gate, Dunstable, LU6 3HS, UK
Justin Wilkinson
Faculty of Mathematics, University of Cambridge, Cambridge, CB3 0WA, UK
Zachary C. Kennedy
National Security Directorate, Pacific Northwest National Laboratory, Richland, WA, 99352, USA
Sean A. Fontenot
Department of Chemistry and Biochemistry, University of Oregon, Eugene, OR, 97403, USA.
William T. Lee
Department of Computer Science, University of Huddersfield, Huddersfield, HD1 3DH, UK and
MACSI, Department of Mathematics and Statistics, University of Limerick, Limerick, Ireland
Christopher H. Hendon
Materials Science Institute and Department of Chemistry and Biochemistry,
University of Oregon, Eugene, OR, 97403, USA
Jamie M. Foster
School of Mathematics & Physics, University of Portsmouth, Portsmouth, PO1 2UP, UK
(Dated: January 7, 2020)
I. SUPPLEMENTAL EXPERIMENTAL lutions into/out of the liquid arising from the boundary
PROCEDURE conditions (Equation 14) results in a reaction-advection-
diffusion equation. The calculation can be adapted
A. Multiple scales homogenization appropriately1 to show that
κ
In this section we carry out upscaling (or homogeniza- q = − ∇P, (1)
µ
tion) of the system of equations formulated in the Supple-
∂c∗
mental Information. Rather than resorting to a lengthy (1 − φs ) l
multiple scales analysis we use the previous results from ∂t (2)
the rigorous analysis1 to formulate the multi-scale sys- = ∇ · (Def f ∇c∗l − qc∗l ) + bet,1 G1 + bet,2 G2 ,
tem of equations. Before proceeding we note the abuse
of notation used in this section and henceforth; namely, where the star has been appended to cl to emphasize that
that the dependent variables here, and in the multi-scale it has undergone the homogenization procedure. Here, κ
homogenization (main text) are not strictly the same as is the permeability of the packed bed and q is the Darcy
those appearing in model development (main text) but flux (i.e., the discharge per unit area with units of m/s)
are instead their homogenized counterparts. Despite this, which is related to the average fluid velocity within the
in the interests of brevity we opt not to embed this dis- pore space, ν, via q = (1 − φs )ν. One might conjec-
tinction within the notation. ture that in espresso making applications pressures are
Upscaling the Navier-Stokes equations at suitably sufficiently high, and the pores sufficiently small, that
small Reynolds numbers (so that flow is laminar) on a turbulent flow could be present. However, the experi-
porous media results in Darcy’s law2,3 , whilst upscaling mental evidence strongly indicates that a model based
(Equation 1) and accounting for the source/sink of so- on Darcy’s law (rather than Ergun or Forchheimer4,5 )
2
TABLE S1. Parameter values above the horizontal score were taken from the literature, and those below were chosen to mimic
the experimental extraction protocol used here.
TABLE S2. Parameter values above the horizontal score were extracted directly from the experimental data shown in Figure
2 and those below were subsequently inferred using Supplemental Equation 3. Throughout, we take the radius of fines to be
fixed with a1 = 12µm.
perfect conservation of coffee mass, which can be hard in r and at these locations we denote the value of the cof-
to ensure using standard finite differences owing to the fee concentration in small and large particles using the
singularity at the origin of the radial coordinate in the following shorthands cs1 (z, r, t)|z=zj ,r=rk = cs1,j,k (t) and
spherical diffusion equation. Secondly, in contrast to cs2 (z, r, t)|z=zj ,r=rk = cs2,j,k (t), respectively. Thus, the
many other control volume methods, it provides direct index j indicates the representative particle’s position in
access to the concentration on the surface of the parti- z whereas k labels the radial position within a particu-
cles thereby avoiding the need for extrapolation which lar representative particle. The (2M + 1) × N unknown
would inevitably introduce additional errors. This sur- functions of time were converted into one large column
face concentration determines the reaction rate across the vector u(t) as follows
solid grain boundaries and so accurate evaluation of this
quantity is crucial for reliable simulation. After applying u(t) = [cl (t)∗T cs1,1 (t)T cs1,2 (t)T
these treatments for the spatial dependencies, the system (6)
of PDEs (Equation 17–Equation 22) are reduced to sys- · · · cs1,N (t)T cs2,1 (t)T cs2,2 (t)T · · · cs2,N (t)T ]T .
tem of coupled ODEs. We select the MATLAB routine
ode15s to integrate this system forward in time because:
We now rewrite the problem in the form
(i) it is able to cope with solving a system of differential-
algebraic equations; (ii) it offers adaptive time-stepping,
and; (iii) has relatively modest computational cost. du
M = f (u), (7)
We introduce N equally spaced grid points, zj for dt
j ∈ [1, N ], thereby dividing the spatial z-domain into
N − 1 equally spaced subdomains. The grid spacing in where M is the mass matrix and f (u) is a nonlinear func-
z is therefore given by hz = 1/(N − 1). Henceforth we tion which arises from the application of finite difference
adopt the shorthand notation c∗l (z, t)|z=zj = c∗l,j (t). At approximations (to the equations in z) and the control
each station in z we must solve for the coffee concentra- volume method (for the equations in r). The system of
tion within a representative grain, i.e. , at each zj we ODEs (Equation 7) is written in the standard form ac-
must solve two equations of the form shown in Equa- cepted by MATLABs ode15s.
tion 21; one with i = 1 for cs1 and another with i = 2 Below we present the first N entries of the nonlinear
for cs2 . Each of the 2N copies of Equation 21 are dis- function f (u) arising from the discretisation of Equation
cretized by introducing M equally spaced grid points, rk 18 and its boundary conditions (Equation 19). The re-
for k ∈ [1, M ], which subdivide each r-domain into M −1 maining 2M N equations arising from applying control
subdomains. The grid spacing in r is therefore given by volumes to Equation 20 are previously detailed10 , and so
hr = 1/(M −1). In total we have N ×M different stations in the interests of brevity we do not repeat them here.
4
TABLE S3. Parameter values above the horizontal score are experimental values shown in Figure 4 whilst the values of the
Darcy flux below the horizontal score were computed via Equation 26.
TABLE S4. Parameter values that were adjusted to explore the effects of altering the dose of grounds “in”.
We have
M1,1 = 0, (8)
Def f 3 1
f1 = − − u1 + 2u2 − u3 + u1 , (9)
hz 2 2
Mi,i = 1 − φs , (10)
Def f
fi = (ui+1 − 2ui + ui−1 )
h2z
(11)
ui+1 − ui−1
− + bet,1 K,
2hz
MN,N = 0, (12)
Def f 1 3
fN =− uN −2 − 2uN −1 + uN . (13)
hz 2 2
5
TABLE S5. Parameter values that were adjusted to explore the role of altering the pump overpressure. The values of the
Darcy flux for a 5 bar overpressure are identical to those on Table S3 and the others have been computed from those via the
relationship in Equation 26.
6
20
15
N2 adsorbed (cm3/g)
10
5 desorption
adsorption
0
0.0 0.2 0.4 0.6 0.8 1.0
Partial pressure (P/P0)
55
50
9 bar, G
S = 1.3
45
Shot time (s)
40
6 bar, G =
S 1.3
35
6 bar, GS = 1.5
30 9 bar, GS = 1.
5
25
100 200 300
Tamp force, tF (N)
1
G. Richardson, G. Denuault, and C. P. Please (2012), the steady-state permeability of roast and ground coffee in
“Multiscale modelling and analysis of lithium-ion battery packed beds,” J. Food Eng. 150, 106 – 116.
7
charge and discharge,” J. Eng. Math. 72, 41–72. J. Kestin, M. Sokolov, and W. A. Wakeham (1978), “Vis-
2
G. Allaire (1989), “Homogenization of the stokes flow in a cosity of liquid water in the range - 8 c to 150 c,” J. Phys.
connected porous medium,” Asymp. Anal. 2, 203–222. Chem. Ref. Data 7, 941–948.
3 8
D. Polisevsky (1986), “On the homogenization of fluid A. S. Franca, L. S. Oliveira, J. C. F. Mendonça, and X. A.
flows through porous media,” Rend. Sem. Mat. Univ. Po- Silva (2005), “Physical and chemical attributes of defective
litecn. Torino 44, 383–393. crude and roasted coffee beans,” Food Chem. 90, 89–94.
4 9
N. Dukhan, Ö. Bağcı, and M. Özdemir (2014), “Experi- K. M. Moroney, Heat and mass transfer in dispersed two-
mental flow in various porous media and reconciliation of phase flows, Ph.D. thesis, University of Limerick (2016).
10
forchheimer and ergun relations,” Exp. Therm. Fluid Sci. Y. Zeng, P. Albertus, R. Klein, N. Chaturvedi, A. Ko-
57, 425–433. jic, M. Z. Bazant, and J. Christensen (2013), “Efficient
5
A. C. Fowler, B. Scheu, W. T. Lee, and M. J. McGuinness conservative numerical schemes for 1d nonlinear spherical
(2010), “A theoretical model of the explosive fragmenta- diffusion equations with applications in battery modeling,”
tion of vesicular magma,” Proc. Royal Soc. Lon. A 466, J. Electrochem. Soc. 160, A1565–A1571.
11
731–752. J. M. Foster, “Espresso simulation code,” https://
6
B. R. Corrochano, J. R. Melrose, A. C. Bentley, P. J. Fryer, github.com/jamiemfoster/Espresso (2019), accessed 07
and S. Bakalis (2015), “A new methodology to estimate December 2019.