<div dir="ltr">
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Hello Mr.
SCOTT,<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Thank you very
much for your time. Indeed, it was useful for better understand the way “Slice”+”PlotData”
works by using the spreadsheet analysis. <span> </span>So, apparently the only way to do a 2D plot without this
issue, is to use “PlotOnIntersectionPlane” or “PlotOverLine”.<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Concerning
the 2D plot along X-axis of the integrated variables along Y-axis, the simplest
way to do it so far, is the method already discussed here:<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"><a href="https://www.cfd-online.com/Forums/openfoam-paraview/116033-obtain-average-pressure-over-range-slices.html" style="color:blue;text-decoration:underline">https://www.cfd-online.com/Forums/openfoam-paraview/116033-obtain-average-pressure-over-range-slices.html</a><span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">However, I
wonder if Paraview developers are working on a built-in filter that allows to
do that. This is a very classical analysis in aerodynamics, so it will be widely
used by the Paraview community.<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Thanks
again and thanks for the advice of the “jet” color-type.<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Best
regards,<span></span></span></p>Miguel Angel AGUIRRE<div><br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 2:13 AM, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_-7617382468760942823WordSection1">
<p class="MsoNormal">So, I am no expert on what you are trying to do. But, here are a few thoughts:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">First, you don’t want to mix all five of your lines together, and just draw them through one plot data filter. ParaView won’t go down one line, and then to the next – it will display sorted on Point ID (I think). You want one Plot Data
filter for each slice/line. Attached is what I just did, for the multi-slice example. There are 5 separate slices, 5 separate Plot Data filters. I have then turned visibility on for all 5 filters into the same chart view. I then changed the color of each
filter’s Y Coordinate, so I could tell them apart.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What is the Plot Data filter doing? It is just going down the Point IDs, one after the other, plotting your data. Take the black line. Point Id 0 is at u == 71.36, Y == 0.147. It then draws a line to Point Id 1, which is at u == 71.271
and Y == 0.0923. This continues through your dataset. So, the “non continuous” part of the line is where the beginning point doesn’t match up against the ending point.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">A good way to drill into your data is with the Spreadsheet View. Notice the highlight around the Spreadsheet View window, and that visibility of Point Data2 is on. Also, note that you can sort this spreadsheet by clicking on the head
of a column, as I did on Point ID. Now, looking at the Y’s and u’s, you can see how ParaView is drawing the chart view.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So, in answer to your last question, I believe you again have to deal with each line individually.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Does that help?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Alan<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">p.s. – I notice you are using Rainbow. May I suggest using Jet instead? It is much more linear, and doesn’t have such a large green area in the middle of the color table.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><img width="2112" height="1215" style="width: 22in; height: 12.6603in;" id="gmail-m_-7617382468760942823Picture_x0020_1" src="cid:image003.jpg@01D3BC91.B79AED60"><u></u><u></u></p>
<p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> <a href="mailto:aguirre.flanker@gmail.com" target="_blank">aguirre.flanker@gmail.com</a> [mailto:<a href="mailto:aguirre.flanker@gmail.com" target="_blank">aguirre.flanker@gmail.<wbr>com</a>]
<b>On Behalf Of </b>Miguel Aguirre<br>
<b>Sent:</b> Thursday, March 15, 2018 2:24 AM<br>
<b>To:</b> Scott, W Alan <<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>><br>
<b>Cc:</b> <a href="mailto:paraview@public.kitware.com" target="_blank">paraview@public.kitware.com</a><br>
<b>Subject:</b> Re: [EXTERNAL] [Paraview] QUESTION ABOUT SLICE<u></u><u></u></p>
</div>
</div><div><div class="gmail-h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">Hello Mr. SCOTT,<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">Thanks for your answer.<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">Here I have attached the "TEST.pvsm" state file of a generic case (Potential flow around a cylinder) along with the related
<span style="color:rgb(34,34,34);background:white">"DATA.csv"</span>. The idea is to see the flowfield parameters along a line placed downstream<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">The PVSM file contains 4 layouts :<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">1) Single SLICE (Uses a “Slice”+”PlotData”)<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">2) PlotOnIntersectionCurves<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">3) PlotOverLine<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">4) Multiple Slices<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">All cases starts from the Delaunay 2D applied to the CSV data and in all cases I tried to plot the U-velocity vs Y-coordinate (With U-velocity shown along X-axis). As you can see, “PlotOnIntersectionCurves”
and “PlotOverLine” cases works fine: the “Uspeed vs Y” distribution is OK.<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">However the “Slice”+”PlotData” case (with a single slice) shows a bad connectivity between the points. It happens even if a refine the points cloud and even with structured and unstructured
cells (Fluent CFD cases not shown here).<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">Moreover, when I do multiple slices, the output array is just one single array containing data from all points merged together, so the PlotData does not allow to see each line separately.<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">What I really need is a multiple output line data in order to :<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">1) See distribution on each line<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">2) Then apply a filter to each line: I want to integrate values along each line and then plot it along X-axis. That’s why I was trying to use multiple slice (Already knowing that there is hard
way to do that: multiple “PlotOverLine”+”<wbr>IntegrateVariables”(For each line)+”GroupDatSets”+”<wbr>PlotData”)<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">There is a simpler way to do that? (I have the restriction that lines may be inclined, so doing a domain integration along Y-axis is not a good idea)<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:10pt;line-height:115%">Thanks in advance<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Miguel Angel AGUIRRE<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Mar 14, 2018 at 6:05 PM, Scott, W Alan <<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>> wrote:<u></u><u></u></p>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Miguel,<u></u><u></u></p>
<p class="MsoNormal">Can you pass Kitware the dataset? Also, please give detailed steps how to replicate this. For instance, did you change the X Array Name? A state file would be great.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Also, are you trying to use Plot Over Line? Now, assuming you have data throughout the line, this should have connectivity.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Alan<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> ParaView [mailto:<a href="mailto:paraview-bounces@public.kitware.com" target="_blank">paraview-bounces@<wbr>public.kitware.com</a>]
<b>On Behalf Of </b>Miguel Aguirre<br>
<b>Sent:</b> Wednesday, March 14, 2018 2:30 AM<br>
<b>To:</b> <a href="mailto:paraview@public.kitware.com" target="_blank">paraview@public.kitware.com</a><br>
<b>Subject:</b> [EXTERNAL] [Paraview] QUESTION ABOUT SLICE<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I'am trying to use "Slice" and then "Plot Data" in order to obtain multiple survey lines in a 2D CFD simulation. I have 2 questions :<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">1) If i use one single slice, the plotted data is not a continuous line. Instead, it shows some bad conectivity between points (See attached figure "Slice - single plane.png").
How can I solve it ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">2) When I use multiple slice, the plotted data is merged into one single array as you can see in the other attached file ( "Slice - multiple planes.png").However, i really need
one array for every slice because this multiple output will be treated later. There is a solution for this ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Concerning the second question, i remark here that making multiple "PlotOnIntersectionCurves" and then "GroupdataSets" is not a viable option for me because I need to plot n-lines.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Miguel Angel AGUIRRE<u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>
</div></div></div>