ENH: support coordinateSystem/transform for sampled planes

- previously only defined for cell-cutting version, now for
  iso-surface version too

TUT: remove old transform/coordinateSystem syntax
This commit is contained in:
Mark Olesen
2022-06-08 12:28:02 +02:00
parent fbaadf3a94
commit 9a75ce8434
10 changed files with 197 additions and 79 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -26,8 +26,9 @@ porosity1
coordinateSystem
{
origin (0 0 0);
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
rotation axisAngle;
axis (0 0 1);
angle 45;
}
}

View File

@ -94,7 +94,7 @@ plane
writeControl writeTime;
surfaceFormat vtk;
fields ( cellZoneID );
fields ( cellZoneID U );
surfaces
{
@ -105,6 +105,24 @@ plane
normal (0 0 1);
interpolate false;
}
slices
{
type cuttingPlane;
point (0 0 0);
normal (1 0 0);
offsets (0.02 0.04 0.06 0.08);
interpolate true;
transform
{
origin (0 0 0);
rotation axisAngle;
axis (0 0 1);
angle 45;
}
}
}
}