Can pdepe be used when there is a boundary condition in the centre of the system - Invasion assay
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
So I am trying to model cells going through an invasion chamber so there are cells in the top of the chamber and food in the bottom of the chamber. The top and bottom chambers are separated by a permeable membrane that the cells can pass through. This means that there are boundary coniditons that apply to the top and bottom of the system (or left and right in the notation that it used for boundary conditions when using pdepe). But there are also boundary conditions that apply inbetween the top and bottom chamber. The boundary conditions at the top and bottom of the chamber are zero flux conditions meaning that the cells or fluid can't leave the chamber. The boundary conditions for the centre of the chamber are Kedem-Katchalsky boundary conditions meaning that the flux through the membrane is proportional to the concentration difference on either side of the membrane.
I have used pdepe before for a model when there was just left and right boundary conditions but I was wondering if I can also be used when there is also a boundary condition on the centre of the system as well as left and right.
0 commentaires
Réponses (1)
Josh Meyer
le 18 Jan 2021
This example shows how to solve a system where there is a material interface:
You might be able to use the techniques there for your problem if you can express the central boundary conditions as a change in the equations. Another option would be to split your integration up into two calculations: one from the top of the chamber to the membrane, and then another from the membrane to the bottom. You can use the results from the first simulation as the initial conditions of the second to pick up where you left off.
5 commentaires
Josh Meyer
le 26 Jan 2021
This should get you started:
- Write down the equations assuming all constants are equal to 1 (ignore them for now). Expand the derivatives out explicitly and see if you can get the equations into the form supported by PDEPE. If you can, then you can start writing a program to solve the problem using the constant values outlined in the paper. You would most likely need to account for the central boundary by breaking the integration into two as I outlined above.
- If the equations can't be put into a form supported by PDEPE, then you'll need to use finite differences to solve the problem, as they did to perform the simulations in the paper. This will make the code longer and it will require more debugging time, so I'd recommend starting with a test problem before scaling up. For that, here is a resource I found with a quick search: Lecture 8: Solving the Heat, Laplace and Wave equations using finite difference methods.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!