Effacer les filtres
Effacer les filtres

programming a PDE in Matlab

2 vues (au cours des 30 derniers jours)
Christian
Christian le 27 Sep 2011
Who can help me with programming a partial differential equation?
The equation is: d(Ci)/dt = b * 1/(n^2) * d/d(n) * ( n^2 * d (Ci)/dn )
- With Ci being a concentration internally. - b some sort of constant - n the dimensionless variable for a radial distance, varying from 0 to 1.

Réponses (1)

Ivan van der Kroon
Ivan van der Kroon le 27 Sep 2011
You already have written it in a ode-form, i.e. first temporal derivative on LHS. The RHS only needs the correct implementation of the spatial derivatives. You can use functions like gradient, diff or spectral methods to compute these.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by