sampleDict 是否可以切取圆柱面采集数据?
-
各位好!
我现在在尝试着使用OpenFOAM切取一个圆环面上的数据。我看sampleDict中有一项功能是:
distance { // Isosurface from signed/unsigned distance to surface type distanceSurface; signed true; // Definition of surface surfaceType triSurfaceMesh; surfaceName integrationPlane.stl; // Distance to surface distance 0.0; interpolate false; regularise false; // Optional: do not simplify // mergeTol 1e-10; // Optional: fraction of mesh bounding box // to merge points (default=1e-6) } 不知道如何使用,是否有朋友使用过这个功能?
谢谢!
-
@qjh888
给你翻译一下:triSurfaceSampling { // Sampling on triSurface type sampledTriSurfaceMesh; surface integrationPlane.stl;//定义你的圆环面在这里 source cells; // 提取网格数据 interpolate true; }
:expressionless:
https://github.com/OpenFOAM/OpenFOAM-2.1.x/blob/master/applications/utilities/postProcessing/sampling/sample/sampleDict -
@赵一铭 在 sampleDict 是否可以切取圆柱面采集数据? 中说:
定义你的圆环面在这里
嗯,谢谢,但是有一个问题,这个integrationPlan.stl如何去定义呢?是要自己选取一个圆环面么?
谢谢!
-
或许可以等计算完成之后,用ParaVIEW后处理:
Filter -> PlotOnIntersectionCurve
我做圆柱界面的压力分布历史就用的这个功能。
-
@random_ran
谢谢,不过我需要大量的切面,所以只能用编程来实现… -
不知道你的几何是不是特别复杂?
我做简单的圆柱绕流,想要知道不同截面的Cd Cl系数,用
binData { nBin 20; direction (1 0 0); cumulative yes; }
很简单就能达到目的。
可以参考这个说明。
-
谢谢!
我研究一下,然后反馈
2017年4月24日 02:06
5/10
2022年1月1日 23:25