Section 17.5: Diffusion into a Falling Liquid Film: Forced Convection Mass Transfer

> restart;

> Az:=W*dx; Ax:=W*dz;

[Maple Math]

[Maple Math]

> eq:=(NAz(x,z)-NAz(x,z+dz))*Az + (NAx(x,z)-NAx(x+dx,z))*Ax; This should be zero.

[Maple Math]

> eq2:=limit(eq/(W*dx*dz),dx=0);

[Maple Math]

> pde:=-limit(eq2,dz=0); Compare to eq. 17.5-3

[Maple Math]

> NAz:=(x,z)->vz(x)*cA(x,z);

[Maple Math]

> NAx:=(x,z)->-DAB*D[1](cA)(x,z);

[Maple Math]

> pde; Compare to eq. 17.5-6

[Maple Math]

> pdsolve(pde,cA(x,z)); I keep trying this, but all it tells me is to try separation of variables. [Maple Math]
[Maple Math]

[Maple Math]
[Maple Math]

> cA:=(x,z)->cA0*(1-erf(x/sqrt(4*DAB*z/vmax))); Let's try the book's solution

[Maple Math]

> vz:=x->vmax;

[Maple Math]

> D[2](NAz)(x,z);

[Maple Math]

> diff(NAz(x,z),z);

[Maple Math]

> simplify(pde);

[Maple Math]

> simplify(diff(NAz(x,z),z)+diff(NAx(x,z),x));

[Maple Math]

> limit(cA(x,z),z=0,right); BC 1 eq. 17.5-12

[Maple Math]

> assume(DAB>0,vmax>0,x>0,z>0);

> limit(cA(x,z),z=0,right);

[Maple Math]

> cA(0,z); BC 2 eq. 17.5-13

[Maple Math]

> limit(cA(x,z),x=infinity); BC 3 eq. 17.5-4

[Maple Math]

> restart; This was one way to get rid of the assumptions

> cA:=(x,z)->cA0*(1-erf(x/sqrt(4*DAB*z/vmax)));

[Maple Math]

> NAx:=(x,z)->-DAB*D[1](cA)(x,z);

[Maple Math]

> NAx(0,z); Compare to eq. 17.5-16

[Maple Math]

> WA:=W*int(NAx(0,z),z=0...L); eq. 17.5-17

[Maple Math]

> combine(%); Compare to eq. 17.5-17

[Maple Math]

>