singleGraph/3.2.2/
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Writes graph data for specified fields along a line, specified by start
and end points.
Contour Profiles 2.2.1
\*---------------------------------------------------------------------------*/
/*
// Line: y = 0.25
start (0 0.25 0);
end (1 0.25 0);
fields (T);
*/
/*
// Line: y = 0.75
start (0 0.75 0);
end (1 0.75 0);
fields (T);
*/
/*
// Line: x = 0.25
start (0.25 0 0);
end (0.25 1 0);
fields (T);
*/
// Line: x = -0.5
start (-0.5 -1 0);
end (-0.5 1 0);
fields (T);
// Sampling and I/O sett

本文介绍如何使用OpenFOAM工具箱中的singleGraph工具进行指定场沿特定线段的数据采样。通过定义不同起点和终点的线段,并指定需要采样的场变量T,可以获取沿该线段分布的数据并输出为图表形式。文中提供了具体的配置示例及采样脚本。
最低0.47元/天 解锁文章
6348

被折叠的 条评论
为什么被折叠?



