michael 2007-9-4 11:03
question about volume flow
[size=2]I've built a 3D diffusion model in which substance enters the model from a finite source (e.g. a droplet). This means, the particle source has got a starting volume which decreases over time, and if the volume reaches 0, the flow of particles will stop . The amount of substance entering the model in one timestep depends on the volume which enters the model out of the source. I've realised the decreasing volume of the particle source by implementing the global variable vol into the system. The decrease of volume is being calculated by the law of Hagen-Poiseuille (Volume flow V out of the droplet through a round pore) and realised in the EQUATIONS section by dt(vol)= V. I've monitored the development of vol in a history plot, and the curve is not as smooth as it should be. Also, in the system there are exp-functions implemented in whose exponents the variable vol is being used, e.g. exp((-vol)/6.13249e-16). At a point where vol comes close to 0, FlexPDE stops the simulation with an 'exp argument too big'- error. I've worked around this difficulty by using an IF THEN ELSE construct, but I fear that something in my system is not working properly. Also, I've tried different parameters (s. .pde-file), and sometimes the exp-error occurs, and sometimes it doesn't.
WK.rF,}Fdsl
Another question: Is it possible to take the inflow of volume from the source into the system into account when calculating the particle concentration? Considering an incompressible fluid, the volume entering the system pushes the particles in the system further away from the inlet. Is there a formula to calculate this?
Z3p(N'JQ2]
I hope you can help me out! [/size]
G9uP
d)~` o'{W
[size=2][/size]
zU({#MD
D*S,aV
[size=2][/size]
iiNn
]a.|8KFX
[code] title
|$_:sP6[]/?
'Diffusion and convection of ACh'!K9Y#M v"PlR
^Pu
H3Q8i0g%Ji-n
{9|
coordinates cartesian3
"p;UF)a#O;p
7EWBp[4q#Z[&y
variables
7xTX+m,@w,Y!S
u(threshold=1) !1e-3
E5mkS'T
2B"hTD/y9{iEP.@
global variables
&`~GOZ9W
vol(threshold=1e-18) !droplet volume
'at;K)y-G
-T-iU~ N
Qoo
yx2k;`x
definitionsA!A1@ b8rJ y)ZB
D = 12.2e-10 { Diffusionskoeffizient [m^2/s] ACh}
jh{4O&o2u9kB
6bC
a$Pj"K `*l/^#Z
{ System variables }(k&Dv|
ICq
r_ben = 3e-5 !Inlet area radius [m];~9ULa'q5E`
height = 1.8e-3 !cylinder height [m]
WOe8FY
NT
r = 9e-4 !radius of cylinder [m]!L;SGPz-k9a
a!V%Hm+f3H
{ Membrane parameters } !here, different parameters have been used
2l6uQ2W*|'} M,c,j$W
uC0p&q#t~ @*t
!diameter of pores!k$gx-ALG[yx~;v
d_pore = 2e-7 !1e-7, 5e-8, 1e-6iRf1H"WFs/wJ
!thickness of membrane [m]TDF8D8e
d_mem = 10e-6}j8_!W@
@$l6mg)v
!freie Fl鋍he der Membran
+`*T!{"k:jY&zh
ff = 9.43/100 ! 5.54, 1.54, 15.7
xfXI
iey8d/~"Brr5_
N8B`L+_
!Stoffmenge, die insgesamt im Tropfen zur Verf黦ung steht [mol] = Ausgangskonz. [mol/m^3] * Start-Tropfenvolumen [m^3]
!e.^*j\J
v0 = 26e-15 !starting volume of droplet
w~
LqQ!gv6XEN
a_drop = 1 * v0 !concentration of substance in droplet (1mMol)/\3] ]p'R"T
bt[X~/i O
!Fluss aus der Quelle:7\_B.J.C5B
!J = (D*(((a_drop-integral(u))/vol)-val(u,0,0,1e-6))/d_mem)*ff { Einheit: [mol/m^2*s] }
G'N
api'N4S'uK)n1X
J = IF vol <= 20e-20 THEN 0 ELSE (D*(((a_drop-integral(u))/vol)-val(u,0,0,1e-6))/d_mem)*ff !SWAGE(vol-(2e-14), 0, (D*(((a_drop-integral(u))/vol)-val(u,0,0,1e-6))/d_mem)*ff, 2e-3) { Einheit: [mol/m^2*s] }
N9F`$O;ba[a'i
(Mgzr:DR3p
!************************Oberfl鋍henspannung, Konvektiont)m[Iai$n|2c;i?
!z7m1QxKA8`
! surface tension(H2O) = 0,073 N/m\QO/h2B:sw
s_drop = 0.0734cq NXud(F/Yu
!dynamic viscosity = 0,001 Pa*s = N*s/m^2+T;Z7c0y%yW
dV = 0.001