On Thu, Feb 3, 2011 at 11:36 AM, Julien Derr <julien.d...@gmail.com> wrote: > Hi everyone, > > sorry for abusing the mailing list these days.
No problem. > I didn't find much information about remeshing a variable; We probably got rid of it for a reason. There is a _ReMeshedCellVariable class in CellVariable..py. It probably serves the same purpose. FiPy is not currently designed with meshes that change during the simulation, so if you want to change the mesh on the fly you'll need to do a complete restart. > I found this page: > > http://matforge.org/fipy/browser/trunk/fipy/variables/cellVariable.py?rev=745 > > but no help corresponding to the remesh function. I tried to implement it > remesh(phi,mesh) where phi is a CellVariable > but got the error : getValue() got an unexpected keyword argument 'points' As I said try the "_ReMeshedCellVariable" class in cellVariable.py. <http://matforge.org/fipy/browser/trunk/fipy/variables/cellVariable.py#L619> > the alternative question would be how to get the value of phi for only one > point ? I can get the value of phi for all X and Y by the simple phi((X,Y)) > but is there a simple way to get phi(xa,ya) where xa and ya is any arbitrary > value (ie not on a mesh ) ? X and Y can have arbitrary values. They can also be arbitrary array values. -- Daniel Wheeler