英文:
How to create 2D vector flow field from components in 2 different .vtk files in Paraview?
问题
以下是您提供的内容的中文翻译:
我对Paraview相当新,并且已经阅读了一些关于矢量绘图技术以指示流动方向和速度大小的内容。然而,我在处理我的两个文件时遇到了困难。
这两个文件都是冰川表面速度场x和y分量的大小的.vtk文件。最终我想要的只是一个箭头场,它们指向流动的方向,并且它们的大小与速度大小相关联。我已经了解了有关流线追踪器的信息,但它对我来说仍然是灰色的。我想知道是否有人可以帮助我,或者至少给我一些建议,说明如何完成这个任务。谢谢!
x分量: veloc_x.vtk - 链接:https://drive.google.com/file/d/1VpFKe_my_Ep0rt80CIcw4B8xNi3AwiSE/view?usp=sharing
y分量: veloc_y.vtk - 链接:https://drive.google.com/file/d/1eP4FgSZMO-bEZQJzKSbLuTl90zxbxlsh/view?usp=sharing
英文:
I am rather new to Paraview and have been reading a bit about vector plotting techniques to indicate flow direction and velocity magnitudes. I am quite stuck, however, with my 2 files.
These are both .vtk files of the magnitude of the x and y components of a surface velocity field of a glacier. What I would like in the end is just a field of arrows which point in the direction of the flow and whose size correlates to the velocity magnitude. I have read about stream tracer but it stays greyed out for me. I wonder if anybody can help me or at least give me some guidance about how this can be done. Thanks!
x component: veloc_x.vtk - https://drive.google.com/file/d/1VpFKe_my_Ep0rt80CIcw4B8xNi3AwiSE/view?usp=sharing
y component: veloc_y.vtk - https://drive.google.com/file/d/1eP4FgSZMO-bEZQJzKSbLuTl90zxbxlsh/view?usp=sharing
答案1
得分: 1
以下是翻译好的部分:
- load both files
- select them, use
Append Attributes
filter Merge Vector Components
to put X and Y in a vector.
You may want to use Calculator
to create a Z
array containing only 0
before step 3. because Merge Vector
expect 3 components.
Then use the Glyph
representation to setup the arrows in the vector field.
英文:
The steps are as following:
- load both files
- select them, use
Append Attributes
filter Merge Vector Components
to put X and Y in a vector.
You may want to use Calculator
to create a Z
array containing only 0
before step 3. because Merge Vector
expect 3 components.
Then use the Glyph
representation to setup the arrows in the vector field.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论