Quick question,

I'm not sure how to go about asking this, but I am attempting to write a Laplacian of a scalar field (general function f). I want to be able to put this in an array in order to solve it multiple times. I don't really know how to go about this. any help would be great.

Thanks,

Miller

I think you would use a function and pass variables to it. So if the Laplace operator is a+b-c you could do something like

def laplace_func(a, b, c):
   return a+b-c
#
if __name__ == '__main__':
   laplace_list=[ [1 ,2 ,3],
                   [3, 2, 1],
                   [1, 3, 2]]
   for eachlist in laplace_list:
      result = laplace_func(eachlist[0], eachlist[1], eachlist[2])
      print "result =", result, "for", eachlist

If this isn't even close to what you want, post some sample data and describe what you want to do with it