- simpler to write for sampled cutting planes etc. For example, slice { type cuttingPlane; point (0 0 0); normal (0 0 1); interpolate true; } instead of slice { type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { point (0 0 0); normal (0 0 1); } interpolate true; } STYLE: add noexcept to some plane methods
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: v2206 |
|
|
| \\ / A nd | Website: www.openfoam.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
planes
|
|
{
|
|
type surfaces;
|
|
libs (sampling);
|
|
|
|
// Time control etc
|
|
${_visualization};
|
|
|
|
fields ( p U );
|
|
|
|
// surfaceFormat vtk;
|
|
surfaceFormat none;
|
|
|
|
store true;
|
|
|
|
interpolationScheme cellPoint;
|
|
|
|
_plane
|
|
{
|
|
type plane; //cuttingPlane;
|
|
point (0 0 0);
|
|
normal (1 0 0);
|
|
}
|
|
|
|
surfaces
|
|
{
|
|
plane0
|
|
{
|
|
${_plane}
|
|
point (0 0 0);
|
|
}
|
|
|
|
plane1
|
|
{
|
|
${_plane}
|
|
point (-0.1 0 0);
|
|
}
|
|
}
|
|
|
|
#remove _plane
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|