Segmentation fault when adding a PDE to a crypt cell population #162
-
I've recently been experimenting with adding an Elliptic PDE to a simulation of an intestinal crypt. I've modified the code detailed in, https://chaste.cs.ox.ac.uk/trac/wiki/PaperTutorials/CryptProliferationDistribution. More specifically, I've modified the file TestCryptProliferationDistributionLiteratePaper.hpp. I've hard coded the simulation to only use one set of parameters:
I get the following error:
Is there something about how the crypt cell population is defined which prevents the addition of a PDE to the simulation? Any help or suggestions with this problem are welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi George, @jmosborne may be better placed to comment on this as an author on that paper, but just a quick question to help understand what you're trying to do - is your intention to solve an elliptic PDE numerically on the mesh generated by Best wishes, |
Beta Was this translation helpful? Give feedback.
-
I have an update on this issue. I've managed to stop the segmentation from occurring but I'm not sure why my fix works. The cells of the crypt are initially in a ring, if I run the simulation without the PDE modifier they form a crypt shape. I've found that applying the PDE modifier after the cells are in a crypt shape prevents the segmentation fault. I'm happy to close this discussion, but does anyone have a suggestion on why this solves the issue? |
Beta Was this translation helpful? Give feedback.
-
So the issue is that initially the cells are in a plane so there is no 3d object to solve the PDE on wherea once cells lie on the surface you can make a 3d mesh. Whether that 3d mesh is the one you want is another matter. From the code it looks like you are solving the PDE on the domain enclosed by the surface defined by the nodes which lie in the shape of a crypt. The mesh from this example will not be a good mesh to solve a pde on as thee will be very poor aspect ratios. The GrowingDomain pde examples are meant for domains with cells evenly distributed among them so a monlayer in 2d or a spheroid in 3d. It wont work (it may compile but the results will be junk) for a sparse setup like the crytp example you're using. If you want to solve a 3d pde in the domain contain the cells you should consider using the FixedDomain Pdes |
Beta Was this translation helpful? Give feedback.
So the issue is that initially the cells are in a plane so there is no 3d object to solve the PDE on wherea once cells lie on the surface you can make a 3d mesh. Whether that 3d mesh is the one you want is another matter.
From the code it looks like you are solving the PDE on the domain enclosed by the surface defined by the nodes which lie in the shape of a crypt. The mesh from this example will not be a good mesh to solve a pde on as thee will be very poor aspect ratios. The GrowingDomain pde examples are meant for domains with cells evenly distributed among them so a monlayer in 2d or a spheroid in 3d. It wont work (it may compile but the results will be junk) for a sparse setup like t…