interpolation in 3D

Asked by mvd

I want to set the lame parameters for solving the lame equation to values I have generated in numpy. In 2D it is no problem at all, using interpolateTable. Is there anything comparable in 3D?

Right now i use the Brick domain only, so I can slice the domain and interpolate for each 2D slice (see below), but i'd prefer to use other domains as well, any ideas?

Thanks for your time in advance,

mydomain = Brick(l0=l0, l1=l1, l2=l2, n0=nx, n1=ny, n2=nz)
sedmu = numpy.array(...)
x = mydomain.getX()
for i in np.arange(nz+1):
    m = x[0].interpolateTable(sedmu[:,:,i], 0., l0/nx, x[1], 0., l1/ny, 1e14)
    dom = whereZero(x[2] - l2/nz*i)
    mu = mu + m * dom

Question information

English Edit question
esys-escript Edit question
No assignee Edit question
Solved by:
Lutz Gross
Last query:
Last reply:
Revision history for this message
Best Lutz Gross (l-gross) said :

This is already on our todo list, see
I will make sure this will make it into the next release we are preparing at the moment. Let me know if you need a immediate fix.

Revision history for this message
mvd (driel) said :

Okay, nice to read that. If it is not too much effort, it would be nice to have it soon (i am working with the standalone version), but not at all necesarry. When is the next release to be expected?


Revision history for this message
mvd (driel) said :

Thanks Lutz Gross, that solved my question.

Revision history for this message
Lutz Gross (l-gross) said :

Before Xmas - we hope.

Revision history for this message
Joel Fenwick (j-fenwick1) said :

Release 3.2 was made this afternoon.

Revision history for this message
mvd (driel) said :

Thanks for the Info, I'm happy to test it in the next days!!