2 dimentional partial differential equation

15 visualizzazioni (ultimi 30 giorni)
Gnan Liu
Gnan Liu il 4 Mag 2016
Risposto: Torsten il 4 Mag 2016
I have a partial differential equations set to solve, but its involve dc/dx and dc/dt, so I dont know how to solve this problem. c is the function of x and t. All the variables are known.
Can anyone help me?
equation 1 'dy(t)/dt*V=Q*C-Q.y(t)-D*As*dc(x=L,t)/dx-Ai*dq(t)/dt' equation 2 'dc(x,t)/dt=-D*d^2c(x,t)/dx^2' equation 3 'dq(t)/dt=h*(y(t)-qks)'
boundary condition 1 dc(x,t)/dx=0; t>0,x=0; boundary condition 1 -D*dc(x,t)/dx=h*(y(t)-c(x,t)/ksp); t>0,x=L;

Risposte (1)

Torsten
Torsten il 4 Mag 2016
Discretize the spatial derivatives and solve the resulting system of ordinary differential equations in the t-variable using ODE15S.
Look up "Method-of-Lines" for more details.
Best wishes
Torsten.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by