Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.2K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Interpolation error: The element mesh has insufficient quality...

Posted 3 years ago
POSTED BY: anoldfriend
3 Replies
Posted 3 years ago

Crossposted here.

POSTED BY: Rohit Namjoshi
Posted 3 years ago

but who knows what data has been erased

The duplicates that are deleted are all for values of 8 and 9 which Henrik's plot clearly shows

data // GroupBy[First -> Last] // Select[Length[#] > 1 &]
POSTED BY: Rohit Namjoshi

Myoldfriend,

interpolation on unstructured grids most likely leads to unsatisfactory results. My idea is first to rescale the whole diagram according to the maximum contour (+10), thus a complete rectangle can be filled with data:

data1 = Association@Map[Round@#[[1, 2]] -> #[[All, 1]] &, GatherBy[data, Last]];
assocIp = Interpolation /@ data1;
indx = Range[-10, 10];
Plot[Evaluate[assocIp[#][x]/assocIp[10][x] & /@ indx], {x, 0, 40}, PlotLabels -> indx, ImageSize -> 700]

enter image description here

This could be the basis for calculating a structured grid for final 2D-interpolation. And when you then undo the scaling you are done!

But basically you can see with this graphic that your data are not clean and why DeleteDuplicates does not really help. You probably should consider solving that problem first.

POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard