mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: some documentation for sampledSurfaces specification
This commit is contained in:
@ -29,6 +29,41 @@ Description
|
|||||||
|
|
||||||
The write() method is used to sample and write files.
|
The write() method is used to sample and write files.
|
||||||
|
|
||||||
|
Example of function object specification:
|
||||||
|
|
||||||
|
\verbatim
|
||||||
|
surfaces
|
||||||
|
{
|
||||||
|
type surfaces;
|
||||||
|
libs ("libsampling.so");
|
||||||
|
|
||||||
|
// Write at same frequency as fields
|
||||||
|
writeControl outputTime;
|
||||||
|
writeInterval 1;
|
||||||
|
|
||||||
|
// Fields to be sampled
|
||||||
|
fields (p U);
|
||||||
|
|
||||||
|
// Interpolation scheme to use
|
||||||
|
interpolationScheme cell;
|
||||||
|
|
||||||
|
// Output surface format
|
||||||
|
surfaceFormat vtk;
|
||||||
|
formatOptions { }
|
||||||
|
|
||||||
|
surfaces
|
||||||
|
(
|
||||||
|
f0surf
|
||||||
|
{
|
||||||
|
type sampledTriSurfaceMesh;
|
||||||
|
surface f0surf.obj;
|
||||||
|
source cells;
|
||||||
|
keepIds true;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
\endverbatim
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
sampledSurfaces.C
|
sampledSurfaces.C
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user