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
41 lines
1.1 KiB
C++
41 lines
1.1 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 cellPoint;
|
|
|
|
setFormat raw;
|
|
|
|
sets
|
|
(
|
|
line
|
|
{
|
|
type face;
|
|
axis x;
|
|
start (-5 0 0);
|
|
end (5 0 0);
|
|
nPoints 100;
|
|
}
|
|
);
|
|
|
|
fields ( p U.component(0) T rho );
|
|
|
|
|
|
// ************************************************************************* //
|