Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: How to use Save/Get for interpolation of unstructured data?
Replies: 8   Last Post: Mar 14, 2012 1:41 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Oliver Ruebenkoenig

Posts: 237
Registered: 6/28/08
Re: How to use Save/Get for interpolation of unstructured data?
Posted: Mar 8, 2012 4:42 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



On Wed, 7 Mar 2012, Ted Sariyski wrote:

> Hi,
>
> I posted this question a couple of days ago but did not get any
> response. Meanwhile I noticed that the Save-d interpolation data contains
> "NDSolve`FEM`ElementMesh", which may relates to my problem. Let me
> restate the question.
>
> I have 2D unstructured data in the form {{{1.22001, 0.00024605},
> 0.816237}, {{1.22334, 0.000250332},0.436219},... } (connectivity is also
> available but I do not know how to use it with Mathematica).
>
> Interpolation issues a warning:
>
> "Interpolation::udeg: Interpolation on unstructured grids is currently
> only supported for InterpolationOrder->1 or InterpolationOrder->All.
> Order will be reduced to 1. >>",
>
> The warning is not an issue for me, the problem is that I cannot use
> Save/Get for this interpolation function. After Get the interpolation
> function instead of a number returns:
>
> intp[1., .8]
> InterpolatingFunction[{{0.000905256237704326, 1.9993734385285347}, {0.00024605021944692736, 0.9989678166248219}},
> {4, 4225, 0, {10880, 2}, {2, 2}, 0, 0, 0, 0, Automatic},
> {NDSolve`FEM`ElementMesh[{{1.220009724772626, 0.00024605021944692736},
> {1.223336731504134, 0.0002503318707254048}, {1.2273720422942693, ...
>
> which is the non-evaluated content of the Save-d file.
>
> What is the right way to use Save/Get for interpolation of unstructured
> data?
>
> Any help will be highly appreciated.
> Thanks,
> --Ted
>


Ted,

that's a bug. I think you are probably best off saving the raw data via
e.g. Save and then reconstruct the interpolation once you read the data
back in.

Oliver




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.