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,
Martin

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

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

This is already on our todo list, see https://mantis.esscc.uq.edu.au/view.php?id=523.
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 :
#2

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?

Martin

Revision history for this message
mvd (driel) said :
#3

Thanks Lutz Gross, that solved my question.

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

Before Xmas - we hope.

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

Release 3.2 was made this afternoon.

Revision history for this message
mvd (driel) said :
#6

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