-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vector fields not showing up as expected #20201
Comments
@nDimensionalSpace I am getting Now, IMHO, this is another case (or maybe its the same case) of the plot yielded no data state in VisIt being a bit confusing or misleading because, for example, if this was scalar data, the all-zero condition would produce a blue plot and would not produce a I tried creating a constant vector on your dataset using expressions and plotting that variable works in the sense that I do not get the warning. However, there is something else odd about this data set. It seems like the extents are off. It seems like the mesh is a single point. So, it has bizarre extents of essentially zero. That seems to be causing other issues in VisIt. Can you elaborate on this dataset's "design"? |
Ah right . . . The Grrr, if you are seeing some of the extents being incorrect, that is likely a bug on my end. I will check that out. |
@nDimensionalSpace I think we're just dealing with a corner case here. I mean, we don't often deal with meshes consisting of a single point. There is nothing inherently invalid about that but we do have a sense of spatial extents that comes into play in, for example, establishing the field of view. And, if the mesh has a single point, then its spatial extents are effectively zero. I am not sure the rest of VisIt will play nice with that..even if you have some way to try to force VisIt to use specific values for spatial extents. So, I think that is problem 1. And, I think that is then preventing it from rendering the vector field (in this case a single vector glyph), in such a way that it is visible. If not too onerous, can you try ensuring the mesh has at least two points, maybe the same point or maybe like 1 unit distant and see if you get same behavior. I am guessing you will not. |
So, I've created a simple example of a point mesh with one non-ghost and one ghost point. It does seem to behave "better" than just having a single point.
|
So, I added a second point to the pointmesh, with varying results, as follows:
Admittedly this is an edge case; usually, we would only have meshes this small for test problems. One thing I will note is that the use case for this data is to depict boundary conditions, so presumably if one used the spatial extents of the whole problem domain for the variables on this boundary mesh, that would fix the issue**. ** I am also aware that you all have a million use cases that I am not aware of, and that I may be the only person using multiple meshes in a single database, so maybe its not worth making the changes for just one user . . . Just trying to suggest something that might work, if it were possible and not too difficult. |
@nDimensionalSpace, so I agree with second point in same place...not a useful thing to do. In my example, the second point was on the opposite corner of the unit cube and then I made it a ghost node too so it doesn't plot. That seems to work ok but maybe unit distance apart is not appropriate for your case. I think anything above epsilon (say 1e-6) is probably fine. I don't like having to jury-rig these cases with extra stuff the data producer doesn't care about. But, in the short term, it might be best we can do. |
I think the right long term answer might be that when we have something with extents < 1e-6 or something on that order, instead of continuing to try to define a view transform that scales that object, we just set a lower-limit on the view frustum size and the object may appear arbitrarily small within it causing the user to have to manually add a scale transform to fix it. |
@markcmiller86: Yeah . . . Having to write out ghost data is not the greatest solution, but not super onerous either. I should be able to grok the ghost business from your example, but if not, I will shoot you an email on the side. 🙏 |
Describe the bug
I have a database that contains multiple point meshes, all of which should have a vector quantity defined on them. On some of these, the vector field seems to display correctly, and on others, there is no visual representation of the vectors, even though the colorbar is displaying some non-trivial magnitude. After investigation with Silo "browser" (great tool, btw), the vector data seems to be defined in a consistent manner for both the working and non-working cases.
Helpful additional information
To Reproduce
Plot the variables "vector/DBC/DBC1/reaction_force" and "vector/DBC/DBC3/reaction_moment" in the latest version of visit on rzwhippet.
Desktop
Will post example silo database momentarily.
The text was updated successfully, but these errors were encountered: