openfoam/tutorials/incompressible/pimpleFoam/laminar/planarContraction/system/graphs
2019-08-30 16:45:45 +02:00

63 lines
1.3 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Web: www.OpenFOAM.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Writes graph data for specified fields along a line, specified by start
and end points.
\*---------------------------------------------------------------------------*/
// Sampling and I/O settings
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
// Override settings here, e.g.
// setConfig { type midPoint; }
type sets;
libs (sampling);
writeControl writeTime;
interpolationScheme cellPoint;
setFormat raw;
setConfig
{
type midPoint; // midPoint
axis distance; // x, y, z, xyz
}
sets
(
lineA
{
$setConfig;
start (-0.0016 0 0);
end (-0.0016 0.0128 0);
}
lineB
{
$setConfig;
start (-0.0048 0 0);
end (-0.0048 0.0128 0);
}
lineC
{
$setConfig;
start (-0.032 0 0);
end (-0.032 0.0128 0);
}
);
fields (U);
// ************************************************************************* //