On Aug 13, 2013, at 9:29 AM, John Assael <[email protected]> wrote: > Hi, > I have a problem when I am saving my mesh from gmsh (.msh file), fipy does > not recognise the Physical Groups, that I have defined. > More specifically, although my .geo file contains entries like: Physical > Surface(100) = {37}; > when I try to access mesh.physicalCells[100] from fipy, I get a KeyError for > key '100' that does not exist. > However when I replicate this procedure with the .geo file the Physical > groups get recognised. > So, how can I access a surface in an already defined mesh file?
Try mesh.physicalCells["100"]. The keys are strings. _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
