Clear Filters
Clear Filters

Struggling to understand PDEPE boundary conditions

11 views (last 30 days)
Hi all,
I'm new to using MATLAB's PDEPE and I'm struggling to understand the help documentation. I'd like to start out by solving a simple version of Fick's 2nd law and can't seem to make any progress. To start with I'd lke model an initial condition of u(x, 0) = 0 and boundary conditions to be u(0,t) = 1 and u(1,t) = 0 on the interval of 0 ≤x≤1. I'd like to model a 1-D system with no syemmetry (m=0).Eventually I want to specify a more complex initial condition based on some experimental data, but thought I'd start with something simple.
I see the in the help documentation an example function for the boundary conditions and can't seem to figure out what p and q represent or what they're used for. Could anyone point me in the right direction of some resources that describe the meaning of p and q?
Thanks!
Rob
  2 Comments
Bill Greene
Bill Greene on 13 Jul 2021
You might find this tutorial-style note that I wrote describing pdepe boundary conditions, helpful.
Robert Morhard
Robert Morhard on 15 Jul 2021
That tutorial is very helpful, thanks so much!

Sign in to comment.

Answers (0)

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!