spherical diffusion PDE problem

I am attempting to solve this relationship in MATLAB but I'm not quite sure how to convert this into something that MATLAB's pdepe function can solve. This is a spherical system so m=2. I can fill in my boundary conditions accordingly for bcfun and icfun.
Can anyone help please? Would greatly appreciate it. Thanks

3 件のコメント

Torsten
Torsten 2022 年 7 月 13 日
編集済み: Torsten 2022 年 7 月 13 日
If you set m=2, MATLAB's "pdepe" solves the above equation. But why (-D) instead of D ? Do you want to use a negative value for D ?
Juliana
Juliana 2022 年 7 月 13 日
that was a mistake, confused fick's first and second law. youre right -- should be positive D.
so are you saying that this is the default when I put m=2?
i thought i would have to write this out in a different way for matlab to understand. in that case, does g=1? and f=D*DcDx?
thank you very much for the help Torsten.
Torsten
Torsten 2022 年 7 月 13 日
See the answer to your second post.

サインインしてコメントする。

回答 (0 件)

製品

リリース

R2022a

質問済み:

2022 年 7 月 13 日

コメント済み:

2022 年 7 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by