mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
sampledSetsFunctionObject/sampledSetsDict: Added an example of sampling on a line
This commit is contained in:
@ -0,0 +1,34 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
functions
|
||||||
|
{
|
||||||
|
// Example of sampling on a line
|
||||||
|
lines
|
||||||
|
{
|
||||||
|
type sets;
|
||||||
|
|
||||||
|
functionObjectLibs ("libsampling.so");
|
||||||
|
|
||||||
|
outputControl outputTime;
|
||||||
|
setFormat gnuplot;
|
||||||
|
fields (p U);
|
||||||
|
interpolationScheme cellPoint;
|
||||||
|
sets
|
||||||
|
(
|
||||||
|
diagonal
|
||||||
|
{
|
||||||
|
type midPoint;
|
||||||
|
|
||||||
|
axis x;
|
||||||
|
start (-0.0206 -0.0254 -0.0005);
|
||||||
|
end (0.29 0.0254 0.0005);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user