23 |
|
|
24 |
# This example demonstrates both interpolation and saving data in CSV format |
# This example demonstrates both interpolation and saving data in CSV format |
25 |
|
|
26 |
from esys.escript import saveDataCSV, sup |
from esys.escript import saveDataCSV, sup, interpolateTable |
27 |
import numpy |
import numpy |
28 |
from esys.finley import Rectangle |
from esys.finley import Rectangle |
29 |
|
|
65 |
table=[st, 0.5*st, 0*st ] #Note that this table is 2D |
table=[st, 0.5*st, 0*st ] #Note that this table is 2D |
66 |
|
|
67 |
#The y dimension should be the outer the dimension of the table |
#The y dimension should be the outer the dimension of the table |
|
result2=interpolateTable(table, x (minval,0), (0.55, step), toobig) |
|
|
saveDataCSV("2d.csv",inp0=x0, inp2=x1, out=result2) |
|
68 |
|
result2=interpolateTable(table, x, (minval,0), (0.55, step), toobig) |
69 |
|
saveDataCSV("2d.csv",inp0=x0, inp2=x1, out=result2) |