ENH: movingCone: add cuttingPlane to show off moving mesh sampling

This commit is contained in:
mattijs
2013-03-14 10:01:05 +00:00
parent 0f8fbf35c7
commit 41aa6d637c
2 changed files with 42 additions and 0 deletions

View File

@ -49,5 +49,9 @@ adjustTimeStep no;
maxCo 0.2;
functions
{
#include "cuttingPlane"
}
// ************************************************************************* //

View File

@ -0,0 +1,38 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
cuttingPlane
{
type surfaces;
functionObjectLibs ("libsampling.so");
outputControl outputTime;
surfaceFormat vtk;
fields ( p U );
interpolationScheme cellPoint;
surfaces
(
zNormal
{
type cuttingPlane;
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 0 1);
}
interpolate true;
}
);
}
// ************************************************************************* //