how to modify the wrong direction in velocity vector field plotted by VisIt? #19636
Replies: 1 comment 2 replies
-
@grastro it looks like we neglected to respond to this post from you earlier and I think you have another similar post we replied to in the last couple of days. I am having some trouble understanding what it is you are trying to do, what your starting point is with respect to how the data is organized in the file and what operations you are applying in VisIt. It would be very helpful if at all possible to attach some examples of what you are doing, have tried, and what has happend in the way of results you have produced. Is that possible? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have two data sets. one is in HARM.xmf another one is in coords.h5. Actually, I need to plot velocity vector field from HARM.xmf file and it is not radially directed as it is supposed to be at the first time step (the initial condition of simulation considers a radially directed initial velocity). but I get set of vectors directed approximately towards x axis and is not radially! I also did transformation from spherical to Cartesian (my simulation set up is in spherical coordinates) but I get a set of horizontal vectors exactly directed towards x axis! I'm wondering what is wrong with it!
To find a solution, I mapped data from .xmf file which contains 4-vector velocity, onto a mesh defined in another file which is in coords.h5. this file includes r, theta and phi coordinates with other outputs such as Determinants of metric, etc. the mesh of this output is
65*128*256
while I defined a256*128*64
mesh in simulation code for r, theta and phi, respectively. so I think the mesh is shown wrong in VisIt, although I could get a set of radially directed velocity vectors when I mapped .xmf data onto .h5 mesh. Of course, I'm not still sure how correct is this procedure!Anyway, my questions are: 1) why I can not get correct direction (radial) for velocity vectors when I use .xmf mesh while I can plot other scalar quantities like density and pressure correctly (apparently) using this mesh?
2) If mapping onto .h5 file is a correct solution, why its mesh is not the same as it has been defined in simulation code? can I create a new mesh
256*128*64
in .h5 data set to make sure mapping is done correctly?Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions