如何在Paraview中从两个不同的.vtk文件中的分量创建2D矢量流场?

huangapple go评论39阅读模式
英文:

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

以下是翻译好的部分:

  1. load both files
  2. select them, use Append Attributes filter
  3. 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:

  1. load both files
  2. select them, use Append Attributes filter
  3. 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.

huangapple
  • 本文由 发表于 2023年2月20日 00:14:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/75501535.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定