Hello, I have a question that I’m hoping someone can help me with.
I have 2 input scalars that I’ve read into the pipeline browser (call them u1 and u2) which exist on the same domain. I would like to find the area in the domain where both of the following conditions are true: L1 < u1 < M1 AND L2 < u2 < M2 for some L1, L2, M1, M2. I can find the area where one of these is true using the threshold filter, but I can’t seem to figure out how to achieve both conditions at the same time.
Any help would be appreciated!
Would a second threshold with the input set to the first threshold work? That would produce
AND logic, correct?
Thanks for the reply!
Yes, that would produce what I’m looking for. The problem is that if I add a threshold to u1, I don’t know how to access the data for u2 in the second threshold. I seem to only be able to further trim the solution of u1.
Is there a way to trim the first threshold according to the data of a different solution?
Be sure to uncheck the All Scalars option:
Thanks again for the reply.
Okay, I have it unchecked. But in the dropdown menu of the attached picture, only u0_1 appears - meaning that the threshold is still applied to that same variable. Is there a way to have u0_2 appear in this dropdown menu?
Oops, realized it was still checked in that picture. Here’s another illustrating the same problem with it unchecked.
Is it unchecked on both threshold filters? (importantly, the upstream filter)
See if this example works for you:
threshold-twice.pvsm (382.7 KB)
Yes, unchecked on both threshold filters. And unfortunately, when I open your file, it results in many errors. For some reason it seems that the threshold filter is only able to access one variable.
our help is much appreciated!
Oh whoops, I’m working off of 5.6RC2 and I chose the only source I could find with two point arrays which is new to v5.6
Post your data file if you can
Sure, here are the 2 data files. Both are solutions over time on a circular domain. I want to find the areas of the circle where a threshold conditions applied on both solutions.
solution_k1.pvd (59.2 KB)
solution_n1.pvd (59.2 KB)
PVD files need to be next to a directory…
If your arrays are both
PointData, then I’m fairly confident that making sure to uncheck All Scalars on any/all threshold filters should work. To double check on your data, zip up all of your data files next to a State File (File->Save State…) and I’ll give it a whirl.
Here is a link to the files. Let me know if there is a problem retrieving the files. Thank you so much again!
How about a Find Data with a Query looking something like:
Could you explain how I would go about doing this?
Sorry, I just re-read and see that it is two different datasets. Can you append the variables from one dataset onto the other using something like Append Attributes (only if the geometry is identical, I think).
I haven’t worked with anything other than Exodus files, so I may be off track here.
Yes! That is exactly what I was looking for. That allows the threshold filter to pull from either variable so I can use 2 thresholds to achieve the double condition.