- 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
56 lines
925 B
C++
56 lines
925 B
C++
// -*- C++ -*-
|
|
|
|
planes
|
|
{
|
|
type surfaces;
|
|
libs (sampling);
|
|
|
|
// Time control etc
|
|
${_visualization};
|
|
|
|
fields ( p U );
|
|
|
|
// surfaceFormat vtk;
|
|
surfaceFormat none;
|
|
|
|
store true;
|
|
|
|
interpolationScheme cellPoint;
|
|
|
|
_plane
|
|
{
|
|
type cuttingPlane;
|
|
interpolate false;
|
|
}
|
|
|
|
surfaces
|
|
{
|
|
plane0
|
|
{
|
|
${_plane}
|
|
point (100 100 50);
|
|
normal (1 -1 0);
|
|
enabled false;
|
|
}
|
|
|
|
plane1
|
|
{
|
|
${_plane}
|
|
point (100 100 50);
|
|
normal (1 1 0);
|
|
}
|
|
|
|
plane2
|
|
{
|
|
${_plane}
|
|
point (200 100 50);
|
|
normal (1 0 0);
|
|
}
|
|
};
|
|
|
|
#remove _plane
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|