determine cell neighbors.

2016-06-29 Thread James Pringle
I have to find a group of contagious cells which match a certain criteria, which involves values on the cell center. I can figure out which cell centers meet the criteria. However, from the mesh2D variable, how do I figure out which cells are contiguous to a given cell? Must I build a data structu

Re: FiPy for nonlinear, coupled PDEs in multiple independent variables

2016-06-29 Thread Daniel Wheeler
On Tue, Jun 28, 2016 at 12:53 PM, Abhilash Mathews wrote: > > eq1 = (TransientTerm(var=N1) == ImplicitSourceTerm(coeff=-2.*E1, var=P2) + > ImplicitSourceTerm(coeff= -2.*E2, var=P1) + ImplicitSourceTerm(coeff= > -1./(T1/TR), var=N1)) > > eq2 = (TransientTerm(var=P1) == ImplicitSourceTerm(coeff=2.*E