- can now specify sampled sets as dictionary entries instead of a list
entry.
can now use: sets { ... }
instead of: sets ( ... );
This is similar to sampled surfaces and makes it easier to
manage with dictionary manipulation tools.
TUT: update to use writeTime instead of outputTime
67 lines
1.7 KiB
C++
67 lines
1.7 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: v2206 |
|
|
| \\ / A nd | Website: www.openfoam.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
sample1
|
|
{
|
|
type sets;
|
|
libs (sampling);
|
|
interpolationScheme cellPointFace;
|
|
setFormat raw;
|
|
fields ( p );
|
|
|
|
sets
|
|
{
|
|
cloud
|
|
{
|
|
type cloud;
|
|
axis xyz;
|
|
points
|
|
(
|
|
(1 0.2 0.05)
|
|
(1 0.4 0.05)
|
|
(1 0.6 0.05)
|
|
(1 0.8 0.05)
|
|
(1 1.0 0.05)
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
average1
|
|
{
|
|
type valueAverage;
|
|
libs (fieldFunctionObjects);
|
|
writeControl writeTime;
|
|
functionObject sample1;
|
|
fields (average(p));
|
|
}
|
|
|
|
reference1
|
|
{
|
|
type reference;
|
|
libs (fieldFunctionObjects);
|
|
writeControl writeTime;
|
|
field p;
|
|
refValue functionObjectValue;
|
|
functionObject average1;
|
|
functionObjectResult average(p)Mean;
|
|
}
|
|
|
|
reference2
|
|
{
|
|
type reference;
|
|
libs (fieldFunctionObjects);
|
|
writeControl writeTime;
|
|
field p;
|
|
refValue sample;
|
|
position (1 0.2 0.05);
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|