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;
}
}
}
}

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 | |
\*---------------------------------------------------------------------------*/
@ -55,8 +55,7 @@ geometry
transform
{
origin (2 2 0);
e1 (1 0 0);
e3 (0 0 1);
rotation none;
}
}
herring

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 | |
\*---------------------------------------------------------------------------*/
@ -53,28 +53,17 @@ geometry
surface box1;
scale (1.0 1.0 2.1);
// Old syntax
transform
{
coordinateSystem
{
type cartesian;
origin (2 2 0);
rotation
{
type axes;
e1 (1 0 0);
e3 (0 0 1);
}
}
origin (2 2 0);
rotation none;
}
}
herring
{
surface box1;
scale (1.0 1.0 2.1);
scale (1.0 1.0 2.1);
// Simplified syntax
transform
{
origin (3.5 3 0);