ODE45 in Maxwell-Stefan equation
Mostrar comentarios más antiguos
I am trying to solve Maxwell Stefan's equation over a membrane to get the transient mole fraction distribution over the membrane thickness 'z'. But somehow I am not able to code it using ODE45, more likely I am not able to write the system to solve using ODE45. It will be really great if someone can help me with the primary syntaxes and function. The equation I am trying to solve is
where c is concentration and
is binary diffusion coefficient and z varies from 0 to 2.5e-4 cm.
Thank you in advance.
Respuestas (1)
darova
el 20 de Abr. de 2020
Here is the solution:
f = @(t,y) 1/c/D*(y*(NH2+NH2O)-NH20);
[t,y] = ode45(f,[0 2.5e-4],1);
2 comentarios
Anantrao Vijay Shirsath
el 20 de Abr. de 2020
darova
el 20 de Abr. de 2020
impossible. can you show?
Categorías
Más información sobre Ordinary Differential Equations 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!
