Hi folks,

Can you create a list object in FiPy using the cell variables defined below?

# Create the cell variables and put them on the mesh.
from fipy.variables.cellVariable import CellVariable
alpha = CellVariable(name = "alpha",
                      mesh = mesh)
beta = CellVariable(name = "beta",
                      mesh = mesh)
liquid = CellVariable(name = "liquid",
                      mesh = mesh)
comp = CellVariable(name = "composition",
                     mesh = mesh)

The object is to access the variables using something like:

phase[1], phase[2], phase[3]

Will this work?  Some of the calculations are iterative and it would
be nice to loop over phase numbers...

Dan

Dan Lewis
Assistant Professor
Materials Research Center, Room 110
Rensselaer Polytechnic Institute
http://www.rpi.edu/~lewisd2








Reply via email to