diff --git a/applications/utilities/postProcessing/sampling/sample/sampleDict b/applications/utilities/postProcessing/sampling/sample/sampleDict index ed5c6e0238..92b1c02e35 100644 --- a/applications/utilities/postProcessing/sampling/sample/sampleDict +++ b/applications/utilities/postProcessing/sampling/sample/sampleDict @@ -175,10 +175,20 @@ surfaces interpolatedPlane { type plane; // always triangulated - // make plane relative to the coordinateSystem (Cartesian) + + // Make plane relative to the coordinateSystem (Cartesian) coordinateSystem { origin (0.0501 0.0501 0.005); + + // Add a coordinate rotation + // (required, so here one that doesn't change anything) + coordinateRotation + { + type axesRotation; + e1 (1 0 0); + e2 (0 1 0); + } } basePoint (0 0 0); normalVector (0.1 0.1 1); diff --git a/src/sampling/sampledSurface/sampledPlane/sampledPlane.C b/src/sampling/sampledSurface/sampledPlane/sampledPlane.C index 87167b572c..831b718eaa 100644 --- a/src/sampling/sampledSurface/sampledPlane/sampledPlane.C +++ b/src/sampling/sampledSurface/sampledPlane/sampledPlane.C @@ -80,7 +80,7 @@ Foam::sampledPlane::sampledPlane // allow lookup from global coordinate systems if (dict.found("coordinateSystem")) { - coordinateSystem cs(mesh, dict); + coordinateSystem cs(mesh, dict.subDict("coordinateSystem")); point base = cs.globalPosition(planeDesc().refPoint()); vector norm = cs.globalVector(planeDesc().normal());