Can Matlab be used to solve a moving boundary problem
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm trying to determine the neutralization time (tn) of strong acid and strong base. Strong acid, A, is initially in a slab of thickness -2δ and strong base, B, is initially in a slab of thicknss 2δ. Slabs alternate with a slab of A next to one of B next to one of A next to one of B and so on. Because of symmetry, only the half slab thicknesses of each slab of reactant needs to be considered. The slabs only have diffusion of the reactants and when the reactants meet they react instantaneously in a stoichiometry of 1 to 1. So at the reaction plane, the concentration of each reactant is zero. The problem is a moving boundary problem and is illustrated in the attachment.
The boundary conditions at -δ and +δ are no flux conditions. The other boundary is the reaction plane which moves with time. At this plane the concentration of either A or B is zero.
Fick's 2nd law applies. Because the reaction is instantaneous and irreversible, the effect of the reaction is to keep the concentration of each reactant at zero at the reaction plane. Therefore, no reaction term is need nor a convection term; it is just Fick's 2nd law involving only diffusion. I have not been able to come up with an analytical solution so I want to try a numerical method. Could I use MatLab to solve this problem or is the moving boundary aspect of the problem beyond its capabilities?
5 Kommentare
Bill Greene
am 24 Mai 2021
I'm still confused about how the position of the front is determined. You show an equation in your comment above but say that β is unknown. So how do you determine β? Can you please provide a complete mathematical description of your problem?
In Stefan-type problems that Torsten mentioned, there is an ODE that determines the front position. But, for this class of problem, solution approaches have been developed that do not require explicit tracking of the front.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Applications finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!