<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>
<div>I'm not familier with the term P1-discontinuous. Is that the same as not C0 continuous (or simply not continuous)?</div>
<div><br>
</div>
<div>If so, then yes that is a problem. The VTK data sets do not directly represent discontinuous interpolated fields. The only way to do it is how you describe. Replicate the point so that two distinct field values can be placed at the same coordinates.
But, as you discovered, this means that the connectivity cannot be represented, which can foul up some operations like finding a cell.</div>
<div><br>
</div>
<div>I know of no simple away around the problem. You would need a different cell locator that used a different slower but more reliable search.</div>
<div><br>
</div>
<div>-Ken</div>
<div>
<div><br>
</div>
</div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Ali Rostai <<a href="mailto:ali.rostai@gmail.com">ali.rostai@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Mon, 17 Oct 2011 09:22:45 -0700<br>
<span style="font-weight:bold">To: </span>Kenneth Moreland <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Paraview] confused with getting nan values in plot over line<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
Hi and excuse me for late reply,<br>
<br>
I tried the "Clean to grid" filter and it seems that problems has been solved. But I noticed that<br>
the data was coming from a finite element method using P1-discontinuous Triangular elements.<br>
And it looks for me the problem is somehow related to that.<br>
<br>
But as a general question Can paraview show P1-discontinuous data? then for each node in mesh<br>
we have several values. But I think vtk format accepts only one value for each noed.<br>
<br>
Regards,<br>
Ali<br>
<br>
<br>
<div class="gmail_quote">On Thu, Oct 6, 2011 at 10:34 AM, Moreland, Kenneth <span dir="ltr">
<<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><font style="font-size:11.0pt;color:#1F497D">For starters, the going to infinity thing in the plot is weird. There should just be gaps in the curve. You may have hit a bug.
<br>
<br>
As far as why you are getting nans in the first place I'm not sure. I can't really tell from your screenshots, but it looks your geometry might be a bunch of polygons on a plane. Is that the case? If so, make sure that all z coordinates are zero. If all the
coordinates in pone dimension are exactly the same, then I would expect it to work. Otherwise the line will not be completely on it.<br>
<br>
If that is not the case, another problem could be with your topology. The find cell method could fail if your mesh is not fully connected. For example, if you have repeated coincident points, then VTK won't be able to find neighbors and trace to a cell. Try
running one of the clean filter on the data. I think that should fix the problem. I think there are some corner cases where even that might not work, but your mesh looks like it has good quality triangles or tetrahedra, so that seems unlikely unless you have
degenerate cells or gaps I cannot see.<br>
<br>
-Ken <br>
</font><br>
<br>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<font style="font-size:10.0pt">
<div class="im"><b>From</b>: ali rostai [mailto:<a href="mailto:ali.rostai@gmail.com" target="_blank">ali.rostai@gmail.com</a>]
<br>
</div>
<b>Sent</b>: Thursday, October 06, 2011 08:12 AM<br>
<b>To</b>: Moreland, Kenneth; <a href="mailto:paraview@paraview.org" target="_blank">
paraview@paraview.org</a> <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>>
<br>
<div class="im"><b>Subject</b>: Re: [Paraview] confused with getting nan values in plot over line
<br>
</div>
</font> <br>
</div>
<div>
<div></div>
<div class="h5">Hi,<br>
<br>
I tried and tried to move the start and end of line inside the domain.<br>
Actually I see two lines going to infinity (nan) in xyplot pane now! (screen shot attached)<br>
<br>
Regards,<br>
Ali<br>
<br>
<div class="gmail_quote">On Thu, Oct 6, 2011 at 5:08 AM, Moreland, Kenneth <span dir="ltr">
<<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font style="font-size:11.0pt;color:#1F497D">Like I said previously, it looks like the line you define is right on the boarder of your volume. Try moving the line slightly more inside the volume.<br>
<br>
-Ken </font><br>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
</span>
</body>
</html>