OpenFOAM-4.x/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/system/sample
Henry Weller e9d69df161 Utility sample: replaced by 'postProcess -func sample'
To re-use existing 'sampleDict' files simply add the following entries:

    type sets;
    libs ("libsampling.so");

and run

    postProcess -func sampleDict

It is probably better to also rename 'sampleDict' -> 'sample' and then run

    postProcess -func sampleDict
2016-06-13 14:27:46 +01:00

100 lines
2.3 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sample;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
interpolationScheme cellPointFace;
setFormat raw;
sets
(
y0.1
{
type face;
axis x;
start (-1 0.218 0);
end (1 0.218 0);
}
y0.2
{
type face;
axis x;
start (-1 0.436 0);
end (1 0.436 0);
}
y0.3
{
type face;
axis x;
start (-1 0.654 0);
end (1 0.654 0);
}
y0.4
{
type face;
axis x;
start (-1 0.872 0);
end (1 0.872 0);
}
y0.5
{
type face;
axis x;
start (-1 1.09 0);
end (1 1.09 0);
}
y0.6
{
type face;
axis x;
start (-1 1.308 0);
end (1 1.308 0);
}
y0.7
{
type face;
axis x;
start (-1 1.526 0);
end (1 1.526 0);
}
y0.8
{
type face;
axis x;
start (-1 1.744 0);
end (1 1.744 0);
}
y0.9
{
type face;
axis x;
start (-1 1.962 0);
end (1 1.962 0);
}
);
fields
(
T
U
);
// ************************************************************************* //