Skip to content
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. 请教各位如何用tecplot360(EX2022R1)处理OpenFOAMv2312中颗粒分布

请教各位如何用tecplot360(EX2022R1)处理OpenFOAMv2312中颗粒分布

已定时 已固定 已锁定 已移动 OpenFOAM
9 帖子 3 发布者 4.4k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 流 离线
    流 离线
    流体横掠单管
    写于 最后由 编辑
    #1

    各位老师大家好,我在跑了官方拉格朗日下sprayfoam的算例之后,利用tecplot打开了controldict文件,获得了大部分的流场分布信息,但是我注意到无论是contour还是scatter里面都没有particle的分布信息(例如颗粒的位置和大小)。我注意到算例时间步下的lagrangian-spraycloud文件中有一些position、d相关的文本文件,但是tecplot也无法读入。想请问各位,如何才能在tecplot中获得相关的例子信息呢?
    还望各位赐教!万分感谢!
    2e3190ba-65aa-4f5f-ad72-b4a979cc3fda-image.png
    493806af-e613-4d3c-b0e6-e05e5390095c-image.png
    225105da-3980-4deb-9472-ea89211c4136-image.png

    1 条回复 最后回复
  • 流 离线
    流 离线
    流体横掠单管
    写于 最后由 编辑
    #2

    找了很多手册和视频,貌似都没有解决方法。也有想到用localfoamtotecplot360转换,但也没有找到有v2312适用的版本

    1 条回复 最后回复
  • 7 离线
    7 离线
    78star
    写于 最后由 78star 编辑
    #3

    我也正准备试下foamtotecplot360好不好改好编译给of8用,目前看到的有两种思路,一个是用这个,官方已经没有foamTotecplot360的更新了。https://bugs.openfoam.org/view.php?id=2893
    另一个思路就是自己写tecplot格式的文件了。https://www.cfd-online.com/Forums/tecplot/184063-visualize-lagrangian-particles-tecplot-360-a.html

    流 1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #4

    你们要不要试试把这个转换程序移植到openfoam新版里面

    https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/utilities/postProcessing/dataConversion/foamToTecplot360

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    7 1 条回复 最后回复
  • 7 离线
    7 离线
    78star
    在 中回复了 李东岳 最后由 78star 编辑
    #5

    @李东岳 在 请教各位如何用tecplot360(EX2022R1)处理OpenFOAMv2312中颗粒分布 中说:

    你们要不要试试把这个转换程序移植到openfoam新版里面

    https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/utilities/postProcessing/dataConversion/foamToTecplot360

    感谢东岳老师回复,暂时还没跑好算例来不及主要精力放在编译移植上。不过刚看了一下of7, of8的源码里都有foamToTecplot,不知为何foamTo的命令里没有显示这个。of8的编译过程log里我看也是有wmake foamTotec的0d563f05-926b-434b-9295-68918762883a-image.png704b285e-ca4a-44a1-ab5d-b07675cf9c82-image.png

    1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #6

    还真是。我刚才看了一下。应该是我的虚拟机上面没有装tecplot,所以没找到tec的头文件。

    dyfluid@dyfluid-virtual-machine:~/OpenFOAM/OpenFOAM-8/applications/utilities/postProcessing/dataConversion/foamToTecplot360$ wmake
    wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
        wmakeLnInclude error: base directory /home/dyfluid/OpenFOAM/ThirdParty-8/tecio/tecsrc/ does not exist
    Making dependency list for source file foamToTecplot360.C
    could not open file TECIO.h for source file foamToTecplot360.C due to No such file or directory
    could not open file MASTER.h for source file foamToTecplot360.C due to No such file or directory
    could not open file GLOBAL.h for source file foamToTecplot360.C due to No such file or directory
    Making dependency list for source file vtkMesh.C
    Making dependency list for source file tecplotWriter.C
    could not open file TECIO.h for source file tecplotWriter.C due to No such file or directory
    could not open file MASTER.h for source file tecplotWriter.C due to No such file or directory
    could not open file GLOBAL.h for source file tecplotWriter.C due to No such file or directory
    g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/home/dyfluid/OpenFOAM/ThirdParty-8/tecio/tecsrc/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/lagrangian/basic/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/dynamicMesh/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude   -fPIC -c tecplotWriter.C -o /home/dyfluid/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.o
    In file included from tecplotWriter.C:26:
    tecplotWriter.H:39:10: fatal error: TECIO.h: 没有那个文件或目录
       39 | #include "TECIO.h"
          |          ^~~~~~~~~
    compilation terminated.
    make: *** [/home/dyfluid/OpenFOAM/OpenFOAM-8/wmake/rules/General/transform:26:/home/dyfluid/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.o] 错误 1
    dyfluid@dyfluid-virtual-machine:~/OpenFOAM/OpenFOAM-8/applications/utilities/posttProcessing/tProcessing/dataCotProttProcessing/dataConversion/foamToTecplot360$ 
    

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    7 1 条回复 最后回复
  • 流 离线
    流 离线
    流体横掠单管
    在 中回复了 78star 最后由 编辑
    #7

    @78star 谢谢大佬!

    7 1 条回复 最后回复
  • 7 离线
    7 离线
    78star
    在 中回复了 流体横掠单管 最后由 编辑
    #8

    @流体横掠单管 在 请教各位如何用tecplot360(EX2022R1)处理OpenFOAMv2312中颗粒分布 中说:

    @78star 谢谢大佬!

    没事,相互交流,我也不是什么大佬。我后面想了一下,短期内即使有论文出图需求,也可以考虑先用paraview来显示颗粒的状态,其他参数的云图可以用tecplot出的好看一些,包括他的新变量定义、数据后处理能力也更强。应该也暂时是没问题的。

    1 条回复 最后回复
  • 7 离线
    7 离线
    78star
    在 中回复了 李东岳 最后由 编辑
    #9

    @李东岳 在 请教各位如何用tecplot360(EX2022R1)处理OpenFOAMv2312中颗粒分布 中说:

    还真是。我刚才看了一下。应该是我的虚拟机上面没有装tecplot,所以没找到tec的头文件。

    dyfluid@dyfluid-virtual-machine:~/OpenFOAM/OpenFOAM-8/applications/utilities/postProcessing/dataConversion/foamToTecplot360$ wmake
    wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
        wmakeLnInclude error: base directory /home/dyfluid/OpenFOAM/ThirdParty-8/tecio/tecsrc/ does not exist
    Making dependency list for source file foamToTecplot360.C
    could not open file TECIO.h for source file foamToTecplot360.C due to No such file or directory
    could not open file MASTER.h for source file foamToTecplot360.C due to No such file or directory
    could not open file GLOBAL.h for source file foamToTecplot360.C due to No such file or directory
    Making dependency list for source file vtkMesh.C
    Making dependency list for source file tecplotWriter.C
    could not open file TECIO.h for source file tecplotWriter.C due to No such file or directory
    could not open file MASTER.h for source file tecplotWriter.C due to No such file or directory
    could not open file GLOBAL.h for source file tecplotWriter.C due to No such file or directory
    g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/home/dyfluid/OpenFOAM/ThirdParty-8/tecio/tecsrc/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/lagrangian/basic/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/dynamicMesh/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude   -fPIC -c tecplotWriter.C -o /home/dyfluid/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.o
    In file included from tecplotWriter.C:26:
    tecplotWriter.H:39:10: fatal error: TECIO.h: 没有那个文件或目录
       39 | #include "TECIO.h"
          |          ^~~~~~~~~
    compilation terminated.
    make: *** [/home/dyfluid/OpenFOAM/OpenFOAM-8/wmake/rules/General/transform:26:/home/dyfluid/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.o] 错误 1
    dyfluid@dyfluid-virtual-machine:~/OpenFOAM/OpenFOAM-8/applications/utilities/posttProcessing/tProcessing/dataCotProttProcessing/dataConversion/foamToTecplot360$ 
    

    应该确实是,我看了一下时间,我openfoam-8装的时候电脑上已经有装tecplot2023了。但openfoam-7装的时候没有,也许就是编译记录的Log文件里就没有foamToTec的原因。

    1 条回复 最后回复

  • 登录

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]