Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.6K Views
|
7 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Handling concavity in ListContourPlot

Posted 6 years ago

I have imported some CFD results (in csv format) into Mathematica to do some further processing of the data.

One of my 2D geometries is as:

enter image description here

Now, when I try to do the contour plot, I get the following:

enter image description here

Why is contour plot filling those areas above and below the narrow section with purplish color. Those regions are not even within my X and Y coordinates (see the image for geometry above)?

Any ideas?

Thanks

Cross-posted here. I am attaching a sample of my data (a csv file for the above geometry). Note that I am only working with columns 1 and 2 (as x and y) and column 6, as my velocity in z direction.

Attachments:
POSTED BY: Mohammad Faghih
7 Replies

Hello Mohammad,

a 'quick and dirty' method would be to just cutting off the bottom using PlotRange:

ListContourPlot[xyutubeArbitrary, Contours -> 500, 
 ColorFunction -> "Rainbow", ContourStyle -> None, 
 AspectRatio -> Automatic, PlotLegends -> Automatic, 
 PlotRange -> {.004, Automatic}]

enter image description here

Does that help? Regards -- Henrik

POSTED BY: Henrik Schachner
Posted 6 years ago
POSTED BY: Kyle Martin

Thanks. It is useful.

POSTED BY: Mohammad Faghih

I’ve suggested another hacky solution here Stack Exchange

POSTED BY: Ian Williams
POSTED BY: Mohammad Faghih

Cross-posted here.

Which is also mentioned in the original post.

POSTED BY: Mohammad Faghih
Posted 6 years ago

Looks very similar to this question.

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