如何在每个时间步,获取流场特定区域的速度等相关物理量的变化并输出
-
-
可以用surface sampling 功能来实现,示例:
MeshedSurface { type surfaces; libs ("libsampling.so"); writeControl onEnd; writeInterval 1; executeControl timeStep; executeInterval 1; fields ( p U ); interpolationScheme cellPoint; sampleScheme cell; surfaceFormat ensight; formatOptions { ensight { format binary; collateTimes true; } } surfaces ( MeshedSurface_0 { type meshedSurface; surface surface.obj; source cells; interpolate true; } ); }
surface.obj 这个文件是一个面网格,网格尺寸建议跟你的 cfd 网格尺寸相当。
不同 OpenFOAM 版本可能具体写法略有不同,供参考。 -
题主,解决了吗,我也遇到相同的问题,我是想计算一块区域的角动量积分随时间变化
2022年2月26日 02:29
2/8
2024年11月5日 09:14