重新计算一组等值面中的 3d 矢量场
我正在开发程序(fortran90),该程序用电流计算一些静态电线组的磁场。它的输出是许多点的磁场矢量,作为包含“x,y,z,v_x,v_y,v_z) 列的文件”。我可以用 gnuplot 绘制它,例如:
但现在我想重写程序来输出等值面(磁场矢量模量恒定的表面),就像这样(它是在互联网上找到的,但没有对应于第一张图片)
我可以将其作为第二个程序或使用实用程序来执行此操作,该实用程序将转换我的文件6 列成......可以绘制为曲面集的另一种方法,我认为,是重写第一个程序来直接计算等值面,请推荐我哪种方法更好以及我实际上可以做什么。这。
I working on program (fortran90), which computes an magnetic field of some static set of wires with electric current. Its output is a magnetic field vectors in many points as file with columns "x,y,z,v_x,v_y,v_z). I able to plot this with gnuplot, e.g.:
But now I want to rewrite program to output isosurfaces (surfaces at which modulus of magnetic field vector is constant), like this (it is found in internet and don't correspond to first image)
Can I do this as second program or with using utility, which will convert my file with 6 columns into ... something format which can be drawn as surface set. Another way of doing this, as I think, is to rewrite first program to compute isosurface directly. Please, recommend me which way is better and how actually I can do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 MathGL 可以轻松做到。它是跨平台的 GPL 绘图库,也有 Fortran 接口。在这里,您可以使用 向量场 和 等值面绘图。
I think MathGL can do it easily. It is cross-platform GPL plotting library which have Fortran interface too. Here you can use a sequential call of vector fields and isosurface plotting.