- Because the equations are first-order in z, you can specify a boundary condition only at the inlet end. You have to be careful not to specify a condition at the outlet.
- The number of time points you define for ode45 don't affect the accuracy of the solution; they simply indicate where you would like to see the output. So, typically, you need only enough points to generate a reasonably smooth plot.

## 5 Comments

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_838637

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_838637

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_838787

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_838787

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_839024

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_839024

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_839112

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_839112

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_839130

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/521831-how-can-i-code-a-system-of-2-pdes-and-an-ode-for-modelling-a-packed-bed#comment_839130

Sign in to comment.