<div dir="ltr"><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
No, that appears to not be the case in a quick test I ran. They appear<br>
to be ordered in the order in which they appear in the pipeline<br>
browser..</blockquote><div><br></div><div>Unfortunately, it doesn't seem like it follows that order either (in a quick test I did using Python Calculator).  Perhaps it's random?  I also tried at the documentation for <a href="http://www.vtk.org/doc/nightly/html/classvtkProgrammableFilter.html#details">vtkProgrammableFilter</a> but couldn't find any answers (though I could've missed something).  For the Python Calculator, this might not be as big a deal since you can quickly check the output, but it seems more cumbersome to check in the Programmable Filter (at least for me - I don't have much experience with it or Python generally).  Is there an easy method to check with the Programmable Filter? <br>

<br></div><div>- Evan<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 5:12 AM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jan 31, 2014 at 1:04 PM, Evan Kao <<a href="mailto:tossin@gmail.com">tossin@gmail.com</a>> wrote:<br>


> Thanks a lot for the help.  I think Merge Blocks > Resample With Dataset ><br>
> Python Calculator (or Append Attributes > Calculator) allows me to do what I<br>
> originally asked for, although now I'm realizing the Python Calculator may<br>
> not be enough to do the calculations I want.  I had some questions regarding<br>
> the Python Calculator and the Programmable Filter:<br>
><br>
> 1.  The data I'm looking at is from a transient simulation.  If I wanted to<br>
> standardize a parameter for each time step by dividing it by the standard<br>
> deviation of the population for that time point, am I understanding<br>
> correctly that I would either have to calculate the standard deviation first<br>
> and then manually type in the number into the Python Calculator or use the<br>
> Python Programmable Filter?<br>
><br>
> 2.  Additionally, I've been looking around and it seems the only way to<br>
> perform a summing operation is to use the Programmable Filter.  Is that<br>
> correct?<br>
<br>
</div>For doing anything mildly complicated like summing data arrays, you're<br>
probably better off with the Programmable Filter. You might<br>
theoretically be able to use the Python Calculator, but you'll have<br>
some long expressions to fit into that small Expression line.<br>
<div class="im"><br>
> 3.  Regarding both the Python Calculator or Programmable Filter, is there an<br>
> easy way to tell which index corresponds to which input?  I thought perhaps<br>
> it had to do with just order you click the inputs in, but I'm not so sure<br>
> about that.<br>
<br>
</div>No, that appears to not be the case in a quick test I ran. They appear<br>
to be ordered in the order in which they appear in the pipeline<br>
browser..<br>
<div class="HOEnZb"><div class="h5"><br>
> Thanks for your time,<br>
> Evan<br>
><br>
><br>
> On Thu, Jan 30, 2014 at 12:25 PM, Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>><br>
> wrote:<br>
>><br>
>> On Thu, Jan 30, 2014 at 2:31 PM, Evan Kao <<a href="mailto:tossin@gmail.com">tossin@gmail.com</a>> wrote:<br>
>> > Hi Cory,<br>
>> ><br>
>> > Thanks for the suggestion.  Resample With Dataset solves the problem of<br>
>> > matching up the Point IDs, but only passes data from the Input (which I<br>
>> > guess makes sense given its purpose), so I think regardless of what I<br>
>> > rename<br>
>> > the arrays, the data will always be from only one of the meshes meaning<br>
>> > I<br>
>> > can't use Calculator to compare the data.<br>
>><br>
>> How about using Append Attributes to combine the arrays of Resample<br>
>> With Dataset and the Source?<br>
>><br>
>> > I think my main obstacle is the data type.  Paraview reads in Ensight<br>
>> > data<br>
>> > as a Multi-Block data set, but neither Append Datasets nor the Python<br>
>> > Calculator seem to work on that data type.  Is there a simple way to<br>
>> > convert<br>
>> > them into a format that can be read by those filters?<br>
>><br>
>> You can use Merge Blocks to combine all the blocks in a Multi-Block<br>
>> data set to an unstructured grid.<br>
>><br>
>> Best,<br>
>> Cory<br>
>><br>
>> > Thanks,<br>
>> > Evan<br>
>> ><br>
>> ><br>
>> > On Thu, Jan 30, 2014 at 6:10 AM, Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Evan,<br>
>> >><br>
>> >> You might want to take a look at the Resample With Dataset filter. One<br>
>> >> of your meshes would be the Input and one would be the Source. What<br>
>> >> this filter will do is sample the data values in the Input mesh at the<br>
>> >> locations of points in the Source. If I understand the setup of your<br>
>> >> meshes, this should essentially take care of the problem where your<br>
>> >> point IDs are not the same. The result will be a single mesh with two<br>
>> >> data arrays that you can then compare point by point.<br>
>> >><br>
>> >> You might run into a problem if both meshes use the same name for the<br>
>> >> point array from which you want to get values (one will clobber the<br>
>> >> other). You can take care of that by using the Calculator to rename<br>
>> >> one of the mesh's arrays, then using the result of the calculator as<br>
>> >> the Input or Source.<br>
>> >><br>
>> >> Hope that helps,<br>
>> >> Cory<br>
>> >><br>
>> >> On Mon, Jan 27, 2014 at 4:18 PM, Evan Kao <<a href="mailto:tossin@gmail.com">tossin@gmail.com</a>> wrote:<br>
>> >> > Hello all,<br>
>> >> ><br>
>> >> > I'm trying to compare the results of 2 CFD simulations (which are<br>
>> >> > imported<br>
>> >> > into Paraview as Ensight data) point-by-point but I'm having trouble<br>
>> >> > figuring out how to even combine the data into a single Pipeline<br>
>> >> > object<br>
>> >> > so<br>
>> >> > that I can do some simple calculations with the Calculator Filter.<br>
>> >> > I'd<br>
>> >> > appreciate it if anyone could let me know if what I'm trying to do is<br>
>> >> > natively possible in Paraview, and if not, provide some suggestions<br>
>> >> > on<br>
>> >> > how<br>
>> >> > to approach it.<br>
>> >> ><br>
>> >> > What might complicate the process is that the results were obtained<br>
>> >> > using<br>
>> >> > two different meshes (in fact, it's a mesh comparison test).  The<br>
>> >> > points<br>
>> >> > I<br>
>> >> > want to look at are the same for both meshes, but the point IDs are<br>
>> >> > different.<br>
>> >> ><br>
>> >> > So what I'd like to do in summary is:<br>
>> >> > 1) Is there a way to extract and sort the data in a way such that the<br>
>> >> > point<br>
>> >> > IDs are the same for both meshes?<br>
>> >> ><br>
>> >> > 2) Is there a way to convert/manipulate the data into a single<br>
>> >> > Pipeline<br>
>> >> > object for comparison?  Or to compare the results of different<br>
>> >> > Pipeline<br>
>> >> > objects?  I've tried various combinations of filters like<br>
>> >> > AppendDatasets,<br>
>> >> > GroupDatasets, and MergeBlocks with little success.<br>
>> >> ><br>
>> >> > Thanks,<br>
>> >> > Evan<br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >> ><br>
>> >> > Visit other Kitware open-source projects at<br>
>> >> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >> ><br>
>> >> > Please keep messages on-topic and check the ParaView Wiki at:<br>
>> >> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> >> ><br>
>> >> > Follow this link to subscribe/unsubscribe:<br>
>> >> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> >> ><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>