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 settings
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
// Override settings here, e.g.
setConfig
{
type lineCell;
axis y; // y, z, xyz
}
/*
setConfig
{
type lineCell;
axis x; // y, z, xyz
}
*/
// Must be last entry
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
// ************************************************************************* //
脚本
cd /home/dyfluid/myFile/trainingExamples/foamRun/3.2.2/40tr/
foamGet singleGraph
## 重复运行/3.2.2/40tr/
gedit /home/dyfluid/myFile/trainingExamples/foamRun/3.2.2/40tr/system/singleGraph # 2
# 编辑singleGraph
postProcess -func singleGraph # 1
# gedit /home/dyfluid/myFile/trainingExamples/foamRun/3.2.2/40tr/postProcessing/singleGraph/0/line_T.xy
# # 复制进主机ex
gedit /home/dyfluid/myFile/trainingExamples/foamRun/3.2.2/40tr/postProcessing/singleGraph/6.2832/line_T.xy
# 复制进主机