access to AMR mesh cell coordinates #19659
Unanswered
tomekplewa
asked this question in
Help using VisIt
Replies: 1 comment
-
Hi Tomek. First at all, "scatter" is not an operator, but a kind of plot. You defined well the xCoord=coord(amr_mesh)[0], and so on for the others spatial coordinates. Just to know, are you able to make a pseudocolor plot of xCoord? (don't forget to set a linear scale) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use a scatter operator to visualize a cross-dependence of solution variables. Since that mutual dependence is presumably localized in space, I would like to "color" the data with physical cell coordinates. My data are FLASH 3D plotfiles with amr_mesh.
I have defined expressions such as xCoord as coord(amr_mesh[)[0] (and [1] and [2] for yCoord and zCoord, respectively), but when drawing the plot it results an error,
Scatter: (RecursiveExpressionException)
viewer: The 'max('1.000000e-1',var1)' expression failed because
Asked to re-center a nodal variable that is not nodal.
After simplifying the above to "var1", the same error is reported but now for "var2" expression. Then with "var1" and "var2" set to the original solution variables, the error is
Scatter: (RecursiveExpressionException)
viewer: The pipeline object is being used improperly: At least two
variables must play a role in creating coordinates and the X,Y
coordinate roles must be assigned to a variable.
I have also tried to use xCoord/yCoord/zCoord as Scatter/Inputs/Role/X coordinate, etc., and color those points with, say, var1, but that produced a collection of seemingly correctly colorized points along xCoord but with yCoord/zCoord appeared set to zero. In this case, seemingly, xCoord is used correctly, but the other two are not.
What am I doing wrong, and what would be a correct way of referencing to AMR mesh cell coordinates in expressions?
Thank you -
Tomek
Beta Was this translation helpful? Give feedback.
All reactions