Need MATLAB program for 2DFATMIC code for 1D reactant solute transport with distance dépend flow and dispersion and a pulse injection
Mostrar comentarios más antiguos
I would like to applied the 2DFATMIC code to one-dimensional advection-dispersion transport with variable velocity flow and dispersion coefficient. In my problem (single-well push-test applying to PCE reactant solute) the inlet boundary condition is assumed to be a pulse type (first type), the contamination is assumed to be injected until t = 5 days. I want to obtain the concentration distribution during the injection phase and after. But i don't have the 2DFATMIC code. And i wanted to use this code un MATLAB. Thanks !!! I have the following transport équation:
R*dC/dt = d/dx*(D(x)*dC/dx-v(x)*C)-mu*C The velocity is express like this v(x) = 30/(2*pi*10*0.1*x); thé dispersion coefficient is equal to D(x)= 0.1*v(x)
mu is the first order reaction coefficient (mu = 0.075 day^(-1)) Initial condition C(x,t=0) = 0
Boundaries conditions
C(x=0,t) = 1 , 0=<t<t0 and 0 , t> t0 where t0 = 5 days dC(x=L, t) = 0
L is the length of the domain L = 10 m
If it is not possible to obtain the 2DFMTMIC code i wanted as well as possible the cranck Nicholson code or other schème code.
11 comentarios
Torsten
el 19 de Mayo de 2022
Use "pdepe".
Thomas TJOCK-MBAGA
el 19 de Mayo de 2022
If you include the pdepe code, I can try to compare with your PDE from above.
I don't think that the software is responsible for differences between your analytical results and those obtained by using pdepe because pdepe should be suited to solve your problem. Maybe some settings are not correct.
As far as I can see, 2DFATMIC is FORTRAN code available here:
But I don't understand why you want to use 2d-code for your case.
Thomas TJOCK-MBAGA
el 19 de Mayo de 2022
Thomas TJOCK-MBAGA
el 19 de Mayo de 2022
Torsten
el 19 de Mayo de 2022
If you want: try it. The MINGW compiler should be able to compile the FORTRAN code provided in the link.
Thomas TJOCK-MBAGA
el 19 de Mayo de 2022
Thomas TJOCK-MBAGA
el 20 de Mayo de 2022
Torsten
el 20 de Mayo de 2022
I get
pr = 10*ur
qr = (2*pi*10*0.1*x)/3
if you want to set
dc/dx = 0
at x=L.
Thomas TJOCK-MBAGA
el 21 de Mayo de 2022
Torsten
el 22 de Mayo de 2022
Then this is the solution to your equation. I don't see other errors in your code.
Respuestas (0)
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!